EasyManua.ls Logo

Delta DVP-20PM

Delta DVP-20PM
580 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...
5 Applied Instructions and Basic Usage
5.6 Descriptions of the Applied Instructions
API
Applicable model
20PM
00
CJ
P
Conditional jump
Bit device Word device
X Y M S K H KnX KnY KnM KnS T C D V Z
Note: S can be a pointer.
S can be a pointer in the range of P0 to P255.
A pointer can not be modified by a V device or a Z device.
16-bit instruction (3 steps)
CJ
Continuity
instruction
CJP
Pulse
instruction
32-bit instruction
Flag: None
Explanation
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.
S: Pointer which points to a jump destination
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.
1. 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.
2. The 10 millisecond timers in the program stop counting.
3. The general counters in the program stop counting, and the general applied
instructions in the program are not executed.
4. 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.
Example 1
When X0 is ON, the execution of the program jumps from address 0 to address
N (P1).
When X0 is OFF, the execution of the program starts from address 0, and the
instruction CJ is not executed.
X0
X1
X2
CJ P1
Y1
Y2
0
N
()Jump instruction
P1
DVP-20PM Application Manual
5-14

Table of Contents

Other manuals for Delta DVP-20PM

Related product manuals