beautypg.com

8 detailed instruction explanation – Delta DVP-ES2 User Manual

Page 158

background image

D V P - E S 2 / S A 2 / S S 2 / S A2 / S X 2 / S E O p e r a t i o n M a n u a l - P r o g r a m m i n g

3 - 4 2

3.8 Detailed Instruction Explanation

API Mnemonic Operands

Function

00

CJ P

Conditional Jump

Controllers

ES2/EX2 SS2

SA2

SE

SX2

OP Range Program

Steps

P0~P255

CJ, CJP: 3 steps

PULSE 16-bit 32-bit

ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2 ES2/EX2 SS2

SA2

SE

SX2

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.

This manual is related to the following products: