- fixed the preprocessor for Roland MDX-20 X,Y moves

This commit is contained in:
Marius Stanciu
2021-07-22 00:01:46 +03:00
committed by Marius
parent 1330b1047c
commit db2c70a0a2
2 changed files with 4 additions and 1 deletions

View File

@@ -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
- added a preprocessor for Roland MDX-540
- fixed the preprocessor for Roland MDX-20 X,Y moves
20.07.2021

View File

@@ -59,7 +59,9 @@ class Roland_MDX_20(PreProc):
else:
x = p.x
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):
if p.units.upper() == 'IN':