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 in D . 2. Only the 32-bit instruction can use an HC device. 3. Sign bit=0 (Positive number); sign bit =1 (Negative number) 4. 16-bit binary division: Quotient S 1 S 2 D b15..............b0 = / b15..............b0 b15..............b0 The quotient is stored in D .
6-76 API Instruction code Operand Function 0118 DIV16 DIV32 P S1,S2,D Dividing 16-bit binary numbers Dividing 32-bit 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