6 WIRING
6.8 Examples of Wiring for Various Uses
137
6
Digital Switch
When DSW instructions are used
Examples of wiring for capturing values from a 4-digit digital switch to the data register D100 are given below.
For the instructions, refer to MELSEC iQ-F FX5 Programming Manual (Instructions, Standard Functions/Function Blocks).
■Example of program
■Example of wiring
• Sink wiring
The example is the wiring for the input/output of the FX5U-32MT/ES.
• Source wiring
The example is the wiring for the input/output of the FX5U-32MT/ESS.
X10 X11 X12 X13 X15X14 X16 X17
COM2
Y10 Y11 Y12 Y13
Sink input
FX5U-32MT/ES
1248
10
3
10
2
10
1
10
0
10
3
10
2
10
1
10
0
0.1A 50V
diode is
necessary.
Digital
switch of
BCD
Transistor output (sink)
S/S 0V 24V
X10 X11 X12 X13 X15X14 X16 X17
+V2 Y10 Y11 Y12 Y13
Source input
FX5U-32MT/ESS
1248
10
3
10
2
10
1
10
0
10
3
10
2
10
1
10
0
0.1A 50V
diode is
necessary.
Digital
switch of
BCD
Transistor output (source)
S/S 0V 24V