Chapter 5 Basic Instructions Symbol PED S 1 : Specified device APED S 2 : For internal use 5_ OPED Q : Output the state of the operation result Explanation 1. PED/APED/OPED correspond to LDP/ANDP/ORP. The only difference between PED/APED/OPED and LDP/ANDP/ORP is that you must specify the bit device S 2 in which to store the previous state of the contact when PED/APED/OPED is executed. Do not use the device S 2 repeatedly in the program. Otherwise, the wrong execution result appears. 2. APED connects the rising-edge detection of the contact in series. 3. OPED connects the rising-edge detection of the contact in parallel. 4. The system must scan PED/APED/OPED to get the state of the device.
Changes to the device state are not detected until PED/APED/OPED is scanned the next time 5. You can use PED/APED/OPED only in function blocks. 6. The state of the operation result is automatically output after the instruction is executed. You do not need to use an input device for this. 5-11 Instruction code Operand Function PED/APED/OPED S1,S2 Starting the rising-edge 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 S1 S2 BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2