Delta Electronics AH500 Manual page 236

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

Advertisement

API
Instruction code
256
CJN
Device
X
Y
M
P
 S: Pointer (S is in the rage of P0~P255. A pointer does not support V
E xp la nat io n
 If the conditional contact connected to CJN is ON, the next address will
 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 CJN, a
 The instruction CJN can specify the same pointer repeatedly. The
 When the instruction CJN/CJNP in a program is executed, the actions of
 When X0.0 is OFF, the execution of the program jumps from address 0
E xa mple
 When X0.0 is ON, the execution of the program starts from address 0,
5 - 1 2 1
Operand
P
S
K
16#
F
Pulse instruction 16-bit instruction (3 steps) 32-bit instruction
devices and Z devices)
be executed. If the conditional contact connected to CJN is not ON, the
address to which S points will be executed.
users can use CJN or CJNP 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 O100 will not be
executed. Please use the instruction carefully.
pointer specified by CJN 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.
to address N (P1), and the address between address 0 and address N
are skipped.
and the instruction CJN is not executed.
(N egated conditional jump)
X0.0
0
X0.1
N
X0.2
Ch ap te r 5 Ap plie d Instruc tions
Negated conditional
S
jump
KnM KnS
D
W
P1
C JN
Y0 .1
P1
Y0 .2
Function
T
C
V
Z

Advertisement

Table of Contents
loading

Table of Contents