- fixed the preprocessor for Roland MDX-20 X,Y moves
This commit is contained in:
@@ -11,6 +11,7 @@ CHANGELOG for FlatCAM beta
|
|||||||
|
|
||||||
- when using the NCCAD9 preprocessor (for Kosy machines) at GCode save the .knc extension will be automatically preselected
|
- when using the NCCAD9 preprocessor (for Kosy machines) at GCode save the .knc extension will be automatically preselected
|
||||||
- added a preprocessor for Roland MDX-540
|
- added a preprocessor for Roland MDX-540
|
||||||
|
- fixed the preprocessor for Roland MDX-20 X,Y moves
|
||||||
|
|
||||||
20.07.2021
|
20.07.2021
|
||||||
|
|
||||||
|
|||||||
@@ -59,7 +59,9 @@ class Roland_MDX_20(PreProc):
|
|||||||
else:
|
else:
|
||||||
x = p.x
|
x = p.x
|
||||||
y = p.y
|
y = p.y
|
||||||
return ('Z' + self.coordinate_format + ',' + self.coordinate_format) % (float(x * 40.0), float(y * 40.0))
|
|
||||||
|
# RML-1 unit is 0.01mm for X-Y moves (maybe on Z also?) so we multiply by 100
|
||||||
|
return ('Z' + self.coordinate_format + ',' + self.coordinate_format) % (float(x * 100.0), float(y * 100.0))
|
||||||
|
|
||||||
def rapid_code(self, p):
|
def rapid_code(self, p):
|
||||||
if p.units.upper() == 'IN':
|
if p.units.upper() == 'IN':
|
||||||
|
|||||||
Reference in New Issue
Block a user