17.03.2014 Views

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

DVP-ES2-EX2-SS2-SA2-SX2-Operation Manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3. Instruction Set<br />

Program example 3:<br />

Users can adopt CJ instruction to skip a specified FOR ~ NEXT loop. When X1 = ON, CJ<br />

instruction executes to skip the most inner FOR ~ NEXT loop.<br />

X0<br />

TMR T0 K10<br />

X0<br />

X0<br />

X0<br />

X0<br />

X1<br />

X0<br />

FOR<br />

INC<br />

FOR<br />

INC<br />

FOR<br />

INC<br />

FOR<br />

WDT<br />

INC<br />

CJ<br />

FOR<br />

INC<br />

K4X100<br />

D0<br />

K2<br />

D1<br />

K3<br />

D2<br />

K4<br />

D3<br />

P0<br />

K5<br />

D4<br />

NEXT<br />

P0<br />

NEXT<br />

NEXT<br />

NEXT<br />

NEXT<br />

END<br />

3-59

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!