Delta Electronics — 5.2 Basic Instructions

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 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. 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 