Delta Electronics Extension Digital I/O Module DOP-EXIO14RAE User Manual
Page 74
![background image](/manuals/79046/74/background.png)
Appendix C Use of Basic Instructions|DOP-EXIO Series
Revision March, 2008, Doc. Name: 2007PDD23000014
C-9
Program Example:
Ladder diagram:
Instruction code: Operation:
LD
X0
Loading in A contact of X0
MC
N0
Enabling N0 common series connection
contact
LD
X1
Loading in A contact of X1
OUT Y0 Driving
Y0
coil
:
LD
X2
Loading in A contact of X2
MC
N1
Enabling N1 common series connection
contact
LD
X3
Loading in A contact of X3
OUT Y1 Driving
Y1
coil
:
MCR
N1
Disabling N1 common series connection
contact
:
MCR
N0
Disabling N0 common series connection
contact
:
LD
X10
Loading in A contact of X10
MC
N0
Enabling N0 common series connection
contact
LD
X11
Loading in A contact of X11
OUT Y10 Driving
Y10
coil
:
MCR
N0
Disabling N0 common series connection
contact
X0
Y0
MC
N0
X1
X2
Y1
MC
N1
X3
MCR
N1
MCR
N0
X10
MC
N0
Y10
X11
MCR
N0
Mnemonic Functions
LDP
Rising-edge Detection Operation
X0~X17 Y0~Y17
M0~M1279
S0~S127
T0~T127 C0~C254
D0~D599
Operand
9
9
9
9
9
9
-
Explanations:
The method of using LDP is the same as using LD, but the actions of the two instructions differ. LDP
saves the current content and store the detected status of rising-edge to the accumulative register.
Program Example:
Ladder diagram:
Instruction code:
Operation:
LDP
X0
Starting X0 rising-edge detection
AND
X1
Series connecting A contact of X1
X0
X1
Y1
OUT Y1
Driving
Y1
coil