HMI variables not only as global

Setting up a modular program, I’m used to have a local variable in my routine to interface to a operator. By using OPC this still possible, but setting up a web HMI with dynamic variables, these variables need to be global declared. This is very unwanted, these variable shout be kept locally to the reated routine and also it will make an unclear overfilled global variable list. Is there any way to resolve this? Kind regards, Wilco

Hi meewis, first of all I moved your post from the Early Adopter area to the PC Worx Engineer area, because you’re using for sure the release version of PC Worx Engineer and your post will be also interesting for many of the other users. You are right, in the first version we only support global variables for the integrated HTML5 editor, but this will be changed in the upcoming versions.

In those versions will also local and In/Out GDS Ports possible. It is the first version :wink:! Regards Frank

Hello Frank, I’m currently using 2019.0 PLCnE. I want to have IN and OUT OPC UA Port variables in the HMI. When I select the HMI column for these variables they are still not avalaible in the HMI. What’s the function of this HMI column there? The only way I find to do it is with external variables and selecting these as HMI Tag in the global table. Could you clarify this issue? In C++ it is possible to set a variable with the ehmi atribbute. What’s the function of this? Thanks

Hello Angel, it is possible to use HMI tagged variables for HMI page dynamics.

All you have to do for that is type in the “Source” window the Instance name of your Program dot Variablename.

For example:
MainInstance.FBInstance.VariableName