Hi,
I am working with the OpenPLC runtime on a RPI 4. I am trying to run a simple SFC program (see below) but I am getting a compilation error which I do not understand at all (see below screenshot). Even when I create a more basic SFC program (2 steps and 2 transitions), it yields compilation error. I have already maned to get a ladder program working tho. Some help would be appreciated 🙂
Error generated :
In file included from C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/iec_std_FB.h:35,
from C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/iec_std_lib.h:757,
from C:\Users\Elouan THEOT\Documents\Ingé\S9\PER\OpenPLC Grafcet\build\Res0.c:6:
C:\Users\Elouan THEOT\Documents\Ingé\S9\PER\OpenPLC Grafcet\build\POUS.c: In function 'GRAFCET_body__':
C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/accessor.h:88:13: error: 'STEP' has no member named 'value'
88 | name.value __VA_ARGS__
| ^
C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/accessor.h:126:81: note: in definition of macro '__SET_VAR'
126 | if (!(prefix name.flags & __IEC_FORCE_FLAG)) prefix name.value suffix = new_value
| ^~~~~~~~~
C:\Users\Elouan THEOT\Documents\Ingé\S9\PER\OpenPLC Grafcet\build\POUS.c:164:46: note: in expansion of macro '__GET_VAR'
164 | __SET_VAR(data__->,__transition_list[3],,__GET_VAR(data__->PAUSE,));
| ^~~~~~~~~
C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/accessor.h:88:13: error: 'STEP' has no member named 'value'
88 | name.value __VA_ARGS__
| ^
C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/accessor.h:126:81: note: in definition of macro '__SET_VAR'
126 | if (!(prefix name.flags & __IEC_FORCE_FLAG)) prefix name.value suffix = new_value
| ^~~~~~~~~
C:\Users\Elouan THEOT\Documents\Ingé\S9\PER\OpenPLC Grafcet\build\POUS.c:171:54: note: in expansion of macro '__GET_VAR'
171 | __SET_VAR(data__->,__debug_transition_list[3],,__GET_VAR(data__->PAUSE,));
| ^~~~~~~~~
C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/accessor.h:88:13: error: 'STEP' has no member named 'value'
88 | name.value __VA_ARGS__
| ^
C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/accessor.h:126:81: note: in definition of macro '__SET_VAR'
126 | if (!(prefix name.flags & __IEC_FORCE_FLAG)) prefix name.value suffix = new_value
| ^~~~~~~~~
C:\Users\Elouan THEOT\Documents\Ingé\S9\PER\OpenPLC Grafcet\build\POUS.c:176:46: note: in expansion of macro '__GET_VAR'
176 | __SET_VAR(data__->,__transition_list[4],,__GET_VAR(data__->PAUSE,));
| ^~~~~~~~~
C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/accessor.h:88:13: error: 'STEP' has no member named 'value'
88 | name.value __VA_ARGS__
| ^
C:\Users\Elouan THEOT\OpenPLC_Editor\matiec\lib\C/accessor.h:126:81: note: in definition of macro '__SET_VAR'
126 | if (!(prefix name.flags & __IEC_FORCE_FLAG)) prefix name.value suffix = new_value
| ^~~~~~~~~
C:\Users\Elouan THEOT\Documents\Ingé\S9\PER\OpenPLC Grafcet\build\POUS.c:183:54: note: in expansion of macro '__GET_VAR'
183 | __SET_VAR(data__->,__debug_transition_list[4],,__GET_VAR(data__->PAUSE,));
| ^~~~~~~~~