DVP-ES2/EX2/SS2/SA2/SX2/SE&TP Operation Manual - Programming
API
Mnemonic Operands Function
SS2
SX2
44 D BON P
Check specified bit
status
Type
OP
Bit Devices Word devices Program Steps
X Y M S K H KnX
KnY
KnM
KnS
T C D E F
BON, BONP: 7 steps
DBON, DBONP: 13 steps
SS2
SX2
SS2
SX2
SS2
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 01 1 10 0 0 00 0
D0
K15
b0
M0=Off
b15
1 0 0 0 0 0 01 1 10 0 0 00 0
D0
b0
M0=On
b15