-

Semantic Error: A variable named '...' is already defined in this scope.

A variable name conflict exists in an object-oriented function block POU. The same variable name is declared twice: in the POU itself ('Variables' table of the POU) and in a method of the FB.

  1. Double-click the error message to open the 'Variables' table of the method.
  2. Rename one of the affected variables.