406
FX
3U
/FX
3UC
Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
15 External FX I/O Device – FNC 70 to FNC 79
15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input)
15.3
FNC 72 – DSW / Digital Switch (Thumbwheel Input)
Outline
This instruction reads the set value of digital switches.
This instruction can read a set of 4 digits (n = K1) or two sets of 4 digits (n = K2).
1. Instruction format
2. Set data
3. Applicable devices
Explanation of function and operation
1. 16-bit operation (DSW)
The value of each digital switch connected to
is input in the time division method (in which the value is
input from the 1st digit in turn by the output signal at the interval of 100 ms), and stored to
.
1) Data
- A numeric value from 0 to 9999 (up to 4 digits) can be read.
- A numeric value is stored in the binary format.
- The first set is stored to
, and the second set is stored to
+1.
Operand Type
Description
Data Type
Head device (X) number connected to a digital switch
(Four devices are occupied.)
Bit
Head device (Y) number to which the strobe signal is output
(Four devices are occupied.)
Bit
Device number storing the numeric value of a digital switch
("n" devices are occupied.)
16-bit binary
n
Total number of 4-digit switch sets (4 digits/set) (n = 1 or 2)
16-bit binary
Oper-
and
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special
Unit
Index
Con-
stant
Real
Number
Charac-
ter String
Pointer
X Y M T C S D
.b KnX KnY KnM KnS
T
C
D
R U
\G
V
Z Modify K
H
E
"
"
P
3
3
3
3
3 3 3 3
3
3 3
3
n
3 3
FNC 72
DSW
DSW
16-bit Instruction
9 steps
Mnemonic
Operation Condition
Continuous
Operation
−
32-bit Instruction
Mnemonic
Operation Condition
S
D
1
D
2
S
D
1
D
2
S
D
2
Command
input
FNC 72
DSW
n
Strobe
signal
D
1
S
D
2
D
1
D
2
D
2
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......