Delta DVP-ES2 — 3.8 Detailed Instruction Explanation

3. Instruction Set Program example 1: After program A has been executed for 3 times, it will resume its execution after NEXT instruction. Program B will be executed for 4 times whenever program A is executed once. Therefore, program B will be executed 3 Ч 4 = 12 times in total. NEXT A B NEXT Program example 2: When X7 = OFF, PLC will execute the program between FOR ~ NEXT. When X7 = ON, CJ instruction jumps to P6 and avoids executing the instructions between FOR ~ NEXT. X7 M0 M0 X10 MEXT P6 Y10 3-57 FOR K3 FOR K4 CJ P6 MOV K0 D0 FOR K3 MOV D0 D1 INC D0