Keep in mind the default alignment of variables in RAM which can cause unused bytes between the structure variables.
To remove that fill bytes, you can put {attribute 'pack_mode' := '1'} into the structure definition. => Because of the WORD based adress in Modbus, you should NOT use any data types with size 1. (as. BYTE, BOOLEAN,...)
For more info see PLC docu: pack_mode
... View more