2 add (+) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 140

4.2 Arithmetic Operations
4 -7
4.2.2 ADD (+)
J
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.
J
Description
Designation Method
MW−=MW−+MW−;
Data Types
Bit (B)
Integer (W)
Double Integer (L)
Real Number (F)
No
Yes
Yes
Yes
J
Programming Examples
Type
Motion Program
Ladder Logic Program
B
−
−
W
MW00101=MW00100+12345;
MW00100
+ 12345 ⇒ MW00101
L
ML00106=ML00102+ML00104;
ML00102
+
ML00104 ⇒ ML00106
+
F
MF00202=MF00200+1.23456;
MF00200 + 1.23456 ⇒ MF00202
With an operation where the variables are of different data types, the result will be stored acco rding to the data
type on the left side. For details, see Precautions on Va riable Opera tions in 5.1.2 Global Variables and Local
Variables.
4
A
EXAMPLE
"
IMPORTANT