Skip to content

[Feature Request]: Modbus: WORD, DWORD and LWORD array support #2061

@IsmoLeszczynski

Description

@IsmoLeszczynski

What would you like to happen?

While having a look at the MSpec for Modbus, I noted that for some reason the WORD-variants of data types don't have List variants, unlike every other data type.

['WORD' WORD
[simple uint 16 value]
]
['DWORD' DWORD
[simple uint 32 value]
]
['LWORD' LWORD
[simple uint 64 value]
]

Is there any reason for this, or could they just be added to the MSpec? I ran in to this when implementing reading of single bits from multiple registers - my implementation used WORD with array dimensions as the data type for the ModbusTag when reading the registers, and I noticed that I only ever got a single register as the result. The immediate fix was to change to INT, but I don't see why the WORD variants wouldn't have array support as well.

Programming Languages

  • plc4j
  • plc4go
  • plc4c
  • plc4net

Protocols

  • AB-Ethernet
  • ADS /AMS
  • BACnet/IP
  • CANopen
  • DeltaV
  • DF1
  • EtherNet/IP
  • Firmata
  • KNXnet/IP
  • Modbus
  • OPC-UA
  • S7

Metadata

Metadata

Assignees

No one assigned

    Labels

    Modbushttps://plc4x.apache.org/users/protocols/modbus.htmljavaPull requests that update Java code

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions