-

Lexical Error (LEX0002): Invalid direct variable '...'.

In an ST code worksheet, the lexical analysis detected an invalid direct addressing of a variable (using a location prefix I, Q or M, the % character and a size prefix X, B, W etc.). The affected code position is underlined in the worksheet.

This type of addressing is not supported in PLCnext Engineer, regardless of the present lexical error. Addressing is done exclusively by assignment to a process datum in the Data List.

Remedy