Delta DVP-ES2 User Manual
Page 225
3 . I n s t r u c t i o n S e t
3 - 1 0 9
API Mnemonic
Operands
Function
44
D BON P
Check specified bit
status
Controllers
ES2/EX2 SS2
SA2
SE
SX2
Bit Devices
Word devices
Program Steps
Type
OP
X Y
M S K H KnX KnY KnM KnS T C D E F
S
* *
*
*
*
*
*
*
*
*
*
D
*
*
*
n
*
*
*
*
*
*
*
BON, BONP: 7 steps
DBON, DBONP: 13 steps
PULSE 16-bit 32-bit
ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2 ES2/EX2 SS2
SA2
SE
SX2
Operands:
S: Source device D: Device for storing check result n: Bit number to be checked
Explanation:
1.
The instruction checks the status of designated bit (specified by n) in S and stores the result
in D
2. If
operand
S uses index F, only 16-bit instruction is available.
3.
Valid range of operand n : n = 0~15 (16-bit), n = 0~31 (32-bit)
Program Example:
1.
When X0 = ON, and bit15 of D0 = “1”, M0 will be ON. If the bit15 is “0”, M0 is OFF.
2.
When X0 is OFF, M0 will retain its previous status.
X0
BON
D0
M0
0
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
D0
K15
b0
M0=Off
b15
1
0
0
0
0
0
0
1
1
1
0
0
0
0
0
0
D0
b0
M0=On
b15