Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request][MODBUS]: Build a QueryOptimizer for PLC4J Modbus #1671

Open
2 of 16 tasks
chrisdutz opened this issue Jun 19, 2024 · 1 comment
Open
2 of 16 tasks
Labels
feature java Pull requests that update Java code Modbus https://plc4x.apache.org/users/protocols/modbus.html

Comments

@chrisdutz
Copy link
Contributor

What would you like to happen?

The modbus spec seems to provide limits for the size of packets. However in contrast to the other protocols, is this limit not related to the size of the packet, but by the number of registers/coils.

Please refer to: https://www.modbus.org/docs/Modbus_Application_Protocol_V1_1b3.pdf, page: 11

It should be simple to implement a query-optimizer for Modbus to automatically handle this. The Siemens S7 QueryOptimizer might help with inspiration.

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
@chrisdutz
Copy link
Contributor Author

So it seems that the limitations are:

Max 2000 coils in one request (Page 11)
Max 125 registers in one request (Page 15)

@chrisdutz chrisdutz changed the title [Feature Request]: Build a QueryOptimizer for PLC4J Modbus [Feature Request][MODBUS]: Build a QueryOptimizer for PLC4J Modbus Jun 30, 2024
@ottlukas ottlukas added java Pull requests that update Java code Modbus https://plc4x.apache.org/users/protocols/modbus.html feature and removed new feature labels Jul 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature java Pull requests that update Java code Modbus https://plc4x.apache.org/users/protocols/modbus.html
Projects
None yet
Development

No branches or pull requests

2 participants