CODESYS - the IEC 61131-3 automation software
https://forum.codesys.com/

Message in Visualization
https://forum.codesys.com/viewtopic.php?f=25&t=6645
Page 1 of 1

Author:  drChiavo [ Thu Jan 14, 2016 1:33 pm ]
Post subject:  Message in Visualization

Hello,

Is it possible to prompt messages in the Visualization? If yes, how can I do that? Or which library can I use?

What I want to do is to send a message in the Visualization in case the "start button" haven't pressed.

Something like...

IF xStart THEN
xStartProcess := TRUE;
ELSE
XStartPorcess := FALSE;
//PROMPT MESSAGE IN VISUALIZATION ('Please press start button to start')
END_IF

Author:  jvondrus [ Thu Jan 14, 2016 7:48 pm ]
Post subject:  Re: Message in Visualization

Hello,

I'm doing this by button element field which is hidden / shown as specific value says.

Look for "State variables" then "invisible" and "Deactivate input". Default is TRUE = HIDDEN / DEACTIVATED, so if do you want FALSE for HIDDEN you have to put "!" after variable, like "XStartPorcess!"

Author:  drChiavo [ Fri Jan 15, 2016 3:27 pm ]
Post subject:  Re: Message in Visualization

Hello,

I tried what you said but it didnt work. I have done a screenshot in the places where you said I should put "!".

Author:  jvondrus [ Fri Jan 15, 2016 3:36 pm ]
Post subject:  Re: Message in Visualization

Hello,

its OK, if g_Stop is FALSE you have to see your element visible and active for touch (click) event.
g_Stop must be BOOLEAN type.

Have you any error message in log?

Author:  drChiavo [ Wed Jan 20, 2016 3:13 pm ]
Post subject:  Re: Message in Visualization

Hello,

Sorry, because I answered you too late. It is true that the initial status TRUE = HIDDEN but with "!" has no effect. Still TRUE := HIDDEN.

Author:  jvondrus [ Wed Jan 20, 2016 8:23 pm ]
Post subject:  Re: Message in Visualization

It's long time when I used it, I dot'n remember exact type. And I have not CODESYS on this computer right now.

Maybe it required ( ).

Author:  barkamharikrishna [ Mon Sep 12, 2016 10:45 am ]
Post subject:  Re: Message in Visualization

hi
please used NOT before your variable .
its works

Page 1 of 1 All times are UTC+01:00
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/