how to make my own custom page for qtdragon_hd?

More
04 May 2023 09:08 #270616 by cmorley

Bit like this

 
 

HAL input pin 'spindle-modbus-connection'
Should it be True or false for error?
Based on the pin name I would think True for connection.
That work for you?

Chris

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

More
04 May 2023 09:17 #270617 by cmorley

I would suggest usig the ACTION library:
linuxcnc.org/docs/2.9/html/gui/qtvcp-lib...ml#_code_action_code

look here for a style sheet way to modify the spindle buttons to incrementally adjust the spindle.
 

Sorry the spindle link didn't come tru but the style code is:
#action_spindle_fwd{
qproperty-spindle_up_action: true;
}
#action_spindle_rev{
qproperty-spindle_down_action: true;
}

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

More
04 May 2023 09:22 #270619 by rodw
Yeh, true if connected via modbus

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

More
04 May 2023 10:11 #270621 by cmorley
ok pushed. goes red if pin is false.
The following user(s) said Thank You: rodw

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

More
04 May 2023 10:52 #270629 by rodw
One more idea while the spindle RPM gauge is in front of us.
I've been looking at ways to replicate the axis feature set. From what I can see, we do not have the ability to set the spindle speed from the GUI as we do in axis. (I think this  is the last idea from me).

I don't know if it is possible in QT but if we had two rectangular clickable regions  that overlaid the  spindle meter and extended to the sides of its panel box. 
On the left side top left add a - symbol. On the right side top right add a + symbol
Imagine  a line on the meter from 12 to 6 O'clock
Clicking to the right of that line would increment the spindle speed, Clicking on the left would decrement the spindle speed. 
Put it on your long term to do list if its possible in QT.  :)

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

More
04 May 2023 10:58 #270630 by cmorley
Did you try the stylesheet change for incremental spindle buttons I posted?
I find it easy to get used to.
Though I keep debating how the incremental part should work.
Currently one is always slower the other faster regardless of direction.
I wonder if changing it based on spindle direction would be more intuitive.

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

More
04 May 2023 11:48 #270635 by rodw
No  will be tomorrow when I am at the machine.

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

More
05 May 2023 05:13 - 05 May 2023 05:16 #270697 by rodw
Stylesheet spindle mod works thanks.
The F12 stylesheet editor can't save to /usr/share so I did it by hand.
Modbus error count kinda works.
I would have thought qtdragon.spindle-modbus-connectionwould have been a bit type for true/false operation.
I converted my VFDMOD bit to u32
The Error count field goes red on an error and clears to black  when restored.I guess from a HMI perspective, that makes sense as you should just highlight errors. So black is the new green! :)

 
Attachments:
Last edit: 05 May 2023 05:16 by rodw.

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

More
05 May 2023 06:15 #270699 by cmorley
Sorry I intended it as a bit.
In HAL you can use 1 and 0 with a BIT pin so I never noticed the type.
Next pull it will be fixed.

It does stick out like a sore thumb when red.
The following user(s) said Thank You: rodw

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

More
05 May 2023 06:51 #270703 by rodw
Thanks it's perfect now thanks.. Really appreciate you acting so promptly on my concerns.
We've put a fair bit of polish on qtdragon now.

One more question for a mate who uses qtdragon, He wants to add back more hotkeys like axis has.
I found all the handler code and it looks pretty easy. Is there a list of key codes or a source file that lists them  somewhere?

My touch panel arrives Monday. Can't wait!
​​​​​​

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

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