Skip to content

[Feature Request]: better error message when data-content doesn't mach data-spec in S7 #2377

@DvonHolten

Description

@DvonHolten

What would you like to happen?

recently i implemented plc communication using S7 put/get-protocol. After some fumbling the adress syntax was correct and reading/writing worked. Then i needed to write value 0x8000 into an "%DB123.DBW96:INT", which failed. Lengthy probing revealed, that 0x8000 is not an Integer in S7, so that WORD format needs to be used instead of INT.
I ask for better error message when communication detects this. All we have now is some NPE when accessing the result-status.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions