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 1:<br />

When X0 = ON, the program will skip from address 0 to N (Pointer P1) automatically and keep on<br />

executing. Instructions between address 0 and N will be skipped..<br />

When X0 = OFF, program flow will proceed with the row immediately after the CJ instruction.<br />

0<br />

X0<br />

(CJ instruction)<br />

CJ<br />

P***<br />

P1<br />

N P1<br />

X1<br />

X2<br />

Y1<br />

Y2<br />

Program example 2:<br />

1. The instruction CJ between the instruction MC and the instruction MCR can be used in the five<br />

conditions below.<br />

a). The execution of the program jumps from the part of the program outside one MC/MCR<br />

loop to the part of the program outside another MC/MCR loop.<br />

b). The execution of the program jumps from the part of the program outside the MC/MCR loop<br />

to the part of the program inside the MC/MCR loop.<br />

c). The execution of the program jumps from the part of the program inside the MC/MCR loop<br />

to the part of the program inside the MC/MCR loop.<br />

d). The execution of the program jumps from the part of the program inside the MC/MCR loop<br />

to the part of the program outside the MC/MCR loop.<br />

e). The execution of the program jumps from the part of the program inside one the MC/MCR<br />

loop to the part of the program inside another the MC/MCR loop.<br />

X0<br />

MC N0<br />

X2<br />

CJ P0<br />

X3<br />

CJ P1<br />

X1<br />

MC N1<br />

M1000<br />

P1<br />

Y1<br />

MCR<br />

N1<br />

P0<br />

M1000<br />

Y0<br />

MCR<br />

N0<br />

2. When the instruction MC is executed, the previous state of the switch contact is put onto the<br />

top of the stack inside the PLC. The stack is controlled by the PLC, and can not be changed by<br />

3-43

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

Saved successfully!

Ooh no, something went wrong!