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

Melsec iq-f fx5 series
Hide thumbs Also See for MELSEC iQ-F FX5 series:
Table of Contents

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)
(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
■Applicable devices
Operand
Bit
X, Y, M, L,
U\G T, ST,
SM, F, B, SB
(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
b9
b8
1
0
1
0
0
0
0
1
K15
K14
K13
K12
K11
K10
K9
K8
Operation error
Error code
Description
(SD0/SD8067)
3405
The value specified by (n) is outside the following range.
0 to 15
Word
T, ST, C, D,
C, LC
W, SD, SW, R
*1
(s)
b7
b6
b5
b4
b3
b2
b1
b0
0
1
0
0
1
1
1
1
K7
K6
K5
K4
K3
K2
K1
K0
Structured text
ENO:=BON(EN,s,n,d);
ENO:=BONP(EN,s,n,d);
Range
Data type
16-bit signed binary
Bit
0 to 15
16-bit signed binary
Double word Indirect
U\G
Z
LC
LZ
(n)
(d) Bit device
(n)=5
0
(OFF)
(n)=8
1
(ON)
Data type (label)
ANY16
Bit
ANY16
Constant
specification
K, H
E
$
7 APPLICATION INSTRUCTION
7.17 Data operation instruction
Others
7
553

Advertisement

Table of Contents
loading

Table of Contents