2 add (+), 1) overview, 2) format – Yaskawa MP2000 Series: User's Manual for Motion Programming User Manual
Page 225: 3) programming examples, 2) format (3) programming examples
![background image](https://www.manualsdir.com/files/819957/content/doc225.png)
8 Command Reference
8.5.2 Add (+)
8-118
8.5.2 Add (+)
(1) Overview
ADD (+) performs integer and real number addition on the right side and stores the result in the register on the
left side. With mixed integers and real numbers, the data type on the left side is also stored.
(2) Format
(3) Programming Examples
Add (+) command programming examples are shown below.
With an operation where the variables are of different data types, the result will be stored according to the data
type on the left side.
For details, refer to 6.1.2 Global Variables and Local Variables.
Motion Programs
Sequence Programs
Applicable
Applicable
MW00101 = MW00100 + 12345 ;
A B C
Item
Description
Usable Registers
A
Data output
• All integer type, double integer type, real number type registers (Excluding # and C
registers)
• The above registers with subscript
• Subscript registers
B
Data input
• All integer type, double integer type, real number type registers (Excluding # and C
registers)
• The above registers with subscript
• Subscript registers
• Constants
C
Data to add
Type
Motion Programs/
Sequence Programs
Ladder Programs
B
−
−
W
MW00101=MW00100+12345;
L
ML00106=ML00102+ML00104;
F
MF00202=MF00200+1.23456;
EXAMPLE
IMPORTANT