Editor
Troubleshooting

0023: Unexpected instruction

The compiler finds an incorrect syntax in FOR..END or VAR..END constructs.

Possible solutions: check the documentation and provide the correct syntax:

VAR..END syntax: var <variable>: <type> end

FOR..END syntax: FOR <loop variable> = <initial value> TO/DOWNTO <final value> [step = 1] <the loop body> END