346
7 BASIC INSTRUCTIONS
7.6 Digital Switch (Thumbwheel Input)
Processing details
The value of each digital switch connected to (s) is input by the time division method (in which the value is input in turn from
the 1st digit by 100 ms interval output signal), and stored to (d2). A numeric value from 0 to 9999 (up to 4 digits) can be read,
the first set is stored to (d2), and the second set is stored to (d2)+1.
When using one set of 4 digits (n = K1)
A 4-digit BCD digital switch connected to (s) to (s)+3 is read in turn by the strobe signal (d1) to (d1)+3, and stored in binary
format to (d2).
When using two sets of 4 digits (n = K2)
A 4-digit BCD digital switch connected to (s) to (s)+3 is read in turn by the strobe signal (d1) to (d1)+3. (s) to (s3)+3 is stored
in (d2) and (s)+4 to (s)+7 is stored in (d2)+1 as BIN format.
For the connection example of digital switch, refer to the following manual.
MELSEC iQ-F FX5U User's Manual (Hardware)
MELSEC iQ-F FX5UC User's Manual (Hardware)
Precautions
• Though the contents of (d2) do not change, all of (d1) to (d1)+3 turn OFF.
• When one set of 4 digits (n = K1) are used, four devices are occupied starting from (s).
• When two sets of 4 digits (n = K2) are used, eight devices are occupied starting from (s), and two devices are occupied
starting from (d2).
• When connecting a digital switch of less than 4 digits, it is not necessary to wire the strobe signal (output for digit
specification) (d1) to unused digits. Because unused digits are occupied also by this instruction, however, they cannot be
used for any other purpose.
• For continuously receiving digital switch values, make sure to use a transistor output type CPU module.
• Use BCD output type digital switches.
• The DSW instruction can only be executed four times in a program.
Operation error
Error code
(SD0/SD8067)
Description
2820H
The device range specified by (s), (d1), (d2) exceeds the corresponding device range.
3405H
(n) is other than 1 or 2.
The value specified by (s) to (s)+1 and (s)+4 to (s)+7 is other than 0 to 9.
1811H
The number of the DSW instructions which are used simultaneously exceeds four.
Содержание MELSEC iQ-F FX5
Страница 1: ...MELSEC iQ F FX5 Programming Manual Instructions Standard Functions Function Blocks ...
Страница 2: ......
Страница 17: ...15 CONTENTS ...
Страница 24: ...22 MEMO ...
Страница 25: ...23 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW 2 PRECAUTIONS ON PROGRAMMING ...
Страница 126: ...124 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 132: ...130 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 140: ...138 6 SEQUENCE INSTRUCTIONS 6 3 Output Instructions Operation error There is no operation error ...
Страница 191: ...7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions 189 7 Operation error There is no operation error ...
Страница 202: ...200 7 BASIC INSTRUCTIONS 7 2 Arithmetic Operation Instructions Operation error There is no operation error ...
Страница 278: ...276 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 280: ...278 7 BASIC INSTRUCTIONS 7 4 Bit Processing Instructions Operation error There is no operation error ...
Страница 915: ...18 TYPE CONVERSION FUNCTIONS 18 13 Converting DWORD to WORD 913 18 Operation error There is no operation error ...
Страница 917: ...18 TYPE CONVERSION FUNCTIONS 18 14 Converting DWORD to INT 915 18 Operation error There is no operation error ...
Страница 932: ...930 18 TYPE CONVERSION FUNCTIONS 18 26 Converting DINT to WORD Operation error There is no operation error ...
Страница 1050: ...1048 26 TIME DATA FUNCTIONS 26 4 Division MEMO ...
Страница 1068: ...1066 29 COUNTER FUNCTION BLOCKS 29 4 Counter Function Block Operation error There is no error ...
Страница 1107: ...I 1105 MEMO ...
Страница 1111: ......