-

Safety Semantic Error: The variable usages 'Program', 'IN Port' and 'OUT Port' are not supported in safety POUs.

In safety-related POUs, no program-global variables are supported and no ports can be created.

The following keywords can be used in safety-related POUs:
local variable
input variable in an FB POU
output variable in an FB POU
external variable

See also topic "Variable Declaration Keywords" for details.