3. Instruction Set

Program example:

Ladder diagram:

X0

MPS

X1

 

Y1

 

X2

MRD

M0

 

Y2

MPP

END

 

Instruction:

Operation:

LD

X0

Load NO contact X0

MPS

 

Store current status

AND

X1

Connect NO contact X1 in series

OUT

Y1

Drive Y1 coil

MRD

 

Read the stored status

AND

X2

Connect NO contact X2 in series

OUT

M0

Drive M0 coil

MPP

 

Read the stored status and reset

OUT

Y2

Drive Y2 coil

END

 

End of program

Note: When compiling ladder diagram with WPLSoft, MPS, MRD and MPP will be automatically added to the compiled results in instruction format. However, users programming in instruction mode have to enter branch instructions as required.

Mnemonic

Operands

Function

Program steps

 

 

 

 

OUT

Y, M, S

Output coil

1~3

 

 

 

 

Controllers

ES2/EX2 SS2 SA2SE SA2

Explanations:

Output the program evaluation results before OUT instruction to the designated device. Status of coil contact

 

 

 

 

 

 

 

 

 

 

OUT instruction

 

Evaluation result

Coil

 

 

Associated Contacts

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

NO contactnormal open

 

NC contactnormal close

 

 

 

 

 

 

 

 

 

 

 

FALSE

OFF

Current blocked

 

 

 

Current flows

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

TRUE

ON

Current flows

 

 

 

Current blocked

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Program example:

 

 

 

 

 

 

 

 

Ladder diagram:

 

 

 

Instruction:

Operation:

 

X0 X1

 

 

 

LDI

X0

 

Load NC contact X0

 

 

 

 

 

 

 

 

 

 

 

 

Y1

 

AND

X1

 

Connect NO contact X1 in series

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

OUT

Y1

 

Drive Y1 coil

3 - 7

Page 123
Image 123
Delta DVP-ES2/EX2/SS2/SA2/SX2/SE manual Mps, Mrd, Mpp, Out