Mitsubishi Electronics FX3G Video Gaming Accessories User Manual


 
325
FX3G/FX3U/FX3UC Series Programmable Controllers
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.5 FNC 44 – BON / Check Specified Bit Status
11
FNC30-FNC39
Rotation and
Shift
12
FNC40-FNC49
Data Operation
13
FNC50-FNC59
High Speed
Processing
14
FMC60-FNC69
Handy
Instruction
15
FNC70-FNC79
External FX I/O
Device
16
FNC80-FNC89
External FX
Device
17
FNC100-FNC109
Data
Transfer 2
18
FNC110-FNC139
Floating Point
19
FNC140-FNC149
Data
Operation 2
20
FNC150-FNC159
Positioning
Control
12.5 FNC 44 – BON / Check Specified Bit Status
Outline
This instruction checks whether a specified bit position in a specified device is ON or OFF.
1. Instruction format
2. Set data
3. Applicable devices
S1: "D.b" is available only in FX3U and FX3UC PLCs. However, index modifiers (V and Z) are not available.
S2: This function is supported only in FX
3U/FX3UC PLCs.
Explanation of function and operation
1. 16-bit operation (BON and BONP)
The status (ON or OFF) of the bit "n" in is output to .
[When the bit "n" is ON, is set to ON. When the bit "n" is OFF, is set to OFF.]
When a constant (K) is specified as the transfer source , it is automatically converted into the binary format.
Operand type Description Data type
Word device number storing the source data 16- or 32-bit binary
Bit device number to be driven Bit
n
Bit position to be checked
[n: 0 to 15 (16-bit instruction), 0 to 31 (32-bit instruction)]
16- or 32-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
XYMTCSD.b KnX KnY KnM KnS T C D R U\G VZModifyKH E ""P
33333333S2 33 3 33
33 3 S1 3
n 33 33
DBON
DBONP
Mnemonic Operation Condition
P
FNC 44
BON
D
16-bit Instruction
7 steps
BON
BONP
Mnemonic Operation Condition
Continuous
Operation
Pulse (Single)
Operation
32-bit Instruction
13 steps
Continuous
Operation
Pulse (Single)
Operation
S
1
S
D
S
1
S
S
2
D
D
1
S
D
1
D
D
1
D
D
1
D
D
1
S
Command
input
FNC 44
BON
S
D
n S
= ON/OFF status of bit "n"
D
(n = K0 to K15)
n
S
b0b1b2b3b4b5b6b7b8b9b10b11b12b13b14b15
0 1 0 0 1 1 1 11 0 1 0 10 00
K4K5K6K7
K0K1K2K3K8K9K10K11K12K13K14K15
D
0
1
bit device
n = 5
n = 8
(OFF)
(ON)