How to put Custom M-CODES in active G-Codes
- alessandro torre
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
07 May 2016 19:31 - 07 May 2016 21:58 #74345
by alessandro torre
How to put Custom M-CODES in active G-Codes was created 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 ?
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.
08 May 2016 09:54 #74361
by andypugh
Replied by andypugh on topic How to put Custom M-CODES in active G-Codes
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?
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.
- alessandro torre
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
10 May 2016 21:11 #74477
by alessandro torre
Replied by alessandro torre on topic How to put Custom M-CODES in active G-Codes
The M-code are really simple. They enable a pin of a custom component.
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
#!/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.
10 May 2016 21:46 #74479
by andypugh
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)
Replied by andypugh on topic How to put Custom M-CODES in active G-Codes
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.
- alessandro torre
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
10 May 2016 22:50 #74481
by alessandro torre
Replied by alessandro torre on topic How to put Custom M-CODES in active G-Codes
OH Thanks, I didn't know that M64-5 they were free.
Thank you
Thank you
Please Log in or Create an account to join the conversation.
Time to create page: 0.189 seconds