C h a p t e r 5 A p p l i e d I n s t r u c t i o n s
API
Instruction code
Operand
Function
44
D
BON
P
S, D, n
Checking the state of a
bit
Device
X
Y
M
S
K
16#
F
KnM KnS
D
W
T
C
V
Z
S
D
n
Pulse instruction 16-bit instruction (7 steps) 32-bit instruction (8 steps)
E xp la nat io n
The state of the
n
th
bit in
S
is checked, and the result is stored in
D
.
S
: Source device;
D
: Device in which a check result is stored;
n
: Bit
whose state is judged
16-bit
instruction:
n
=0~15; 32-bit instruction:
n
=0~31
If KnM/KnS is used, it is suggested that M device numbers/S device
numbers should start from a number which is a multiple of 16 in the
decimal numeral system, e.g. K1M0 and K4M16 (decimal numeral
system).
E xa mple
When X0.0 is turned OFF, the state of M0 remains unchanged.
If the 15
th
bit in D0 is 1 when X0.0 is ON, M0 will be ON. If the 15
th
bit in
D0 is 0 when X0.0 is ON, M0 will be OFF.
X0.0
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
5 - 6 3
Summary of Contents for AH500
Page 9: ...viii...
Page 53: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Yaskawa servo drive 2 32...
Page 55: ...AH500 Motion Control Module Manual Wiring AH10PM 5A and a Fuji servo drive 2 34...
Page 115: ...AH500 Motion Control Module Manual 4 16 MEMO...
Page 375: ...AH500 Motion Control Module Manual 5 260 MEMO...
Page 383: ...AH500 Motion Control Module Manual 6 8 MEMO...
Page 419: ...AH500 Motion Control Module Manual 7 36 MEMO...
Page 436: ...Chapter 8 Electronic Cam 8 17...
Page 483: ...AH500 Motion Control Module Manual 10 8 MEMO...
Page 505: ...AH500 Motion Control Module Manual 12 8 MEMO...
Page 515: ...AH500 Motion Control Module Manual 13 10 MEMO...
Page 544: ...Appendix A Error Code Table Table of Contents A 1 Error Code Table A 2 A 1...