Mitsubishi Electronics Mitsubishi Digital Electronics Video Gaming Accessories FX3G ユーザーズマニュアル

ページ / 936
427
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
FN
C
30
-FN
C
39
R
otati
on and 
Shi
ft
12
FNC4
0-F
NC4
9
D
ata O
per
ati
on
13
FN
C
50-FN
C
59
H
igh S
pe
ed 
P
rocessing
14
FM
C
60-FN
C
69
H
andy 
In
st
ru
ct
ion
15
FNC7
0-F
NC7
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
10
9
Da
ta
 
Transf
er 2
18
FN
C
110-
FN
C
139
Floati
ng Poi
nt
19
FN
C
14
0-F
N
C
149
Da
ta
 
O
per
at
ion 2
20
FN
C
150-
FN
C
159
Posit
ioning 
C
ont
ro
l
15.3
FNC 72 – DSW / Digital Switch (Thumbwheel Input)
Outline
This instruction reads the set value of digital switches.
This instruction can read a set of 4 digits (n = K1) or two sets of 4 digits (n = K2).
1. Instruction format
2. Set data
3. Applicable devices
S
: This function is supported only in FX
3U
/FX
3UC
 PLCs.
Explanation of function and operation
1. 16-bit operation (DSW)
The value of each digital switch connected to 
 is input in the time division method (in which the value is input
from the 1st digit in turn by the output signal at the interval of 100 ms), and stored to 
.
1) Data 
- A numeric value from 0 to 9999 (up to 4 digits) can be read.
- A numeric value is stored in the binary format.
- The first set is stored to 
, and the second set is stored to 
+1. 
Operand Type
Description
Data Type
Head device (X) number connected to a digital switch 
(Four devices are occupied.)
Bit
Head device (Y) number to which the strobe signal is output 
(Four devices are occupied.)
Bit
Device number storing the numeric value of a digital switch 
("n" devices are occupied.)
16-bit binary
n
Total number of 4-digit switch sets (4 digits/set) (n = 1 or 2)
16-bit binary
Oper-
and 
Type
Bit Devices
Word Devices
Others
System User
Digit Specification
System User
Special 
Unit
Index
Con-
stant
Real 
Number
Charac-
ter String
Pointer
X Y M T C S D….b KnX KnY KnM KnS T C D R U…\G… V
Z Modify K H
E
"…"
P
3
3
3
3
3 3 3 3
S
3 3
3
n
3 3
FNC 72
DSW
DSW
16-bit Instruction
9 steps
Mnemonic
Operation Condition
Continuous
Operation
32-bit Instruction
Mnemonic
Operation Condition
  S
  
D
1
  
D
2
  S
  
D
1
  
D
2
   
S
  
D
2
Command
input
FNC 72
DSW
n
Strobe
signal
D
1
 ‚
S ‚
D
2
 ‚
  
D
1
  
D
2
  
D
2