Mitsubishi Electronics FXCPU Video Game Controller User Manual


 
11 Applied Instructions (Data Operation)
11.5 BON / Check Specified Bit Status
240
FXCPU Structured Programming Manual
[Basic & Applied Instruction]
Function and operation explanation
1. 16-bit operation(BON, BONP)
The status (ON or OFF) of the bit "n" in the device specified by is output to the device specified by .
[When the bit "n" is ON, the device specified by is set to ON. When the bit "n" is OFF, the device
specified by is set to OFF.]
When a constant (K) is specified as , it is automatically converted into the binary format.
2. 32-bit operation(DBON, DBONP)
The status (ON or OFF) of the bit "n" in the device specified by is output to the device specified by .
[When the bit "n" is ON, the device specified by is set to ON. When the bit "n" is OFF, the device
specified by is set to OFF.]
When a constant (K) is specified as , it is automatically converted into the binary format.
Cautions
1) Some restrictions to applicable devices
S1:The FX
3U and FX3UC PLCs only are applicable. Not indexed (V, Z).
S2:The FX
3S, FX3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S3:The FX
3G, FX3GC, FX3U and FX3UC PLCs only are applicable.
S4:The FX
3U and FX3UC PLCs only are applicable.
Command input
SUM data
Resulting data
BON
EN
s
n
ENO
d
Bit position
=ON/OFF status of bit "n"
s d
(n=K0 to K15)
n
b0b1b2b3b4b5b6b7b8b9b10b11b12b13b14b15
0 1 0 0 1 1 1 11 0 1 0 10 00
K4K5K6K7
K0K1K2K3K8K9K10K11K12K13K14K15
0
1
Bit device
n=5
n=8
(OFF)
(ON)
s
d
SUM data
0
1
Bit device
n=29
n=5
(OFF)
(ON)
+1,
s s
b0b1b2b3b4b5b6b7b8b9b10b11b12b13b14b15
0 1 0 0 1 1 1 11 0 1 0 10 00
K4K5K6K7
K0K1K2K3K8K9K10K11K12K13K14K15
b16b17···b29b30b31
0 1 ··· 1 11
···K29K30
K16K17K31
n
d
[ +1, ]
(n=K0 to K31)
=ON/OFF status of bit "n"
Command input
DBON
EN
s
n
ENO
d
Resulting data
Bit position
s s d