PLCDataPacket helper functions