DVP - ES2/SA2/SS2/SA2/SX2/SE Operation Manual - Programming

3.8 Detailed Instruction Explanation

API

00

Mnemonic

Operands

Function

Controllers

CJ

P

Conditional Jump

ES2/EX2

SS2

SA2

SX2

SE

OP

Range

P0~P255

Program Steps

CJ, CJP: 3 steps

 

PULSE

 

 

16-bit

 

 

 

32-bit

 

 

ES2/EX2

SS2

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

ES2/EX2

SS2

 

SA2

SX2

SE

 

SE

 

SE

 

 

 

 

 

 

 

 

 

 

 

Operands:

S: The destination pointer P of the conditional jump.

Explanations:

1.If users need to skip a particular part of PLC program in order to shorten the scan time and execute dual outputs, CJ instruction or CJP instruction can be adopted.

2.When the program designated by pointer P is prior to CJ instruction, WDT timeout will occur and PLC will stop running. Please use it carefully.

3.CJ instruction can designate the same pointer P repeatedly. However, CJ and CALL cannot designate the same pointer P; otherwise operation error will occur

4.Actions of all devices while conditional jump is being executed:

a)Y, M and S remain their previous status before the conditional jump takes place.

b)10ms and 100ms timer that is executing stops.

c)Timer T192 ~ T199 that execute the subroutine program will continue and the output contact executes normally.

d)The high-speed counter that is executing the counting continues counting and the output contact executes normally.

e)General counters stop executing.

f)If timer is reset before CJ instruction executes, the timer will still be in the reset status while CJ instruction is being executed.

g)The application instructions that are being executed, i.e. DHSCS, DHSCR, DHSZ, SPD, PLSY, PWM, PLSR, PLSV, DRVI, DRVA, continue being executed.

3 - 42

Page 158
Image 158
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Detailed Instruction Explanation, Range