304
FX
3U
/FX
3UC
Series Programmable Controllers
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
S
: "D
.b" cannot be indexed with index registers (V and Z).
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 the 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
16- or 32-bit binary
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
3
3
3
3
3 3 3 3
3
3 3
3
3 3
3 3
3
S
3
n
3 3
3 3
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
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
D
0
1
bit device
n = 5
n = 8
(OFF)
(ON)
Содержание FX3U Series
Страница 1: ...PROGRAMMING MANUAL Basic Applied Instructions Edition FX3U FX3UC SERIES PROGRAMMABLE CONTROLLERS ...
Страница 2: ......
Страница 889: ......