#155 Payload Decode: Robustness / BigEndian PLCs

accepted
None
2022-05-06
2022-01-25
i-campbell
No

Currently it is assumed that the payload being decoded is not corrupt.
Also it assumes the Byte Order of the PLC is Intel (Little-endian).
Note the Byte Order of the Payload must be Little-endian.
Perhaps use a MemUtils.ByteBuffer to accomplish both goals.

Discussion

  • hermsen

    hermsen - 2022-05-03

    __SYSTEM could return the Endianness of the architecture the software is running on. We could read Endianness once and store it somewhere (GVL?) for immediate retrieval. This way we could reference it in code to determine Little or Big without calling __SYSTEM everytime. I think it could or allready is also part of the Edge Properties which we send to the Primary Host.

     

    Last edit: hermsen 2022-05-03

Log in to post a comment.