Chapter 5 Basic Instructions Symbol LDP ANDP S : Specified device ORP Explanation 5_ 1. LDP stores the current contents, and stores the rising-edge detection of the contact in the accumulative register. 2. ANDP connects the rising-edge detection of the contact in series. 3. ORP connects the rising-edge detection of the contact in parallel. 4. The system must scan LDP/ANDP/ORP to get the state of the device. Changes to the device state are not detected until LDP/ANDP/ORP is scanned the next time. 5. Use the corresponding PED, APED, and OPED instructions in subroutines. Example 1.
The rising-edge detection of M0 starts, the rising-edge detection of M1 is connected in series, the rising-edge detection of M2 is connected in parallel, and the coil M20 is driven. 2. When both M0 and M1 are switched from OFF to ON, or when M2 is switched from OFF to ON, M20 is ON for a scan cycle. 5-9 Instruction code Operand Function LDP/ANDP/ORP S 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 S BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S