Skip to content

Add suppor for modbus endiannes (Swapped ASCII) #3285

Description

@Quiler0

When reading string datapoints, because Modbus frames transmit 16-bit registers (2 bytes), some manufacturers send the high byte first, while others send the low byte first. When you send a string from some devices, it groups the characters in pairs, and when it reaches the SCADA-LTS (which expects the reversed order), the pairs of characters are reversed.

Eg:
"Github" reads "iGhtbu".

Proposed solution:
When selecting modbus data type, there should be 2 options, per string type, Fixed size string (Big-Endian), Fixed size string (Little-Endian), Variable size string (Big-Endian) and variable size string (Little-Endian).

I've tried already several different ways to manage to do that with the options already in Scada-LTS and couldn't find how. If there's already a way to do this, please let me know and sorry for bothering

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions