Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual
Page 137

Appendix D Use of Application Instructions|DOP-EXIO Series
D-56
Revision March, 2008, Doc. Name: 2007PDD23000014
Mnemonic
Operands Function
BON
D
S
D
n
Check Specified Bit Status
Bit Devices
Word Devices
X Y M S K H
KnX
KnY
KnM KnS
T
C
D
E
F
S
D
n
y
Note:
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)
16-bit instruction (7 Steps)
BON
Continuous
execution
32-bit instruction (13 Steps)
DBON
Continuous
execution
y
Flags: None
Operands:
S
: Source device
D
: Device for storing check result
n
: Bits specified for check
Explanations:
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