Mitsubishi Electric MELDAS C6 Programming Manual page 30

Hide thumbs Also See for MELDAS C6:
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,5550mm
#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.
22
5.3 Decimal point input
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
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

Advertisement

Table of Contents
loading

This manual is also suitable for:

Meldas c64Meldas c64t

Table of Contents