3. Instruction Set

Program example 3:

Users can adopt CJ instruction to skip a specified FOR ~ NEXT loop. When X1 = ON, CJ instruction executes to skip the most inner FOR ~ NEXT loop.

 

X0

 

 

 

TMR

T0

K10

 

FOR

K4X100

 

 

X0

 

 

 

INC

D0

 

 

FOR

K2

 

 

X0

D1

 

 

INC

 

 

FOR

K3

 

 

X0

D2

 

 

INC

 

 

FOR

K4

 

 

X0

 

 

 

WDT

 

 

 

INC

D3

 

 

X1

 

 

 

CJ

P0

 

 

FOR

K5

 

 

X0

 

 

 

INC

D4

 

 

NEXT

 

 

P0

NEXT

 

 

 

NEXT

 

 

 

NEXT

 

 

 

NEXT

 

 

 

END

 

 

3 - 5 9

Page 175
Image 175
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Tmr