Appendix D How to Use PLC Function|
Revision June 2008, 04EE, SW--PW V1.11/CTL V2.11 D-41
LD X11 Load A contact of X11
OUT Y10 Drive Y10 coil
:
MCR N0 Disable N0 common series
connection contact
Mnemonic Function
LDP Rising-edge detection operation
X0~X17 Y0~Y17 M0~M159 T0~15 C0~C7 D0~D29
Operand
9 9 9 9 9
--
Explanations:
Usage of the LDP command is the same as the LD command, but the motion is different. It is used to
reserve present contents and at the same time, saving the detection status of the acquired contact
rising-edge into the accumulative register.
Program Example:
Ladder diagram: Command code: Operation:
LDP X0 Start X0 rising-edge detection
AND X1 Series connection A contact of X1
X1
Y1
X0
OUT Y1 Drive Y1 coil
Mnemonic Function
LDF Falling-edge detection operation
X0~X17 Y0~Y17 M0~M159 T0~15 C0~C7 D0~D29
Operand
9 9 9 9 9
--
Explanations:
Usage of the LDF command is the same as the LD command, but the motion is different. It is used to
reserve present contents and at the same time, saving the detection status of the acquired contact
falling-edge into the accumulative register.
Program Example: