Arithmetic calculation combination -4 – Yaskawa MotionSuite Series Machine Controller Programming Manual User Manual
Page 136

MotionSuite™ Series Machine Controller Motion Programming Manual
Chapter 4: Sequence Commands
4-4
4.1.2
Arithmetic Calculation Combinations
Arithmetic calculation can be executed by combining the arithmetic calculation
commands and the functions.
The order of calculations is as follows: functions, multiplication/division, addition/
subtraction.
An example of the calculation format is shown below:
Supplement
The following examples show the changes in the operation order when parentheses ( ) are
used:
Example: MW00100=MW00102 + MW00104 * SIN(MW00106);
(1)
(2)
(3)
The calculation is executed in the above-numbered order.
• MF00100=100. + 200. * 0.5 * SIN(30.);
(150.)
(4)
(2)
(3)
(1)
• MF00100=(100. + 200.) * 0.5 * SIN(30.);
(75.)
(2)
(3)
(4)
(1)
• MF00100=(100. + 200. * 0.5) * SIN(30.);
(100.)
(3)
(2)
(4)
(1)