DVP-ES3 Series Programming Manual Symbol S 1 : Dividend S 2 : Divisor D : Quotient; remainder _6 Explanation 1. This instruction divides the signed binary value in S 1 by the signed binary value in S 2 , and stores the quotient and the remainder in D . 2. Only the 32-bit instructions can use the 32-bit counter. 3. When the sign bit is 0, the value is a positive one. When the sign bit is 1, the value is a negative one. 4. Dividing 16-bit values: S 1 S 2 D+1 D Quotient Remainder b15..............b0 b15..............b0 b15..............b0 b15..............b0 = / The operand D occupies two consecutive devices. The quotient is stored in D , and the remainder is stored in D +1.
6-54 API Instruction code Operand Function 0103 D / P S1,S2,D Dividing binary numbers Device X Y M S T C HC D FR SM SR E K 16# “$” F S1 S2 D BOOL WORD DWORD LWORD UINT INT DINT LINT REAL LREAL TMR CNT STRING Data type S1 S2 D Pulse instruction 16-bit instruction 32-bit instruction ES3 ES3 ES3