Delta DVP-ES3 — 6.2.2 Explanation of Arithmetic Instructions

DVP-ES3 Series Programming Manual Symbol S 1 : Augend S 2 : Addend n : Data length _6 D : Sum Explanation 1. This instruction adds n pieces of data in devices starting from S 2 to those in devices starting from S 1 . The augends and the addends are binary values, and the instruction stores the sums in D . 2. The operand n must be between 1–256. 3. Only the 32-bit instructions can use the 32-bit counter. 4. When the operation result is zero, SM600 is ON. 5. For the 16-bit instructions, when the operation result is less than –32,768, SM601 is ON. 6. For the 16-bit instructions, when the operation result is larger than 32,767, SM602 is ON. 7.

For the 32-bit instructions, when the operation result is less than–21,474,836,488, SM601 is ON. 8. For the 32-bit instructions, when the operation result is larger than 2,147,483,647, SM602 is ON. 6-64 API Instruction code Operand Function 0112 D BK+ P S1,S2,n,D Adding binary values in blocks Device X Y M S T C HC D FR SM SR E K 16# “$” F S1      S2        n        D     BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1      S2      n      D      Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3