A H 5 0 0 M o t i o n C o n t r o l M o d u l e M a n u a l
5.6
Descriptions of the Applied Instructions
API
Instruction code
Operand Function
00
CJ
P
S
Conditional jump
Device
X Y M S K 16#
F
KnM KnS
D W
T C V Z
S
Pulse instruction
16-bit instruction (3 steps)
32-bit instruction
-
E xp la nat io n
A pointer is in the range of P0~P255.
S
: Pointer which points to a jump destination
If some part of the main program O100 does not need to be executed,
users can use CJ or CJP to shorten the scan time. Besides, if a dual
output is used, users can use CJ or CJP.
If the program specified by a pointer is prior to the instruction CJ, a
watchdog timer error will occur, and the main program will not be
executed. Please use the instruction carefully.
The instruction CJ can specify the same pointer repeatedly. The pointer
specified by CJ can not be the same as the pointer specified by CALL,
otherwise an error will occur.
When the instruction CJ/CJP in a program is executed, the actions of
the devices in the program are as follows.
The states of the Y devices, the states of the M devices, and the
states of the S devices in the program remain the same as those
before the execution of the jump.
The 10 millisecond timers in the program stop counting.
The general counters in the program stop counting, and the general
applied instructions in the program are not executed.
If the instructions which are used to reset the timers in the program
are driven before the jump is executed, the timers will still be reset
during the execution of the jump.
E xamp le 1
When X0.0 is OFF, the execution of the program starts from address 0,
and the instruction CJ is not executed.
When X0.0 is ON, the execution of the program jumps from address 0 to
address N (P1).
X0.0
X0.1
X0.2
C J
P1
Y0 .1
Y0 .2
0
N
(
)
Jump instruction
P1
5 - 1 8
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...