Appendix | Appendix C: Network variables Data representation on different platforms Please note that the depictions of simple and complex data (WORD, ARRAYs, REAL, STRING, user-defined structures) may vary internally on different platforms! x86 platforms use byte-alignment, others use (ARM) 2-byte or 4-byte alignment. This means that if a complex structure is created in an x86/PC PLC project and in an ARM PLC project, they can each have a different effective size and a different internal structure.
Recommendation for structures that are identical on both end devices firstly, all 4-byte variables (must be on an address that is divisible by 4) then all 2-byte variables (must be on an address that is divisible by 2) then all 1-byte variables Further recommendation TwinCAT 2 435 Version: 1.7