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

More
07 May 2016 19:31 - 07 May 2016 21:58 #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 ?
Last edit: 07 May 2016 21:58 by alessandro torre.

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

More
08 May 2016 09:54 #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 or Create an account to join the conversation.

More
10 May 2016 21:11 #74477 by alessandro torre
The M-code are really simple. They enable a pin of a custom component.
#!/bin/sh
# M131: Velocity_Extrusion  On
halcmd setp VelocityExtruder.0.enable 1
exit 0
#!/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 or Create an account to join the conversation.

More
10 May 2016 21:46 #74479 by andypugh

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)
The following user(s) said Thank You: alessandro torre

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

More
10 May 2016 22:50 #74481 by alessandro torre
OH Thanks, I didn't know that M64-5 they were free.
Thank you

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

Time to create page: 0.329 seconds
Powered by Kunena Forum