Delta Electronics — 6.4.2 Explanation of Data Transfer Instructions

Chapter 6 Applied Instructions Symbol S : Data source D : Data destination Explanation 1. This instruction inverts all bits in S ; that is, 0 becomes 1, and 1 becomes 0, and stores the inversion result in D . If the 6_ data in S is a constant, the instruction converts it into a binary value. 2. Only the 32-bit instructions can use the 32-bit counter, but not the device E. Example 1 When X0.0 is ON, the instruction inverts all bit in D1, and stores the conversion result in Y0.0–Y0.15.

b 0 b 1 b 2 b 3 b 15 D1 Y0 Inversion result 6-129 API Instruction code Operand Function 0303 D CML P S, D Inverting data Device X Y M S T C HC D FR SM SR E K 16# “$” F S            D        BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S      D      Pulse instruction 16-bit instruction 32-bit instruction AS AS AS 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 Sign bit (0: P ositive sign; 1: Negative sign) 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1