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 AND& and DAND& for example Explanation 1. This instruction compares the data in S 1 with that in S 2 . When the comparison result is not 0, the condition of the 6_ instruction is met. When the comparison result is 0, the condition of the instruction is not met. 2. Only the DAND # instruction can use the 32-bit counter, but not the device E. 3. Connect the AND # instruction and the contact in series. 4. &: Logical AND operation 5. |: Logical OR operation 6. ^:

Logical exclusive OR operation 6-251 API Instruction code Operand Function 0812- 0814 D AND# S , S 1 2 Contact type of logical operation AND# 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 0812 AND& DAND& ≠ S &S 0 1 2 = S &S 0 1 2 0813 AND| DAND| ≠ S |S 0 1 = S |S 0 1 2 0814 AND^ DAND^ ≠ S ^S 0 1 2 = S ^S 0 1