Mitsubishi Electronics FX3G User Manual

Page of 964
328
FX
3S
/FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 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 FX
3U
 and FX
3UC
 PLCs. However, index modifiers (V and Z) are not available.
S2: This function is supported only in FX
3G
/FX
3GC
/FX
3U
/FX
3UC
 PLCs.
S3: This function is supported only in FX
3U
/FX
3UC
 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
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
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
n
= ON/OFF status of bit "n"
(n = K0 to K15)
← n
b0
b1
b2
b3
b4
b5
b6
b7
b8
b9
b10
b11
b12
b13
b14
b15
0
1
0
0
1
1
1
1
1
0
1
0
1
0
0
0
K4
K5
K6
K7
K0
K1
K2
K3
K8
K9
K10
K11
K12
K13
K14
K15
0
1
bit device
n = 5
n = 8
(OFF)
(ON)