Delta Electronics — 6.9.2 Explanation of Logic Instructions

Chapter 6 Applied Instructions Symbol S 1 : Data source 1 S 2 : Data source 2 Taking LD& and DLD& for example Explanation 6_ 1. The instruction is used to compare the data in S 1 with that in S 2 . When the comparison result is not 0, the condition of the instruction is met. When the comparison result is 0, the condition of the instruction is not met. 2. Only the instruction DLD # can use the 32-bit counter but not the device E. 3. The instruction LD # can be connected to the mother line directly. 4. &: Logical AND operation 5. |: Logical OR operation 6. ^:

Logical exclusive OR operation 6-249 API Instruction code Operand Function 0809- 0811 D LD# S , S 1 2 Contact type of logical operation LD# Device X Y M S T C HC D FR SM SR E K 16# “$” F S 1            S 2            BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S 1        S 2        Pulse instruction 16-bit instruction 32-bit instruction - AS AS Comparison operation result API No. 16-bit instruction 32-bit instruction ON OFF 0809 LD& DLD& ≠ S &S 0 1 2 = S &S 0 1 2 0810 LD| DLD| ≠ S |S 0 1 2 = S |S 0 1 2 0811 LD^ DLD^ ≠ S ^S 0 1 2 = S ^S 0 1 2