You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, its about curly braces. You cannot use multiline pragmas.
Wrap every line of C code with {{ }} and it'll be alright
{{ uint8_t test_func(uint8_t a); }}
{{ SetFbVar(OUT, test_func(GetFbVar(IN))); }}
The error is on line 23, and matiec outputs what is on line 26:
error_line_23_26 := d;
matiec output:
`build/plc.st:26-24..26-24: error: Ambiguous enumerate value or Variable not declared in this scope.
example plc.st
Please, rename plc.txt to plc.st
Run:
<path to matiec>/matiec/iec2c -f -l -p -I "<path to matiec>/matiec/lib" -T "<path to project>/prj/build" "<path to project>/prj/build/plc.st"
The text was updated successfully, but these errors were encountered: