Skeinforge2EMC - Converts Skeinforge GCode output to EMC2 friendly input for a EMC2/RepStrap setup.
Input and Output are from STDIN and to STDOUT respectively.
One can use [FILTER], PROGRAM_EXTENSION in the EMC2 so an Skeinforge GCode opened can be filter by this script automatically.
In the configuration file (ended with .ini), insert the following lines:
[FILTER] PROGRAM_EXTENSION = .skf Skeinforge Output skf = /full/path/to/skeinforge2emc.pl
Then, any file with .skf will be assumed to be Skeinforge output, and will be loaded through this perl filter.
See http://linuxcnc.org/docs/2.3/html/config_ini_config.html#sub:[FILTER]-Section for more.
Currently the filter does the following:
Transforming all M1xx
user M code to use P
as parameter keyword, replacing the S
.
Convert M101
(Extruder on), M103
(Extruder off), M108
(Set extruder speed) to
corresponding spindle M code. (M3
, M4
and M5
)
Removing the (bridgeRotation) comment line, as the nested bracket will upset EMC2 parser.
Sam Wong (sam@hellosam.net)