In the configuration tool SYCON.net exists the possibility to define variables outside the script, how can I access to those variables in my script?

Q

In the configuration tool SYCON.net exists the possibility to define variables outside the script, how can I access to those variables in my script?

A

The variables are held in the global table VAR and the configured values are assigned to them. Via the access path VAR.Tabellenname.Variablenname you can access to these values at any time in the script.

The screen shot shows the variables mynumber, mybool and mystring along with their values in the table mytable.

Example code:

strlocal = VAR.mytable.mystring –- equals to “I was here“