plc4x icon indicating copy to clipboard operation
plc4x copied to clipboard

[Bug]: modbus address invalid

Open anganing opened this issue 2 years ago • 2 comments

What happened?

hello, I read your official documentation that says it's a legitimate address, but it's wrong: image image

Version

v0.11.0

Programming Languages

  • [X] plc4j
  • [ ] plc4go
  • [ ] plc4c
  • [ ] plc4net

Protocols

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

anganing avatar Nov 15 '23 03:11 anganing

You can try 0x00001:BOOL[1]. The Modbus register coil status addresses range from 00001 to 09999, and I just checked, the regular expression matching in the code follows the same pattern. ADDRESS_SHORT_PATTERN FIXED_DIGIT_MODBUS_PATTERN

hongjinlin avatar Nov 15 '23 11:11 hongjinlin

Aaaaaa ... now I understand the isssue ... yeah ... I first thought this was related to the "Register 1 = address 0 on the wire" problem ... but yeah ... the address is not in the valid format. I guess it's just missing some zeroes ;-)

chrisdutz avatar Feb 10 '24 17:02 chrisdutz