beautypg.com

Delta DVP-ES2 User Manual

Page 174

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 - 5 8

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.

FOR

K3

FOR

K4

NEXT

NEXT

A

B

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

P6

MOV

FOR

MOV

D0

D0

K3

K0

Y10

INC

MEXT

X10

D0

D1

CJ

P6

This manual is related to the following products: