Chapter 5 Basic Instructions 
5-11 
 
Instruction code  Operand  Function 
LDP/ANDP/ORP 
S 
detection/Connecting the rising-edge 
detection in series/Connecting the 
rising-edge detection in parallel 
Device 
DX  DY  X  Y  M  SM  S  T  C  HC  D  L  PR 
Symbol: 
LDP 
S
:
Specified device  Bit 
ANDP 
     
ORP 
     
Explanation: 
1.  The instruction LDP functions to reserve the current contents, and store the rising-edge 
detection of the contact in the accumulative register. 
2.  The instruction ANDP is used to connect the rising-edge detection of the contact in series. 
3.  The instruction ORP is used to connect the rising-edge detection of the contact in parallel. 
4.  Only when LDP/ANDP/ORP is scanned can the state of the device be gotten, and not until 
LDP/ANDP/ORP is scanned next time can whether the state of the device changes be judged. 
5.  Please use the instructions PED, APED, and OPED in the subroutine. 
Example: 
1.  The rising-edge detection of X0.0 starts, the rising-edge detection of X0.1 is connected in 
series, the rising-edge detection of X0.2 is connected in parallel, and the coil Y0.0 is driven.   
2.  When both X0.0 and X0.1 are switched from OFF to ON, or when X0.2 is switched from OFF 
to ON, Y0.0 is ON for a scan cycle.