5
Categories and Use of Basic Application Instructions
DVP-PM Operation Instruction
5-64
API Mnemonic
Operands
Function
44
D BON P
Check specified bit status
Controllers
20PM
10PM
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
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.
When BON is used as 16-bit instruction, Z device cannot be adopted; when BON is used as 32-bit instruction,
V device cannot be adopted.
3.
When specifying the bit device of KnX(Y/M/S), the starting No. should be a multiple of 16 in octal or decimal
format. For example, K1X0, K4Y20 (octal); K1M0, K4S16 (decimal).
4.
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
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
Содержание DVP-10PM
Страница 1: ......
Страница 45: ...2 Hardware Specifications and Wiring DVP PM Application Manual 2 30 MEMO...
Страница 125: ...3 Functions of Devices in DVP PM DVP PM Application Manual 3 80 MEMO...
Страница 341: ...8 Application Examples DVP PM Application Manual 8 2 Trajectory 3 Trajectory 4...
Страница 427: ...9 Electrical CAM DVP PM Application Manual 9 74...
Страница 437: ...10 Encrypting User Program DVP PM Application Manual 10 10 MEMO...
Страница 458: ...11 G code Application DVP PM Application Manual 11 21 B O100 main program...
Страница 561: ...14 Appendix DVP PM Application Manual 14 4 MEMO...