Chapter 16 PLC Function ApplicationsMH300
Start of rising edge detection action
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
The LDP command has the same use as LD, but its action is different. Its function is
to save the
current content while also saving the detected state of the rising edge of
the contact to the cumulative register.
Ladder diagram:
LDP X0
Start of X0 rising edge
detection action
AND X1
connection to contact
OUT Y1 Drive Y1 coil
Start of falling edge detection action
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
The LDF command has the same use as LD, but its action is different. Its function is to
save the
current content while also saving the detected state of the falling edge of the
contact to the cumulative register.
Ladder diagram:
LDF X0
Start of X0 falling edge
detection action
AND X1
Create a series
connection to contact A
of X1
OUT Y1 Drive Y1 coil
Rising edge detection series connection
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
Use the ANDP command for a contact rising edge detection series connection.
ANDP X1
detection series