plc4x
plc4x copied to clipboard
[Bug]: modbus address invalid
What happened?
hello,
I read your official documentation that says it's a legitimate address, but it's wrong:
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
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
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 ;-)