Chapter 5 Basic Instructions 
5-13 
Instruction code  Operand  Function 
PED/APED/OPED 
S
1
, S
2
 
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: 
PED 
S
1
 
:
Specified device  Bit 
APED 
S
2
 
:
For internal use  Bit 
OPED 
     
Explanation: 
1.  PED/APED/OPED corresponds to LDP/ANDP/ORP. The only difference between 
PED/APED/OPED and LDP/ANDP/ORP lies in the fact that users need to specify the bit 
device S
2
 in which the previous state of the contact is stored when PED/APED/OPED is 
executed. Please do not use the device S
2
 repeatedly in the program. Otherwise, the wrong 
execution result will appear. 
2.  The instruction APED is used to connect the rising-edge detection of the contact in series. 
3.  The instruction OPED is used to connect the rising-edge detection of the contact in parallel. 
4.  Only when PED/APED/OPED is scanned can the state of the device be gotten, and not until 
PED/APED/OPED is scanned next time can whether the state of the device changes be 
judged. 
5.  PED/APED/OPED only can be used in the function block. 
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.