M function during move

More
5 years 10 months ago #190850 by TheRoslyak
M function during move was created by TheRoslyak
Tell me how to implement the function while driving? It is desirable that it be recorded from the time or distance parameter to the end point.
Attachments:

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

More
5 years 10 months ago #190851 by Aciera
Replied by Aciera on topic M function during move
Hm, is this example taken from a document? If so can you provide a link to it?

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

More
5 years 10 months ago - 5 years 10 months ago #190852 by TheRoslyak
Replied by TheRoslyak on topic M function during move
No. I painted myself in Adobe Illustrator :laugh:
Last edit: 5 years 10 months ago by TheRoslyak.

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

More
5 years 10 months ago - 5 years 10 months ago #190853 by Aciera
Replied by Aciera on topic M function during move
I see. I don't think you will get this done with standard gcode.
Maybe with a python remap?

linuxcnc.org/docs/html/remap/remap.html#...ming-embedded-python

[edit]

There is a hal-pin that might be useful:

motion.distance−to−go OUT FLOAT

Distance remaining in the current move
Last edit: 5 years 10 months ago by Aciera.
The following user(s) said Thank You: TheRoslyak

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

More
5 years 10 months ago - 5 years 10 months ago #190855 by TheRoslyak
Replied by TheRoslyak on topic M function during move
Now I do that.
Using halcmd lcec.0.D2.dout-0 1
But may be I can use own new hal componet and any else for solving task?
Last edit: 5 years 10 months ago by TheRoslyak.

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

More
5 years 10 months ago #190856 by Aciera
Replied by Aciera on topic M function during move
sure, can't see why not. Do you need this for all moves or just for some?

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

Time to create page: 0.244 seconds
Powered by Kunena Forum