Explanation Of Jump Instructions - Delta AS Series Programming Manual

Hide thumbs Also See for AS Series:
Table of Contents

Advertisement

A S S er i es Pr og r am m ing M an u a l

6.5.2 Explanation of Jump Instructions

API
Instruction code
0400
Device
X
S
Data
type
S
Symbol
Explanation
1.
This instruction jumps from the current program execution to a label (destination) in a different part of the program
in the PLC. You specify the label (pointer) in S. You can use the CJ or CJP instruction to shorten the scan time. You
_6
can also use the CJ or CJP instruction when using a dual output.
2.
If the program specified by the jump destination (label) is prior to the CJ instruction, the watchdog timer error
occurs, and the PLC stops running the program. Use this instruction carefully.
3.
You can specify the same label repeatedly with the multiple different CJ instructions.
4.
When the instruction is executed, the actions of the devices are as described below.
The state of Y, the state of M, and the state of S remain the same as before the execution of the jump.
The timer keeps counting and when it reaches the time setting value, the program drives the output T-coil.
For more information on the MC and MCR instructions, refer to Example 2 below.
The general applied instructions are not executed.
Example 1
1.
When X0.0 is ON, the program execution jumps from NETWORK 1 to LABEL1 (NETWORK 3) and skips
NETWORK 2.
6 - 1 5 0
CJ
P
Y
M
S
T
C
Operand
S
HC
D
FR
SM
Pulse instruction
16-bit instruction
AS
: Jump destination
S
Function
Conditional jump
SR
E
K
16#
"$"
32-bit instruction
AS
F

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents