I work on CoDeSys 3.5 SP3 Patch5.
I have got two visualizations (not two bitmaps into one vizualization) and one variable of BOOL type.
I want to change these two visualizations by the state of my variable.
Varaible = FALSE --> visu1
Variable = TRUE --> visu2.
Any sugestions, please?
In the visualisation manager enable the option "Use CurrentVisu Variable".
Now in your code you can write to this variable, depending on the state of your bit. The string value is the name of your visualisation.
IF xBit1 THEN
VisuElems.CurrentVisu := 'Visu1';
VisuElems.CurrentVisu := 'Visu2';
Fast and perfect advice.
Log in to post a comment.