NAME

Skeinforge2EMC - Converts Skeinforge GCode output to EMC2 friendly input for a EMC2/RepStrap setup.


DESCRIPTION

Input and Output are from STDIN and to STDOUT respectively.

Usage - Configuration in EMC2

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.

Functional description

Currently the filter does the following:

  1. Transforming all M1xx user M code to use P as parameter keyword, replacing the S.

  2. Convert M101 (Extruder on), M103 (Extruder off), M108 (Set extruder speed) to corresponding spindle M code. (M3, M4 and M5)

  3. Removing the (bridgeRotation) comment line, as the nested bracket will upset EMC2 parser.


AUTHOR

Sam Wong (sam@hellosam.net)