3 subtract (-), 4 multiply (*), 3 subtract (−) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 141

Sequence Commands
4.2.4 MULTIPLY (*)
4 -8
4.2.3 SUBTRACT (−)
J
Overview
SUBTRACT (−) performs integer and real number subtraction 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 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
4.2.4 MULTIPLY (*)
J
Overview
MULTIPLY (*) performs integer and real number multiplication 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 stored.
J
Description
Designation Method
MW−=MW− − * MW−;
Data Types
Bit (B)
Integer (W)
Double Integer (L)
Real Number (F)
No
Yes
Yes
Yes
4
A
EXAMPLE
"