Mnemonic
Rising-edge detection operation
LDP
X0~X17
Operand
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.
Ladder diagram:
Example
X0
Please refer to the specification of each model series for the applicable range of
Remarks
operands.
If rising-edge status is ON when PLC power is off, then the rising-edge status will be
TRUE when PLC power is on.
Mnemonic
Falling-edge detection operation
LDF
X0~X17
Operand
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.
Y0~Y17
M0~M799
X1
Y1
Y0~Y17
M0~M799
16-44
Chapter 16 PLC Function |C2000 Series
:
MCR
N0
:
LD
X10
MC
N0
LD
X11
OUT
Y10
:
MCR
N0
Function
T0~159
Command code:
X0
LDP
X1
AND
OUT
Y1
Function
T0~159
C0~C79
Disable N0 common
series connection
contact
Load A contact of X10
Enable N0 common
series connection
contact
Load A contact of X0
Enable N0 common
series connection
contact
Load A contact of X1
Drive Y0 coil
C0~C79
D0~D399
-
Operation:
Start X0 rising-edge
detection
Series connection A
contact of X1
Drive Y1 coil
D0~D399
-