FX
/FX
/FX
Series Programmable Controllers
3G
3U
3UC
Programming Manual - Basic & Applied Instruction Edition
2)
Specification of the number of sets ("n")
- When using one set of 4 digits [n = k1]
A 4-digit BCD digital switch connected to
D
+3, and stored in binary format to
1
- When using two sets of 4 digits [n = k2]
A 4-digit BCD digital switch connected to
D
+3, and stored in binary format to
1
A 4-digit BCD digital switch connected to
D
+3, and stored in binary format to
1
Related devices
Device
Instruction execution com-
M8029
Cautions
1. When the command contact turns OFF
Though the contents of
2. Number of occupied devices
1)
When two sets of 4 digits (n = K2) are used, two devices are occupied starting from
2)
When one set of 4 digits is used, four devices are occupied starting from
used, eight devices are occupied starting from
3. When connecting a digital switch of up to 3 digits
It is not necessary to wire the strobe signal (output for digit specification)
digits are occupied also by this instruction, however, they cannot be used for any other purpose. Make sure to leave
unused outputs are left vacant.
4. Transistor output type is recommended
For continuously receiving digital switch values, make sure to use a transistor output type PLC.
→ For a relay type PLC, refer to "How to use this instruction in a relay output type PLC" later.
5. Digital switches
Use BCD output type digital switches.
Program example
In the program example shown below, digital switches are connected to inputs starting from X010 and outputs from
Y010.
1. Program
X000
FNC 72
DSW
D
D
D
→ For the instruction execution complete flag use method, refer to Subsection 6.5.2.
Name
OFF:
Data is being output to
ON:
A cycle operation of outputting data to
plete flag
is completed.
D
do not change, all of
2
S
D
D
1
2
X010
Y010
D 0
15 External FX I/O Device – FNC 70 to FNC 79
15.3 FNC 72 – DSW / Digital Switch (Thumbwheel Input)
S
to
S
+3 is read in turn by the strobe signal
.
2
to
+3 is read in turn by the strobe signal
S
S
.
2
S
+4 to
S
+7 is read in turn by the strobe signal
+1.
2
Description
D
to
D
+3 or the instruction is not executed yet.
1
1
D
D
to
D
+3 turn OFF.
1
1
S
.
D
1
n
K 1
D
1
D
1
D
1
D
to
+3 (scan of the 1st to 4th digits)
1
1
D
.
2
S
. When two sets of 4 digits are
to unused digits. Because unused
11
to
12
to
to
13
14
15
16
17
18
19
20
431