5 arithmetic operations, 1 substitute (=), 1) overview – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual
Page 224: 2) format, 3) programming examples, 2) format (3) programming examples
![background image](https://www.manualsdir.com/files/819957/content/doc224.png)
8.5 Arithmetic Operations
8-117
8
Command Reference
8.5 Arithmetic Operations
This section explains the arithmetic operation commands.
For priority levels of Arithmetic Operation, refer to 7.4 Priority Levels of Operations.
8.5.1 Substitute (=)
(1) Overview
The operation result on the right side of the expression is substituted in the register on the left side.
(2) Format
(3) Programming Examples
Substitute (=) command programming examples are shown below.
Motion Programs
Sequence Programs
Applicable
Applicable
Result = Math expression ;
A B
Item
Description
Usable Data
A
Result
• All bit type, integer type, double integer type, real number type registers (Excluding
# and C registers)
• The above registers with subscript
• Subscript registers
B
Math
expression
• All bit type, integer type, double integer type, real number type registers (Excluding
# and C registers)
• The above registers with subscript
• Subscript registers
• Constants
Type
Motion Programs/
Sequence Programs
Ladder Programs
B
MB001000=1;
W
MW00100=12345;
L
ML00100=1234567;
F
MF00100=1.2345;
EXAMPLE