EasyManua.ls Logo

Inovance H3U Series - Marker Instruction

Inovance H3U Series
737 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
77
4
4 Instructions 4.2.3 Jump
Function
1) When the ow is active, the CJ (or CJP) instruction forces a program to jump from the instruction
address to the address designated by P***. Program execution continues after the jump by skipping the
program instructions within the intermediate address range.
2) When the ow is inactive, the program is executed without jump. The CJ (or CJP) instruction is not
executed.
If the program has a TMR timer or counter within the intermediate address range and the timer or counter
has been driven, the following actions are triggered:
Execution
CJ
Jump Occurred
CJ
Jump Not
Occurred
T192–T199 Normally executed
Normally executed
Other timers Timing stopped
C235–C255 Normally executed
Other counters Counting stopped
The requirements for the P*** address pointer are as follows:
The CJ instruction must be used with the LBL instruction, and the target pointer number must belong to the current
program block. Jumping across program blocks is prohibited.
The addresses dened by P*** cannot be the same in the same program block.
Use the CJ instruction to avoid the double coil problem when part of a program does not need to be executed or
two coils are used for output.
The CJ instruction can designate the same pointer P multiple times.
Example:
The CJ instruction is used as follows in AutoShop:
ǒCJ P2Ǔ
ĂĂ
(Y1)
X1
(LBL P2)
Subprograms and interrupt programs are programmed in independent windows, which eliminates the need
for the FEND instruction. The instruction for jumping to the program end is CJEND in AutoShop.
LBL: Marker instruction
Overview
The LBL instruction is used with the CJ instruction to mark the jump destination.
LBL P000–P511
Conditional jump Applicable model:
H3U
P Pointer P Target pointer number for conditional jump
16-bit instruction
(3 steps)
LBL: Continuous
execution
Note: L can be used as an operand and is equivalent to P.

Table of Contents

Other manuals for Inovance H3U Series

Related product manuals