EasyManua.ls Logo

Delta VP3000 Series - Page 341

Delta VP3000 Series
714 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Chapter 7 Second Development Platform VP3000
332
API Instruction code Operand Function
44 D BON P S, D, n
Check specified bit status
Type
Operand
Bit devices Word devices
16-bit instruction (7 steps)
BON
Continuous
execution
type
BONP
Pulse
execution
type
32-bit instruction (13 steps)
DBON
Continuous
execution
type
DBONP
Pulse
execution
type
Associated flag: none
X Y M K H KnX KnY KnM T C D
S
D
n
Caution for using operand
Valid range of operand n : n = 0–15 (16-bit), n = 0–31 (32-bit)
Description
S: source device
D: device for storing check result
n: bit number to be checked (numbered from 0)
The instruction checks the status of designated bit (specified by n) in S and stores the result in
D.
Operand S uses device F, and they can only use 16-bit instructions.
Example
When X0 = ON, if the bit15 of D0 is “1”, then M0 = ON; if it’s “0”, then M0 = OFF.
X0 becomes OFF, M0 remains in its previous status.
X0
BON D0 M0 K15
0000 00011 100 0000
D0
b0
M0=Off
b15
1000 00011 100 0000
D0
b0
M0=On
b15

Table of Contents

Related product manuals