Mitsubishi Electronics FX3GC Garage Door Opener User Manual


 
328
FX3S/FX3G/FX3GC/FX3U/FX3UC Series
Programming Manual - Basic & Applied Instruction Edition
12 Data Operation – FNC 40 to FNC 49
12.5 FNC 44 – BON / Check Specified Bit Status
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
3G/FX3GC/FX3U/FX3UC PLCs.
S3: 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 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
TCDRU\G V Z Modify K H E ""P
S2 S3  
 S1
n S2 
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)