beautypg.com

Delta Electronics Programmable Logic Controller DVP-PLC User Manual

Page 228

background image

6 Application Instructions API 00-49

DVP-PLC Application Manual

6-16

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 programs between FOR ~ NEXT.

X7

M0

M0

P6

MOV

FOR

MOV

D0

D0

K3

K0

Y10

INC

MEXT

X10

D0

D1

CJ

P6