Display message in dialog box on gpio

More
4 years 9 months ago #232952 by ikkuh
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



Code:
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

Please Log in to join the conversation.

More
2 years 1 month ago #309345 by APDent
Hi Chris
How can I use your MESSAGE_TYPE = nonedialog in Gmoccapy 3.4.6? (LCNC 2.9.2, Debian 12)
Cheers
Wayne

Please Log in to join the conversation.

More
2 years 1 month ago #309581 by cmorley
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.

Please Log in to join the conversation.

More
2 years 1 month ago #310290 by cmorley
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

Please Log in to join the conversation.

Time to create page: 0.328 seconds
Powered by Kunena Forum