The problem was solved by setting {attribute 'pack_mode' := '1'} Thanks!
Hi, I'm relatively new to the codesys platform. I'm creating an interface by using a union. Everything works fine, except when start adding a DINT variable (int, word etc is working fine). When monitoring "online", it seems that right before the DINT there are added 2 empty bytes for no reason? Can someone explain this behaviour? TYPE stMyTestStructure : STRUCT //structure of 8 bytes bByte0 : BYTE; // byte 0 bByte1 : BYTE; //byte 1 diTestDINT : DINT; //byte 2,3,4 & 5 32 Bit = 4 bytes bByte2 : BYTE;...
Hi, I'm relatively new to the codesys platform. I'm creating an interface by using a union. Everything works fine, except when start adding a DINT variable (int, word etc is working fine). When monitoring "online", it seems that right before the DINT there are added 2 empty bytes for no reason? Can someone explain this behaviour?