Welcome to our new forum
All users of the legacy CODESYS Forums, please create a new account at account.codesys.com. But make sure to use the same E-Mail address as in the old Forum. Then your posts will be matched.
Close
Yes, there is a system variable "CurrentVisu" of type STRING which contains the current painted visualization. When you make an assignment like CurrentVisu := 'NewVisu' and NewVisu is a correct visualization name than the current painted visualization changes.
This would be done automatically for the targetvisualization. For the webvisualization you must set the parameter "USECURRENTVISU" = "TRUE" in the webvisu.htm
In CoDeSys you must set the option UseCurrentVisu in the target settings.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does anybody know if it is possible to call a visualization screen in the plc code?
Yes, there is a system variable "CurrentVisu" of type STRING which contains the current painted visualization. When you make an assignment like CurrentVisu := 'NewVisu' and NewVisu is a correct visualization name than the current painted visualization changes.
This would be done automatically for the targetvisualization. For the webvisualization you must set the parameter "USECURRENTVISU" = "TRUE" in the webvisu.htm
In CoDeSys you must set the option UseCurrentVisu in the target settings.
Thanks for your reply, I'will try it at ones,
Corvdl.