
7 APPLICATION INSTRUCTION
7.17 Data operation instruction
553
7
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).
Setting data
■
Descriptions, ranges, and data types
■
Applicable devices
*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.
Operation error
Ladder diagram
Structured text
ENO:=BON(EN,s,n,d);
ENO:=BONP(EN,s,n,d);
Operand
Description
Range
Data type
Data type (label)
(s)
Word device number storing the data
16-bit signed binary
ANY16
(d)
Bit device number to be driven
Bit
Bit
(n)
Bit position to be checked
0 to 15
16-bit signed binary
ANY16
Operand
Bit
Word
Double word
Indirect
specification
Constant
Others
X, Y, M, L,
SM, F, B, SB
U
\G
T, ST,
C, LC
T, ST, C, D,
W, SD, SW, R
U
\G
Z
LC
LZ
K, H
E
$
(s)
(d)
(n)
Error code
(SD0/SD8067)
Description
3405
The value specified by (n) is outside the following range.
0 to 15
(s)
(d)
(n)
(n)
(s)
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
(n)=5
(n)=8
(OFF)
(ON)
(d) Bit device
Summary of Contents for MELSEC iQ-F FX5 series
Page 1: ...MELSEC iQ F FX5 Series Programming Manual Instructions Standard Functions Function Blocks ...
Page 2: ......
Page 21: ...19 PART 1 PART 1 OVERVIEW Part 1 consists of the following chapter 1 OVERVIEW ...
Page 98: ...96 4 STANDARD FUNCTIONS FUNCTION BLOCKS 4 2 Standard Function Blocks MEMO ...
Page 840: ...838 23 TIME DATA FUNCTIONS 23 4 Division MEMO ...
Page 887: ......