[QTDragon] blocking in hal_manualtoolchange dialog

More
2 years 2 months ago #307840 by chernogorsky
Hi,
I cant understand what options do I have

Currently Im using hal_manualtoolchange for semi manual tool change
I have ATC, but at the moment I dont use slots / pockts, instead Im using go to toolchange XY, ZMax, and change the tool through button on pendant  / QTDragon MDI_COMMAND
But when Im inside hal_manualtoolchange dialog, non of these options works. It blocks any activities

May someone more familiar with QT/LCNC desing point me to the right direction

My sugestion / questions would be
1. Create a custom dialog (if its possible to be an additional to the code / not replacement) with additional button. 
2. Somehow ublock cnc pendant button exceution
3. something better I dont know about

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

More
2 years 2 months ago - 2 years 2 months ago #307881 by cmorley
What version of linuxcnc?
If you are using the Qtvcp version of hal tool change, there should be a button 'pause for jog'
This was a work around for this type of problem.
It actually works by aborting the program at the tool change and restarts the program after.
You must re-establish machine settings such as spindle settings after the tool change.
Last edit: 2 years 2 months ago by cmorley.

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

More
2 years 2 months ago #307925 by chernogorsky
Hi,
lcnc 2.10-dev (builded from master)

I saw that,
I want to avoid multiple steps,
What I need is run a command from the dialog (by button from a dialog, or by external signal like pendant)
my imaginary flow be like
programm triger TxM6
it goes to change location
shows toolchange dialog
I change the tool by pressing additional button on a dialog / phisical button on a pendant
press OK
and it continue its procedure with qc_autotool_change macro

Im looking for a solution to overcome blocking during dialog or
replace that dialog with my own, without the need of changing dialog_widget.py file (and keep the changes all the time I update the lcnc)

all the rest would be handled by the program itself, including spindle speed, locations, ...

in short I want to have another action during manual change, since I dont need to work with wrenches rather button click

priv I had air release button closeby, but after rewiring all the air contorls goes to the back side of my cnc (
I would consider adding phisical button for tool replace later, but it would be through lcnc logic, not directly, means - I need lcnc be not blocked (

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

More
2 years 2 months ago #307944 by cmorley
One cannot run MDI commands while in auto mode. When the tool change dialog pops up, you are still in auto mode.

Jog while paused is also not really available, though you can use an external offsets hack to get around that.

These are limits of linuxcnc not QtDragon.

So if that is what you need to do, the abort/restart hack is the only method I know that could work. (To be clear a dialog will pop up for automatic restart, but I haven't tested this feature in a long time.)

If the MDI commands are movements and are the same each time maybe a remap could cover it. Tell use more about that part please.

Chris
The following user(s) said Thank You: chernogorsky

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

More
2 years 2 months ago - 2 years 2 months ago #307950 by chernogorsky
Basically I have configured
o<pnc_tc_manual> call
which I want to run several times (manually) during the dialog
Jogging routin - as far as I understood it :
I press pause for jogging
do jogging / (in my case tool change)
press ok/cancel for the spindle speed up (not needed)
but it broke the procedure, means it does not work properly with auto_toolsetup


so the question is - is there a way of modifying the standard dialog by adding another button properly (like add some file in handled folder)
or its just easier to create my own hal based on hal_manualtoolchange with additional button

Added
so what Im aiming now - find a way of modify class ToolDialog(LcncDialog, GeometryMixin): from dialog_widget.py inside  custom qtdragon_hd_handler.py (or similar mechanism)
Last edit: 2 years 2 months ago by chernogorsky.

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

More
2 years 2 months ago #307963 by cmorley
It is possible to have a custom dialog. I haven't done one for tool dialog but see no particular problem. It would, as you suspected, require a custom handler file.

But I don't think it ill help you. The dialog blocks because linuxcnc is blocked. Unblocking the dialog will not unblock linuxcnc.

You can not call MDI commands at tool change unless it's incorporated into a remap.

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

Moderators: cmorley
Time to create page: 0.270 seconds
Powered by Kunena Forum