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

Support Modbus sensors #1063

Open
dc42 opened this issue Nov 26, 2024 · 1 comment
Open

Support Modbus sensors #1063

dc42 opened this issue Nov 26, 2024 · 1 comment
Assignees
Labels
enhancement Additional functionality, performance or other feature request
Milestone

Comments

@dc42
Copy link
Collaborator

dc42 commented Nov 26, 2024

We should support temperature, humidity etc. sensors that communicate via Modbus. Examples:

We will need to specify at least the following:

  • Which serial channel to use for Modbus comms (typically the P parameter)
  • The slave address of the sensor (can't use A parameter, that's already used for the sensor name)
  • Which function code to use (normally 3 or 4)
  • Which register to read and how many registers to read. Can we assume it's always 1 register per output?
  • Which register provides the required value - maybe the first register for the primary sensor, then any additional registers read are for additional outputs?
  • What scaling factor and offset to use (need to provide these for each output, if supporting multiple outputs)
  • The minimum interval required between successive reads (some sensors need this, so we should support multiple outputs)
@dc42 dc42 self-assigned this Nov 26, 2024
@dc42 dc42 added this to the 3.6.0 milestone Nov 26, 2024
@dc42 dc42 added the enhancement Additional functionality, performance or other feature request label Nov 26, 2024
@dc42
Copy link
Collaborator Author

dc42 commented Nov 30, 2024

I already added the framework for supporting virtual ports in RRF (similar to the existing code in Duet3Expanson) so we can add virtual Modbus ports in future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Additional functionality, performance or other feature request
Projects
None yet
Development

No branches or pull requests

1 participant