Descriptions Of The Applied Instructions - Delta Electronics AH500 Manual

Motion control module
Hide thumbs Also See for AH500:
Table of Contents

Advertisement

A H 5 00 M o ti on C on tr ol M od ul e Ma nua l

5.6 Descriptions of the Applied Instructions

API
Instruction code
CJ
00
Device
X
Y
M
S
 S: Pointer which points to a jump destination
 A pointer is in the range of P0~P255.
E xp la nat io n
 If some part of the main program O100 does not need to be executed,
 If the program specified by a pointer is prior to the instruction CJ, a
 The instruction CJ can specify the same pointer repeatedly. The pointer
 When the instruction CJ/CJP in a program is executed, the actions of
 When X0.0 is ON, the execution of the program jumps from address 0 to
E xamp le 1
 When X0.0 is OFF, the execution of the program starts from address 0,
Operand
P
S
S
K
16#
F
Pulse instruction
users can use CJ or CJP to shorten the scan time. Besides, if a dual
output is used, users can use CJ or CJP.
watchdog timer error will occur, and the main program will not be
executed. Please use the instruction carefully.
specified by CJ can not be the same as the pointer specified by CALL,
otherwise an error will occur.
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.
address N (P1).
and the instruction CJ is not executed.
X0.0
0
X0.1
N
X0.2
Conditional jump
KnM KnS
D
W
16-bit instruction (3 steps)
(
)
Jump instruction
C J
Y0 .1
P1
Y0 .2
Function
T
C
V
Z
32-bit instruction
-
P1
5 - 1 8

Advertisement

Table of Contents
loading

Table of Contents