3. Instruction Set
3-189
182. Please use transistor output for Y20 ~ Y23. Every pin 1, 2, 4, 8 shall be connected to a diode
(0.1A/50V) in series before connecting to the input terminals on PLC.
Wiring diagram of DIP switch:
S/S
X20
X21 X22
X23
X24 X25 X26 X27
Y23Y22Y21Y20C
1248 1248
PLC
10 10 10 10
0123
10
0
10
1
10
2
10
3
0V
+24V
DIP switches for
BCD wiring
Must connect to a
diode (1N4148) in
series
The first group
The second group
Points to note:
When the terminals to be scanned are relay outputs, the following program methods can be applied:
183. When X30 = ON, DSW instruction will be executed. When X30 goes OFF, M10 remains ON
until the current scan cycle of output terminals is completed..
184. If the drive contact X30 uses button switch, M10 turns off only when the current scan cycle on
outputs is completed, so that a correct value from DIP switch can be read. In addition, the
continuous scan cycle on outputs will be performed only when the drive contact is pressed and
held. Applying this method can reduce the driving frequency of relay outputs so as to extend to
life-span of relays.
M10
DSW X20 Y20 D20 K2
X30
SET M10
M1029
RST M10