Semantic Error: Invalid partial access '...'.
The syntax of a partial access to the ANY_BIT variable (also known as implicit addressing) mentioned in the error message is invalid.
Error examples
In ST, the assignment MyByteVar :=MyDWordVar.%B4; is invalid because a 5th Byte does not exist in a DWORD data type.
In FBD/LD, an error example could be as follows:
In both examples, only the partial access types .%B0 to .%B3 are possible.
Further Info
Refer to the topic "Partial Access to ANY_BIT Variables" for detailed information. |
Double-clicking the error message opens the code and marks the incorrect code position.