2 data variables (m registers) – Yaskawa MP900 Series Motion Programming Manual User Manual
Page 178

Variables (Registers)
5.2.2 Data Variables (M Registers)
5 -8
5.2.2 Data Variables (M Registers)
J
Overview
M registers are general-purpose variables that can be used in ladder logic programs, user func-
tions, and all motion programs. They are global variables that can be used as interfaces between
motion programs and ladder logic programs.
J
Description
M registers are designated as follows:
MB000000 to MB32767F
MW00000 to MW32767
ML00000 to ML32767
MF00000 to MF32767
The M register can be used as a variable for each type of operation and substituted for the opera-
tion result, or specified as the variable for the positioning coordinate value or the speed. The
variable number is expressed as a decimal.
J
Programming Examples
Specifying the Position and Speed in Axis Move Commands as
Variables
D
Parameter
Reference unit = mm
When decimal point position = 3
ML00100 = 100000;
ML00102 = 200000;
ML00104 = 300000;
ML00106 = 500000;
MVS [X]ML00100 [Y]ML00102 [Z]ML00104 FML00106;
Using Variables in Operations
D
Bit Designation
MB001001 = IB000100 & IB000201;
D
Integer Designation
MW00101 = (MW00101 | MW00102) & FF0CH;
D
Double Integer Designation
ML00200 = (MI00202*ML00204/ML00206)*3;
D
Real Number Designation
MF00200 = MF00202*MF00204/MF00206*3.14;
→ 1000.000 mm
→ 2000.000 mm
→ 3000.000 mm
→ 5000.000 mm/min
5
A
EXAMPLE
"
A
EXAMPLE
"