Mitsubishi Electric M700V Series Programming Manual page 41

Hide thumbs Also See for M700V Series:
Table of Contents

Advertisement

5. Position Commands
Example of program
(1)
Example of program for decimal point valid address
Program example
G0X123.45
(decimal points are all mm
points)
G0X12345
#111 = 123, #112 = 5.55
X#111 Y#112
#113 = #111+#112
(addition)
#114 = #111-#112
(subtraction)
#115 = #111∗#112
(multiplication)
#116 = #111/#112
#117 = #112/#111
(division)
Decimal point input I/II and decimal point command valid/invalid
If a command does not use a decimal point at an address where a decimal point command is valid
in the table on the following page, it is handled differently between decimal point input I and II
modes as explained below.
A command using a decimal point is handled the same way in either the decimal point input I or II
mode.
(1)
Decimal point input I
The least significant digit place of command data corresponds to the command unit.
(Example) Command "X1" in the 1μm system is equivalent to command "X0.001".
(2)
Decimal point input II
The least significant digit place of command data corresponds to the decimal point.
(Example) Command "X1" in the 1μm system is equivalent to command "X1.".
(Note) When a four rules operator is contained, the data will be handled as that with a decimal
point.
(Example) When the min. input command unit is 1μm :
Specification
division
When 1 = 1μm
X123.450mm
X12.345mm
(last digit is 1μm
unit)
X123.000mm,
Y5.550mm
#113 = 128.550
#114 = 117.450
#115 = 682.650
#116 = 22.162
#117 = 0.045
G0 x 123 + 0 ; ... X axis 123mm command. It will not be 123μm.
Decimal point command 1
When 1 = 10μm
X123.450mm
X123.450mm
X123.000mm,
Y5.550mm
#113 = 128.550
#114 = 117.450
#115 = 682.650
#116 = 22.162
#117 = 0.045
29
5.3 Decimal Point Input
Decimal point
command 2
1 = 1mm
X123.450mm
X12345.000mm
X123.000mm,
Y5.550mm
#113 = 128.550
#114 = 117.450
#115 = 682.650
#116 = 22.162
#117 = 0.045

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents