14 Applied Instructions (External FX I/O Device)
14.3 DSW / Digital Switch (Thumbwheel Input)
364
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
4. Method of using by relay output type
You can also use the relay output type PLC by providing with "digital switch reading input."
When pushbutton (X000) is pressed, the DSW performs a series of operations. In the case of this program, if
Y010 to Y013 are relay outputs, there is no problem in relay contact life.
1) DSW is operating while the M0 (digital switch reading input) is being ON.
2) DSW continues to operate until operation of one cycle is over and execution complete flag (M8029) is set
up.
M0
M8029
DSW
EN
s
n
ENO
d1
d2
SET
EN ENO
d
M0
X010
Y010
D0
K1
M0
RST
EN ENO
d
[Structured ladder/FBD]
LDP
EN ENO
s
X000
SET(LDP(TRUE, X000), M0);
DSW(M0, X010, K1, Y010, D0);
RST(M8029, M0);
[ST]