user dialog messages

More
04 Jul 2021 00:31 #213628 by mb_cnc
user dialog messages was created by mb_cnc
I'm looking for help with user dialog messages using silverdragon to display servo drive errors. Below is what I found for the ini file which seems simple enough but I'm not sure how to connect the hal pins. Working example files would be appreciated.
thanks[DISPLAY]
MESSAGE_BOLDTEXT = This is the short text
MESSAGE_TEXT = This is the longer text of the both type test. It can be longer then the status bar text
MESSAGE_DETAILS = BOTH DETAILS
MESSAGE_TYPE = okdialog
MESSAGE_PINNAME = oktest

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

More
04 Jul 2021 05:08 - 04 Jul 2021 05:09 #213640 by cmorley
Replied by cmorley on topic user dialog messages
linuxcnc.org/docs/2.8/html/gui/qtvcp_libraries.html#_messages

ok dialogs have two HAL pins (the pin names can be changed from 'oktest').

qtdragon.oktest
qtdragon.oktest-waiting

the first pin will display the dialog when it switches from false to true
The second will be true when the dialog is displaying ie waiting for input and false when closed.
Last edit: 04 Jul 2021 05:09 by cmorley.

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

More
04 Jul 2021 21:07 #213720 by mb_cnc
Replied by mb_cnc on topic user dialog messages
I got it working sort of. I tested in halshow and the message displays as expected but when a drive goes into alarm no message appears. I believe this is due to rapid loss of alarm signal. I have the machine configured to go into emergency and kill the drive/servo power on alarm. Seemed like a good idea at the time but now I'm wondering if there is a better approach?

thanks

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

More
05 Jul 2021 02:49 #213736 by cmorley
Replied by cmorley on topic user dialog messages
yes if the signal transition back to false too fast, the user code dialog will not see it.
You could add a oneshot timer to extend the signal, I would think.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum