Display message in dialog box on gpio
24 Jan 2022 12:17 - 25 Jan 2022 06:54 #232952
by ikkuh
Replied by ikkuh on topic Display message in dialog box on gpio
Great to have this working now. When there is no pressure from the spindle water cooling pump the machine will turn off when it was on, then a blocking dialog box will show on the screen. Nothing works until the error is fixed.
By turning the machine off the spindle will stop too.
(did I ever mention the editor of the forum software totally sucks?)
imgur.com/I3sGcmR
qt.ini
[DISPLAY]
MESSAGE_BOLDTEXT = Water pomp staat uit
MESSAGE_TEXT = De waterkoeling pomp van de spindle staat uit of werkt niet meer.
MESSAGE_DETAILS = Na oplossen van de fout verdwijnt deze boodschap vanzelf
MESSAGE_TYPE = nonedialog
MESSAGE_PINNAME = no-coolant
MESSAGE_ICON = CRITICAL
By turning the machine off the spindle will stop too.
(did I ever mention the editor of the forum software totally sucks?)
imgur.com/I3sGcmR
qt.ini
[DISPLAY]
MESSAGE_BOLDTEXT = Water pomp staat uit
MESSAGE_TEXT = De waterkoeling pomp van de spindle staat uit of werkt niet meer.
MESSAGE_DETAILS = Na oplossen van de fout verdwijnt deze boodschap vanzelf
MESSAGE_TYPE = nonedialog
MESSAGE_PINNAME = no-coolant
MESSAGE_ICON = CRITICAL
loadrt or2 names=tool_probe,vacuumOr2,machineOnOr2
addf tool_probe servo-thread
addf vacuumOr2 servo-thread
addf machineOnOr2 servo-thread
net btn-pwr <= input.0.btn-top2 => machineOnOr2.in0
net coolant-pump <= [HMOT](CARD0).7i84.0.0.input-00 => machineOnOr2.in1
net pwr-btn toggle2Power.in machineOnOr2.out qtdragon.no-coolant
net tog-on toggle2Power.is-on <= halui.machine.is-on => [HMOT](CARD0).gpio.037.out
net pwr-on halui.machine.on <= toggle2Power.on
net pwr-off halui.machine.off <= toggle2Power.off
Last edit: 25 Jan 2022 06:54 by cmorley. Reason: reason is that this editor totaLYU BLOWS!!!!!!!!!!!!!!!!!
The following user(s) said Thank You: cmorley
Please Log in or Create an account to join the conversation.
04 Sep 2024 10:31 #309345
by APDent
Replied by APDent on topic Display message in dialog box on gpio
Hi Chris
How can I use your MESSAGE_TYPE = nonedialog in Gmoccapy 3.4.6? (LCNC 2.9.2, Debian 12)
Cheers
Wayne
How can I use your MESSAGE_TYPE = nonedialog in Gmoccapy 3.4.6? (LCNC 2.9.2, Debian 12)
Cheers
Wayne
Please Log in or Create an account to join the conversation.
07 Sep 2024 15:20 #309581
by cmorley
Replied by cmorley on topic Display message in dialog box on gpio
At the moment I think you would need to make a VCP panel using qtvcp and embed it into gmoccapy. That would give you access to Qtvcp's messaging functions.
It could probably be done using gmoccapy's USER_COMMAND_FILE options but I have never trued that.
It could probably be done using gmoccapy's USER_COMMAND_FILE options but I have never trued that.
Please Log in or Create an account to join the conversation.
17 Sep 2024 04:41 #310290
by cmorley
Replied by cmorley on topic Display message in dialog box on gpio
I pushed some work to master to make this easier.
There is a sim demo: gmoccapy_qt_messages
The dialog HAL pins are:
ini_dialogs.VFD
ini_dialogs.VFD-waiting
ini_dialogs.bothtest
ini_dialogs.bothtest-waiting
ini_dialogs.VFD is a S32 and can be set to 0,1,2,3 for three different messages (0 to hide)
ini_dialogs.bothtest is a bit which will show the one dialog message.
Chris
There is a sim demo: gmoccapy_qt_messages
The dialog HAL pins are:
ini_dialogs.VFD
ini_dialogs.VFD-waiting
ini_dialogs.bothtest
ini_dialogs.bothtest-waiting
ini_dialogs.VFD is a S32 and can be set to 0,1,2,3 for three different messages (0 to hide)
ini_dialogs.bothtest is a bit which will show the one dialog message.
Chris
The following user(s) said Thank You: tommylight
Please Log in or Create an account to join the conversation.
Moderators: cmorley
Time to create page: 0.071 seconds