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 instruction D* can use the 32-bit counter. 3. Multiplying 16-bit binary values: S D 1 2 D S +1 b15..............b0 b31.........b16 * = b15..............b0 b15...........b0 b15 is the sign bit. b15 is the sign bit. b31, i.e. b15 in D+1, is the sign bit. The product is a 32-bit value, and is stored in the register (D+1, D), which is composed of 32 bits. When the sign bit b31 is 0, the product is a positive value.
When the sign bit b31 is 1, the product is a negative value. 6-52 API Instruction code Operand Function 0102 D * P S1,S2,D Multiplying 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