M3 SOURCE CODE

More
7 years 11 months ago #121197 by andypugh
Replied by andypugh on topic M3 SOURCE CODE

COlger81 wrote: 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 to join the conversation.

More
7 years 11 months ago #121198 by COlger81
Replied by COlger81 on topic M3 SOURCE CODE
Please explain in detail how to remap and import emccanon.

Please Log in to join the conversation.

More
7 years 11 months ago #121199 by COlger81
Replied by COlger81 on topic M3 SOURCE CODE
Like drawing blood from a stone......

Please Log in to join the conversation.

More
7 years 11 months ago #121200 by andypugh
Replied by andypugh on topic M3 SOURCE CODE

COlger81 wrote: 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 to join the conversation.

Time to create page: 0.369 seconds
Powered by Kunena Forum