-

ST Parser Error (STP0025): Variable expected.

The ST parser detected a syntactical fault in a function block call:

When calling an FB in ST, the output parameters of this FB can be assigned to variables within the call. In the following example, the CV output of a CTU counter FB is assigned to the variable Counter (marked in the code). This is done using the => operator.

In a worksheet, the variable is missing in such an FB output assignment.

Further Info
For information on the correct ST syntax refer to the topic "ST code objects".