Delta DVP-ES3 — 6.2.2 Explanation of Arithmetic Instructions

Chapter 6 Applied Instructions Symbol D : Destination device Explanation 6_ 1. This instruction subtracts 1 from the value in D . 2. Only the DDEC instruction can use the 32-bit counter. 3. For the 16-bit operation, -32,768 minus 1 leaves 32,767. For the 32-bit operation, -2,147,483,648 minus 1 leaves 2,147,483,647. Example When M0 switches from OFF to ON, the value in D0 decreases by one.

6-73 API Instruction code Operand Function 0116 D DEC P D Subtracting one from a binary number Device X Y M S T C HC D FR SM SR E K 16# “$” F D       BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type D        Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3