How to put Custom M-CODES in active G-Codes

More
10 years 5 months ago #74345 by alessandro torre
Hi, we wrote two customs "Mcode" M130 and M131.
When M130 is active, M131 is not, and viceversa.
We would to see which on is turned on, in the "active gcodes" panel.
Is it possible ?

Please Log in to join the conversation.

More
10 years 5 months ago #74361 by andypugh
Not without changing the Axis UI to understand your modes.

Even then, I think it only knows about things that are stored in the status structure.
What language are your M-codes in?

Please Log in to join the conversation.

More
10 years 5 months ago #74477 by alessandro torre
The M-code are really simple. They enable a pin of a custom component.
Code:
#!/bin/sh # M131: Velocity_Extrusion On halcmd setp VelocityExtruder.0.enable 1 exit 0
Code:
#!/bin/sh # M130: Velocity_Extrusion Off halcmd setp VelocityExtruder.0.enable 0 exit 0


But when this happen the jog of the 4th axis is related to the movement of X and Y, and u can't jog the 4th axis manually. It will be usefull to read in which status is commanded the axis.
A solution will be put a led on the gui, if the section of active g-code is unaccessible.

Thank you

Please Log in to join the conversation.

More
10 years 5 months ago #74479 by andypugh

alessandro torre wrote: The M-code are really simple.


Indeed they are so simple that I am wondering why you didn't just use M64 and M65. (or possibly M3 and M5, which would show up in Active G-codes)

Please Log in to join the conversation.

More
10 years 5 months ago #74481 by alessandro torre
OH Thanks, I didn't know that M64-5 they were free.
Thank you

Please Log in to join the conversation.

Time to create page: 0.145 seconds
Powered by Kunena Forum