mcode-inject (2009/11/12)
index
/home/sam/Public/mcode-inject.py

RepStrap Extruder MCode Injection
 
DESCRIPTION
 
The script should be invoked by EMC2 upon hitting M1xx User M Code. This will inject corresponding value to HAL pin and so that the repstrap-extruder driver could pick up.
 
Please read the README.html usage.

 
Modules
       
re
sys
time

 
Classes
       
exceptions.Exception(exceptions.BaseException)
Usage

 
class Usage(exceptions.Exception)
    Represents an exception about improper usage of this script
 
 
Method resolution order:
Usage
exceptions.Exception
exceptions.BaseException
__builtin__.object

Methods defined here:
__init__(self, msg)

Data descriptors defined here:
__weakref__
list of weak references to the object (if defined)

Data and other attributes inherited from exceptions.Exception:
__new__ = <built-in method __new__ of type object at 0x81419c0>
T.__new__(S, ...) -> a new object with type S, a subtype of T

Methods inherited from exceptions.BaseException:
__delattr__(...)
x.__delattr__('name') <==> del x.name
__getattribute__(...)
x.__getattribute__('name') <==> x.name
__getitem__(...)
x.__getitem__(y) <==> x[y]
__getslice__(...)
x.__getslice__(i, j) <==> x[i:j]
 
Use of negative indices is not supported.
__reduce__(...)
__repr__(...)
x.__repr__() <==> repr(x)
__setattr__(...)
x.__setattr__('name', value) <==> x.name = value
__setstate__(...)
__str__(...)
x.__str__() <==> str(x)

Data descriptors inherited from exceptions.BaseException:
__dict__
args
message
exception message

 
Functions
       
main(argv=None)

 
Data
        PIPE = -1
STDOUT = -2
__author__ = 'Saw Wong (sam@hellosam.net)'
__date__ = '2009/11/12'
__license__ = 'GPL 3.0'
blocking_mcodes = {101: 1, 150: 1}

 
Author
        Saw Wong (sam@hellosam.net)