OpenPCS no longer automatically declares used global variables

When using Global Variables in your OpenPCS projects, you can use them in each and every program and functionblock you write. Here is how to fix it, if the compiler reports an error for each "undeclared" external variable.

From version 7.3.0 onwards, InfoTeam uses a new tool to generate the installer, which no longer includes the required registry entry for automatic declaration of global variables in OpenPCS upon generation of POE files.

Symptoms:

OpenPCS reports:

Performing syntax check on file(s): 

- E: S3026: Undeclared identifier. 

And this for every instance of a global variable.

Fix:

Set registry key:

Computer\HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\infoteam Software GmbH\OpenPCS\7.3.1\Settings\AutoDeclarationExternal

to value "1".