449
FX
3G
/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)
11
FNC3
0-F
NC3
9
R
otati
on and
Shif
t
12
FNC4
0-F
NC4
9
D
ata
O
per
ati
on
13
FN
C
50-FN
C
59
H
igh Speed
Pr
ocess
ing
14
FM
C
60-
FN
C
69
H
andy
In
st
ru
ct
ion
15
FNC7
0-F
N
C7
9
Ex
ter
nal
FX
I/O
D
evice
16
FN
C
80-FN
C
89
Ext
ernal FX
De
vic
e
17
FN
C
100-
FN
C
109
Da
ta
Transf
er 2
18
FN
C
110-
FN
C
139
Fl
oati
ng Poi
nt
19
FN
C
140
-F
N
C
14
9
Da
ta
O
per
ati
on 2
20
FN
C
150-
FN
C
159
Posit
ioning
C
ontr
ol
2. Connection diagram
The figure below shows an example of the FX
3U
series main unit (sink input/sink output).
For wiring details, refer to the following manuals.
→
FX
3G
Hardware Edition
→
FX
3U
Hardware Edition
→
FX
3UC
Hardware Edition
3. Timing chart
While X000 is ON, Y010 to Y013 turn ON in turn at every 100 ms. After one cycle is finished, the execution
complete flag M8029 turns ON.
4. How to use this instruction in a relay output type PLC
By providing a "digital switch read input", this instruction can be used in a relay output type PLC.
When the push button switch (X000) is pressed, DSW (FNC 72) instruction executes a series of operations.
Accordingly, with regard to this program, it is not necessary to consider the relay contact life even if Y010 to
Y013 are relay outputs.
1) While M0 (digital switch read input) is ON, DSW (FNC 72) is driven.
2) DSW (FNC 72) completes one cycle of operation, and remains driven until the execution complete flag
(M8029) turns ON.
10
3
10
2
10
1
10
0
BCD type
digital
switch
10
3
10
2
10
1
10
0
To
second
set
Diode of
0.1 A, 50 V
is required.
BCD type
digital
switch
4
3
2
1
To
second
set
8
4
2
1
S/S X010 X011 X012 X013
X015
X014
X016 X017
COM3 Y010 Y011 Y012 Y013
Inputs of first set
PLC
1
2
4
8
10
3
10
2
10
1
10
0
Inputs of second set
0V
24V
X000
Y010
Y011
Y012
Y013
M8029 Complete flag
Repeated
operation
0.1 sec
0.1 sec
0.1 sec
0.1 sec
0.1 sec
0.1 sec
Pause
M 0
X000
SET
M 0
FNC 72
DSW
X010
Y010
D 0
K 1
M8029
RST
M 0