Semantic Error (SEM1038): The field or variable '...' does not exist in '...'.
In the code, a structure element or POU formal parameter shall be accessed (read/written) which does not exist.
Error examples
The user-defined data type MyStruct is declared as shown below. In an FBD/LD POU, the variable MyStructV is declared which is of the MyStruct data type. In the FBD/LD code, the non-existing structure element Field3 shall be written.
In ST, the formal parameter OUT of the IEC 61131 standard FB CTU shall be written to the Boolean temp variable. The CTU, however, does not provide an output named OUT.
temp := CTU1.OUT;