-

Semantic Error (SEM1126): The data types of the external variable '... : ...' and the related global variable '... : ...' are not equal.

In a local 'Variables' table of the POU mentioned in the error message, an external variable is declared ('Usage = External') with a different data type as the related global declaration in the mentioned Data List of the 'IEC 61131-3' PLANT node.

Each global variable has to be declared with the keyword Global in the resource-global Data List and with 'Usage = External' in each POU where it is used.

The relating global and external variable must have the same data type.

Further Info
For information on variables and how to declare them refer to the topic "Declare Variables/FB Instances"