DVP-ES3 Series Programming Manual Symbol S 1 : Multiplicand S 2 : Multiplier D : Product _6 Explanation 1. This instruction multiplies the signed binary value in S 1 by the signed binary value in S 2 , and stores the product in D . 2. Only the MUL32 instruction can use an HC device. 3. 16-bit binary multiplication: S 1 2 D S b15..............b0 * = b15..............b0 b15..............b0 Bit 15 is a sign bit. Bit 15 is a sign bit. Bit 15 is a sign bit. The product is a 16-bit value stored in D which is a 16-bit register. If b15 in D is 0, the product stored in D is a positive value. If b15 in D is 1, the product stored in D is a negative value.
6-74 API Instruction code Operand Function 0117 MUL16 MUL32 P S1,S2,D Multiplying 16-bit binary numbers Multiplying 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