- Posts: 16
- Thank you received: 0
How to put Custom M-CODES in active G-Codes
- alessandro torre
- Topic Author
- Offline
- New Member
-
Less
More
10 years 5 months ago #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 ?
Please Log in to join the conversation.
10 years 5 months ago #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 to join the conversation.
- alessandro torre
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
10 years 5 months ago #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
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.
10 years 5 months ago #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
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.
- alessandro torre
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 16
- Thank you received: 0
10 years 5 months ago #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 to join the conversation.
Time to create page: 0.145 seconds
