M3 SOURCE CODE

More
22 Nov 2018 01:11 #121197 by andypugh
Replied by andypugh on topic M3 SOURCE CODE

Canonical commands sound great. Can you give me an example of how to rotate spindle at 50 rpm and how to move Z up to 4"?


You need to be in a remap to "import emccanon" so bear that in mind. Currently you seem to be using a HAL userspace component.

I still think that figuring out how to make the G-code remap work is the best idea.

But, here is the canonical command definitions:

github.com/LinuxCNC/linuxcnc/blob/master...l_intf/canon.hh#L201

There is an alternative interpreter for LinuxCNC. As an alternative to G-code you can use "canonical commands" if you choose the (only, demo) other interpreter. The sim->axis->canterp demo config uses it, the source files look like this
github.com/LinuxCNC/linuxcnc/blob/master.../canterp_example.can

Not immediately relevant, but might give extra clues about canonical commands.

But, I still think we could have made the G-code remap work.

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

More
22 Nov 2018 01:39 #121198 by COlger81
Replied by COlger81 on topic M3 SOURCE CODE
Please explain in detail how to remap and import emccanon.

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

More
22 Nov 2018 01:51 #121199 by COlger81
Replied by COlger81 on topic M3 SOURCE CODE
Like drawing blood from a stone......

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

More
22 Nov 2018 01:57 #121200 by andypugh
Replied by andypugh on topic M3 SOURCE CODE

Please explain in detail how to remap and import emccanon.


The remap docs are here:

linuxcnc.org/docs/2.7/html/remap/remap.html

But I assume you have already read those?

It's a lot to assimilate though. And a Python remap routine isn't particularly well-placed to act on the behaviour of GPIO.

2am here, I need to log out for the night.

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

Time to create page: 0.093 seconds
Powered by Kunena Forum