3. Instruction Set

Program example 1:

When X0 = ON, the program will skip from address 0 to N (Pointer P1) automatically and keep on executing. Instructions between address 0 and N will be skipped..

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

0

N P1

(CJ instruction)

X0P***

CJ P1

X1

Y1

X2

Y2

Program example 2:

1.The instruction CJ between the instruction MC and the instruction MCR can be used in the five conditions below.

a). The execution of the program jumps from the part of the program outside one MC/MCR loop to the part of the program outside another MC/MCR loop.

b). The execution of the program jumps from the part of the program outside the MC/MCR loop to the part of the program inside the MC/MCR loop.

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

d). The execution of the program jumps from the part of the program inside the MC/MCR loop to the part of the program outside the MC/MCR loop.

e). The execution of the program jumps from the part of the program inside one the MC/MCR loop to the part of the program inside another the MC/MCR loop.

P1

P0

X0

MC N0

X2

CJ P0

X3

CJ P1

X1

MC N1

M1000

Y1

MCR N1

M1000

Y0

MCR N0

2.When the instruction MC is executed, the previous state of the switch contact is put onto the top of the stack inside the PLC. The stack is controlled by the PLC, and can not be changed by

3 - 4 3

Page 159
Image 159
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual CJ P1