Delta DVP-ES2 User Manual Page 225

  • Download
  • Add to my manuals
  • Print
  • Page
    / 702
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 224
3. Instruction Set
3-109
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
0000 00011 100 0000
D0
K15
b0
M0=Off
b15
1000 00011 100 0000
D0
b0
M0=On
b15
Page view 224
1 2 ... 220 221 222 223 224 225 226 227 228 229 230 ... 701 702

Comments to this Manuals

No comments