Yaskawa MP900 Series Ladder Programming Manual User Manual

Page 102

Advertising
background image

5.3 Numeric Operation Instructions

5.3.6 Multiply (MUL (x))

5-33

Instructions

5

• Storing the Output Data in ML00000 When Input Data A in MW00002 Is 200 and Input Data B in MW00003 Is

300
200

× 300 → ML00000 = 60,000

• Storing the Output Data in MW00002 When Input Data A in ML00000 Is -200 and Input Data B in MW00003 Is

300
-200

× 300 → MW00002 = 5,536*

∗ The input data contains a double-length integer, so this operation is performed as a double-length integer oper-

ation. However, the output data is integer data, so if the operation result exceeds the range for integers, the
lower 16-bits of the original operation result is stored in the output data.

When performing operations with different data types, the result of the operation will depend on the data type of the output reg-
ister.
Refer to 4.4.2 ( 3 ) Precautions When Using Local Registers within a User Function for details.
Normally, addition and subtraction instructions (+, –, ++, and – –) involving double-length integers are performed as 32-bit
operations.
However, these instructions are performed as 64-bit operations if they are used to correct the remainder produced by an immedi-
ately preceding MUL instruction (

×) and are immediately followed by a DIV instruction (÷).

INFO

Advertising
This manual is related to the following products: