Download Print this page

Bit Judgment Of 16-Bit Data - Mitsubishi Electric MELSEC iQ-F FX5 Programming Manual

Instructions, standard functions/function blocks
Hide thumbs Also See for MELSEC iQ-F FX5:

Advertisement

Bit judgment of 16-bit data

BON(P)
These instructions check whether (n) bit(s) of binary 16-bit data of the device specified by (s) are on or off, and output the
result to the device specified by (d).
Ladder diagram
(s)
FBD/LD
EN
ENO
s
d
n
Setting data
■Descriptions, ranges, and data types
Operand
Description
(s)
Word device number storing the data
(d)
Bit device number to be driven
(n)
Bit position to be checked
EN
Execution condition
ENO
Execution result
■Applicable devices
Operand
Bit
X, Y, M, L, SM,
F, B, SB, S
(s)
(d)
(n)
*1 T, ST, C cannot be used.
Processing details
• These instructions check whether (n) bit(s) of binary 16-bit data of the device specified by (s) are on or off, and output the
result to the device specified by (d).
• When the result above is on, these instructions turn (d) on. When the result above is off, these instructions turn (d) off.
• When a constant (K) is specified in the device specified by (s), it is automatically converted into binary.
b15
b14
b13
b12
b11
b10
1
0
1
0
0
0
K15
K14
K13
K12
K11
K10
8 APPLICATION INSTRUCTION
652
8.22 Data Operation Instruction
(d)
(n)
Word
T, ST, C, D, W,
U\G
SD, SW, R
*1
(s)
b9
b8
b7
b6
b5
b4
b3
0
1
0
1
0
0
1
K9
K8
K7
K6
K5
K4
K3
Structured text
ENO:=BON(EN,s,n,d);
ENO:=BONP(EN,s,n,d);
Range
0 to 15
Double word Indirect
Z
LC
LZ
b2
b1
b0
1
1
1
(n)
K2
K1
K0
(d)
(n)=5
0
(OFF)
(n)=8
1
(ON)
Data type
Data type (label)
16-bit signed binary
ANY16
Bit
ANY_BOOL
16-bit unsigned binary
ANY16_U
Bit
BOOL
Bit
BOOL
Constant
specification
K, H
E
Others
$

Hide quick links:

Advertisement

loading