Delta Electronics Programmable Logic Controller DVP-PLC User Manual
Page 276

6 Application Instructions API 00-49
DVP-PLC Application Manual
6-64
API Mnemonic
Operands
Function
44
D BON P
Check Specified Bit Status
Controllers
ES/EX/SS SA/SX/SC EH/SV
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
ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV ES EX SS SA SX SC EH SV
Operands:
S
: Source device D: Device for storing check result n: Bits specified for check
Explanations:
1. If
S
is used in device F, only 16-bit instruction is applicable.
2. Range
of
n
: 0 ~ 15 (16-bit instruction); 0 ~ 31 (32-bit instruction)
3.
See the specifications of each model for their range of use.
4. When
the
n
th
bit of S is “1”, D = On; when the n
th
bit of S is “0”, D = Off.
Program Example:
1.
When X0 = On, assume the 15
th
bit of D0 is “1”, and M0 = On. Assume the 15
th
bit of D0 is “0”, and M0 = Off.
2.
When X0 goes Off, M0 will remains in 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