-

Safety Semantic Error: The variable '...' is declared local as well as global.

A local and a global variable with the same name are declared. The global declaration is contained in the Data List of the Safety PLC.
According to the IEC 61131-3 standard, the names of global variables must be unique within the project.

Remedy:
  1. Double-click the error in the Error List to jump to the local variables table where the suspected declaration line is marked.
  2. Was the local variable actually intended to be an external variable?
    • If yes, change the usage of the local variables to 'External'.
    • If no, rename the local variable and modify the related code accordingly.

      The CROSS REFERENCES window supports you in finding the relevant code positions.
      Create the cross references and filter the list for the variable concerned. See topic "CROSS REFERENCES Window" for details.