How can the TP screen be cleared after for example with MsgNotify(".....") commands are written.
How to clear message written by MsgNotify(".....") in the TP screen
-
dimi22 -
January 2, 2019 at 3:46 PM -
Thread is Resolved
-
-
use your finger or stylus to click on Acknowledge button.
-
You did not specify which KSS version you are using, but since you mention MsgNotify, I'm going to assume you're using 8.2 or higher.
You can use the system function Clear_KRLMsg, but you'll need to give it a handle number for the message(s) you want to clear. -1 will clear any messages originating from the current program, -99 will clear all user-defined messages.
-
[size=2]not exactly... that will work for other types but not notification messages...[/size]
[size=2]functions like Clear_KrlMsg, Exists_KrlMsg etc. work strictly with data in message buffer. Notification messages do not go into message buffer - they are handled differently (since message buffer size is limited) and therefore need to be acknowledged as mentioned before. [/size]
-
Hm... don't -1 and -99 work for Notify messages? Could have sworn I used it that way a few years ago. Man, I hate not having a KRC handy to check things on....
-
OfficeLite is a very nice thing to have...
-
OfficeLite is a very nice thing to have...
Tell me about it! Heck, I used to have a complete OfficePC rig on my desk with all the trimmings. Made writing and debugging code so much easier.... -
i hear you... i am happy to have it. saves my bacon all the time.
-
Thank you. Do I understand well that all the messages you program always come in the small window above of the TeachPendant? Not in the window where the program for examples run or ……?
-
that little window only shows the latest message. you can change the view and fill screen with messages. dialogs are pop-up windows with message and up to several buttons.
those are always available. optionally one can install one of HMI options too (HmiEasy, Zenon).
-
There is a configuration file setting for auto confirming Info messages at a certain time or a certain number of info messages.
C:\KRC\USER\SmartHMI.User.config
<Settings DoAutoConfirm="false" AutoConfirmTime="23:50" MaxInfoMessages="100" />
Try this?