From db2c70a0a2493d04e73d1cd6e5b922786030783d Mon Sep 17 00:00:00 2001 From: Marius Stanciu Date: Thu, 22 Jul 2021 00:01:46 +0300 Subject: [PATCH] - fixed the preprocessor for Roland MDX-20 X,Y moves --- CHANGELOG.md | 1 + preprocessors/Roland_MDX_20.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9a237dbe..f5223763 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 diff --git a/preprocessors/Roland_MDX_20.py b/preprocessors/Roland_MDX_20.py index 3802606b..6781ab37 100644 --- a/preprocessors/Roland_MDX_20.py +++ b/preprocessors/Roland_MDX_20.py @@ -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':