Chapter 7 Second Development PlatformVP3000
285
Instruction Function
LDF Falling edge detection
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
Description
The method of using LDF is the same as using LD, but the actions of the two instructions
differ. LDF saves the current content and store the detected status of falling-edge to the
accumulative register.
Example
Ladder diagram:
X1
Y1
X0
Instruction code Operation
LDF X0
Falling edge of X0
detection starts
AND X1
Connect X1 (the contact
A) in serial
OUT Y1 Drive Coil Y1
Instruction Function
ANDP Detect serial connection at rising edge
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
Description ANDP instruction is used in the serial connection of the contacts’ rising-edge detection
Example
Ladder diagram:
X1
Y1
X0
Instruction code Operation
LD X0 Load X0 (the contact A)
ANDP X1
Detect serial
connection at rising
edge of X1
OUT Y1 Drive Coil Y1
Instruction Function
ANDF Detect serial connection at falling edge
Operand
X0–X17 Y0–Y17 M0–M799 T0–159 C0–C79 D0–D399
-
Description ANDP instruction is used in the serial connection of the contacts’ rising-edge detection
Example
Ladder diagram:
X1
Y1
X0
Instruction code Operation
LD X0 Load X0 (the contact A)
ANDF X1
Detect serial
connection at falling
edge of X1
OUT Y1 Drive Coil Y1