Manual Tool Change
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 910
- Thank you received: 470
13 Feb 2025 18:42 #321458
by JT
Manual Tool Change was created by JT
I'm trying to figure out when iocontrol.0.tool-change is on so I can pop up a window similar to the Axis pop up for tool change.
I'm looking at hal_manualtoolchange.py but not understanding it fully so I'm a bit stumped... any clues?
JT
I'm looking at hal_manualtoolchange.py but not understanding it fully so I'm a bit stumped... any clues?
JT
Please Log in or Create an account to join the conversation.
- Aciera
-
- Offline
- Administrator
-
Less
More
- Posts: 4170
- Thank you received: 1825
13 Feb 2025 19:43 - 13 Feb 2025 19:44 #321469
by Aciera
Replied by Aciera on topic Manual Tool Change
Not sure if this helps but 'hal_manualtoolchange.py' is a userspace hal component that needs its pins connected to iocontrol in hal so it can create the popups when a change is requested and pass the information on to iocontrol when the change is completed:
loadusr -W hal_manualtoolchange
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
net tool-changed iocontrol.0.tool-changed <= hal_manualtoolchange.changed
net tool-number iocontrol.0.tool-prep-number => hal_manualtoolchange.number
Last edit: 13 Feb 2025 19:44 by Aciera.
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 910
- Thank you received: 470
13 Feb 2025 21:37 #321482
by JT
Replied by JT on topic Manual Tool Change
Thanks, I know how to load and connect to hal_manualtoolchange, I'm trying to figure out how hal_manualtoolchange.py works so I can roll my own using PyQt6.
This part is pretty straight forward to me making the pins
JT
This part is pretty straight forward to me making the pins
h = hal.component("hal_manualtoolchange")
h.newpin("number", hal.HAL_S32, hal.HAL_IN)
h.newpin("change", hal.HAL_BIT, hal.HAL_IN)
h.newpin("change_button", hal.HAL_BIT, hal.HAL_IN)
h.newpin("changed", hal.HAL_BIT, hal.HAL_OUT)
h.ready()
JT
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 910
- Thank you received: 470
13 Feb 2025 21:39 #321483
by JT
Replied by JT on topic Manual Tool Change
Perhaps this is a key item
net tool-change iocontrol.0.tool-change => hal_manualtoolchange.change
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 910
- Thank you received: 470
14 Feb 2025 17:34 #321568
by JT
Replied by JT on topic Manual Tool Change
Actually I think I have it all sorted out now...
JT
JT
Please Log in or Create an account to join the conversation.
- JT
-
Topic Author
- Away
- Administrator
-
Less
More
- Posts: 910
- Thank you received: 470
15 Feb 2025 13:24 - 15 Feb 2025 13:45 #321631
by JT
JT
Replied by JT on topic Manual Tool Change
JT
Last edit: 15 Feb 2025 13:45 by JT.
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Time to create page: 0.057 seconds