Delta DVP-ES3 — 6.5.2 Explanation of Jump Instructions

DVP-ES3 Series Programming Manual 6.5.2 Explanation of Jump Instructions Symbol S : Jump destination Explanation 1. This instruction jumps from the current program execution to a label (destination) in a different part of the program in the PLC. You specify the label (pointer) in S . You can use the CJ or CJP instruction to shorten the scan time. You _6 can also use the CJ or CJP instruction when using a dual output. 2. If the program specified by the jump destination (label) is prior to the CJ instruction, the watchdog timer error occurs, and the PLC stops running the program. Use this instruction carefully. 3.

You can specify the same label repeatedly with the multiple different CJ instructions. 4. When the instruction is executed, the actions of the devices are as described below.  The state of Y, the state of M, and the state of S remain the same as before the execution of the jump.  The timer keeps counting and when it reaches the time setting value, the program drives the output T-coil.  For more information on the MC and MCR instructions, refer to Example 2 below.  The general applied instructions are not executed. Example 1 1. When M0 is ON, the program execution jumps from NETWORK 1 to LABEL1 (NETWORK 3) and skips NETWORK 2.

6-150 API Instruction code Operand Function 0400 CJ P S Conditional jump Device X Y M S T C HC D FR SM SR E K 16# “$” F S BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 -