17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>DVP</strong>-<strong>ES2</strong>/<strong>SA2</strong>/<strong>SS2</strong>/<strong>SA2</strong>/<strong>SX2</strong>/SE <strong>Operation</strong> <strong>Manual</strong> - Programming<br />

3.8 Detailed Instruction Explanation<br />

API Mnemonic Operands Function<br />

00 CJ P Conditional Jump<br />

Controllers<br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SA2</strong><br />

SE <strong>SX2</strong><br />

OP Range Program Steps<br />

P0~P255<br />

CJ, CJP: 3 steps<br />

Operands:<br />

S: The destination pointer P of the conditional jump.<br />

PULSE 16-bit 32-bit<br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>SA2</strong><br />

<strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong> <strong>SX2</strong> <strong>ES2</strong>/<strong>EX2</strong> <strong>SS2</strong><br />

SE<br />

SE<br />

SE<br />

<strong>SX2</strong><br />

Explanations:<br />

1. If users need to skip a particular part of PLC program in order to shorten the scan time and<br />

execute dual outputs, CJ instruction or CJP instruction can be adopted.<br />

2. When the program designated by pointer P is prior to CJ instruction, WDT timeout will occur<br />

and PLC will stop running. Please use it carefully.<br />

3. CJ instruction can designate the same pointer P repeatedly. However, CJ and CALL cannot<br />

designate the same pointer P; otherwise operation error will occur<br />

4. Actions of all devices while conditional jump is being executed:<br />

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

b) 10ms and 100ms timer that is executing stops.<br />

c) Timer T192 ~ T199 that execute the subroutine program will continue and the output contact<br />

executes normally.<br />

d) The high-speed counter that is executing the counting continues counting and the output<br />

contact executes normally.<br />

e) General counters stop executing.<br />

f) If timer is reset before CJ instruction executes, the timer will still be in the reset status while<br />

CJ instruction is being executed.<br />

g) The application instructions that are being executed, i.e. DHSCS, DHSCR, DHSZ, SPD,<br />

PLSY, PWM, PLSR, PLSV, DRVI, DRVA, continue being executed.<br />

3-42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!