Phase 3 PR 45 -- DL205 string byte-order quirk #44
Reference in New Issue
Block a user
Delete Branch "phase-3-pr45-dl205-string-byte-order"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
First of 5 stacked PRs landing the DL205/DL260 quirks documented in docs/v2/dl205.md. This one tackles the headline string-byte-order quirk.
ModbusStringByteOrder { HighByteFirst, LowByteFirst }enum +StringByteOrderfield onModbusTagDefinition(default = standard Modbus packing).DecodeRegister/EncodeRegisterString branches respect per-tag byte order.LowByteFirstpacks the first char in the low byte of each register -- the AutomationDirect DirectLOGIC pack-order.eHlloinstead ofHellofrom HR[1040..1042] -- same wire bytes, different interpretation.Validation
DL205_string_low_byte_first_decodes_Hello_from_HR1040passes against the live pymodbus dl205 profileHighByteFirst != Helloon the same wire (flag is not a no-op)Test plan