Linuxcnc python module questions

More
9 years 11 months ago #83132 by Todd Zuercher
This is really well beyond my skill level, so I'm going to stop pointing to the manuals now. (Still watching with interest though. So please share what you figure out.)

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #83133 by gaeldk
Yes thanks have seen those but not sure how to enable the system without axis and launching a specific machine conf...

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #83158 by gaeldk
So just to sum up I am now stuck with starting in pure python mode, so load the right conf, then enable the machine.

How can I do this without axis ?

Thanks

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #83166 by ArcEye
There is no 'python mode'.
The python bindings are just python friendly access to existing C and C++ calls.

And without AXIS I can not launch the home sequence, the enabled state is false and I don't know what command should be issued to enable the system without axis.


Axis contains all the calls you need, you just need to remove the GUI clutter.
By studying what Axis does, it will become apparent what calls are made in python to change machine state etc.

Some of the same calls are also available from halui, but you should make them directly preferably.

Please Log in or Create an account to join the conversation.

More
9 years 11 months ago #83175 by andypugh

gaeldk wrote: - Ideally I do not want to have Axis running, just a python program, is it possible ?

Yes, perfectly possible. I think that all you need to do is use your own Python program as the DISPLAY = in the INI. If that doesn't work (I think I have been told that it does, but haven't tied it) then a work-around is DISPLAY = halui and load your interface with a loadusr in the HAL file. (which I have tried)

- In the video above, Kent does all his stuff AFTER the machine is homed, can I launch a homing sequence from the python module alone?


Yes: see section 5: linuxcnc.org/docs/2.7/html/config/python-interface.html

Even if you don't want a GUI, you might find that starting with Gscreen is a good beginning.

Please Log in or Create an account to join the conversation.

Time to create page: 0.053 seconds
Powered by Kunena Forum