beautypg.com

Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual

Page 70

background image

Appendix C Use of Basic Instructions|DOP-EXIO Series

Revision March, 2008, Doc. Name: 2007PDD23000014

C-5

Explanation:
To retrieve the previous preserved logical operation result and store it into the accumulative register
(the pointer of operational result will minus 1).

Program Example:
Ladder diagram:

Instruction code:

Operation:

LD

X0

Loading in contact A of X0

MPS

Saving into stack

AND

X1

Connecting to contact A of X1 in series

OUT Y1

Driving

Y1

coil

MRD

Reading from stack

AND

X2

Connecting to contact A of X2 in series

OUT

M0

Driving M0 coil

MPP

Reading from stack and pop pointer

OUT Y2

Driving

Y2

coil

X0

Y1

X1

M0

X2

Y2

END

MPP

MRD

MPS

END

Program

ends

Mnemonic Functions

OUT

Output Coil

X0~X17 Y0~Y17

M0~M1279

S0~S127

T0~T127 C0~C254

D0~D599

Operand

-

9

9

9

- - -

Explanations:
1. To output the logical operation result before OUT instruction into a designated device.
2. Actions of coil contact:

OUT instruction

Contact

Operational result

Coil

A contact (normally open)

B contact (normally closed)

FALSE Off

Off

On

TRUE On

On

Off

Program Example:
Ladder diagram:

Instruction code:

Operation:

LDI

X0

Loading in contact B of X0

AND

X1

Connecting to contact A of X1 in series

X0

X1

Y1

OUT

Y1

Driving Y1 coil