- Posts: 4739
- Thank you received: 2
Options
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
-
I worked ok, and i'm sure that I could make the Gladevcp work that way, or activate the M1xx codes directly. I'm just not sure that this is the best way to make it work. There just seems to be so many ways to possibly make this work. What are some of your oppinions of the best ways to get it done.
I think I would like to have some onscreen feed back of the state of the vacuum clamping. Also what are some ways to make this work, so that the clamping can be turned on and off regardless of linuxcnc's state kind of like mist/lube, but also be able to still use the custom M1xx codes.
Please Log in to join the conversation.
Todd Zuercher wrote: I'm working on building a Gladevcp panel to replace an old Pyvcp one. A couple of the buttons in the old panel were used to trigger a couple of Halui commands that in turn commanded a couple of custom M1xx codes to turn off vacuum clamping..
There is a GladeVCP button type that can run a G-code command directly.
www.linuxcnc.org/docs/html/gui/gladevcp....d_action_mdi_widgets
Please Log in to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
What would be the best way to do this without requiring MDI, so that something can be turned on/off while in auto mode?
Maybe I'll decide MDI is the best way to go, but I'd still like to know how to make the other way work.
Please Log in to join the conversation.
Todd Zuercher wrote: What would be the best way to do this without requiring MDI, so that something can be turned on/off while in auto mode?.
Halui requires the machine to be in MDI mode too (or, at least not in Auto mode).
What do the M-codes do?
Please Log in to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
andypugh wrote:
Todd Zuercher wrote: What would be the best way to do this without requiring MDI, so that something can be turned on/off while in auto mode?.
Halui requires the machine to be in MDI mode too (or, at least not in Auto mode).
What do the M-codes do?
halcmd sets ...
The ones I'm working on right now turn on and off vacuum clamping for the router table.
Please Log in to join the conversation.
Todd Zuercher wrote:
andypugh wrote: What do the M-codes do?
halcmd sets ...
The ones I'm working on right now turn on and off vacuum clamping for the router table.
Well, you seem to already be doing things the hard way...
Why not link the PyVCP pins of a toggle switch directly to the HAL pin that controls the vacuum?
Please Log in to join the conversation.
- Todd Zuercher
- Topic Author
- Offline
- Platinum Member
-
- Posts: 4739
- Thank you received: 2
I wanted a pair of radio buttons. (I like the visual feed back they give of the state of on/off.) Then I also wanted a pair of M-codes that could also turn on/off the same thing. And last of all I wanted the the radio buttons to change when the M-codes were used.
So when my vacuum was turned off, the "Off" radio button was active, and when the vacuum was on the "On" button is active. The only way I could think of to make it work was to create a hal pin in the gladevcp's python file and use that to change the set_active(True) for the appropriate radio button.
like this:
It seems a little backwards to me to have the M-code trigger the the glade button, but I just couldn't think up another way that worked. (without using MDI for the Glade)
Please Log in to join the conversation.
