Compiler Error C0183
Message: Global scope operation '.' is not valid on expression '<expression>'
Possible error cause: The '.' operator is used to access a global variable. However, at this location it is not followed by a valid IEC identifier, but for example a character such as ";" or a reserved identifier such as FUNCTION
, or an operator such as TO_STRING
.
Error correction: Use a valid IEC identifier for a global variable.
Example 418. Example of the error:
PROGRAM PLC_PRG ... iVar := .FUNCTION; strVar := .TO_STRING;
Message:
C0183: Global scope operation '.' is not valid on expression '<expression>'
Error correction:
Example: globalValue is declared in a GVL.
PROGRAM PLC_PRG iVar := .globalValue;