Ref: http://linuxcnc.org/docs/devel/html/config/python-interface.html
As an example, I started a non-identity kinematics sim config (configs/sim/axis/ldelta_demo.ini) and then used python in a separate terminal for control. Session: $ python >>> import linuxcnc as l >>> c=l.command() >>> c.state(l.STATE_ESTOP_RESET) # out of estop >>> c.state(l.STATE_ON) # machine on >>> c.home(-1) # home all >>> c.teleop_enable(0) # joint mode >>> c.unhome(-1) # unhome all >>> c.home(0) # home joint 0 >>> ... -- Dewey Garrett ------------------------------------------------------------------------------ Announcing the Oxford Dictionaries API! The API offers world-renowned dictionary content that is easy and intuitive to access. Sign up for an account today to start using our lexical data to power your apps and projects. Get started today and enter our developer competition. http://sdm.link/oxford _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
