This RUST project can read and write a R413D08 module from the command line. It should also work with the R421A08 relay card because it has the same Modbus commands.
The following hardware is required for this project:
- One or more R413D08 8 channel modules.
- One or more relay modules 1-8 channels.
- One USB-RS485 converter.
- Operating Voltage: DC 5 Volt (5V version) or DC 6-24 Volt (12V version)
- Operating Current: 10-15 Milli-Ampere
- Install Rust e.g. using these instructions.
- Ensure that you have a C compiler and linker.
- Clone
git clone https://github.com/acpiccolo/R413D08-Controller.git
- Run
cargo install --path .
to install the binary. Alternatively, check out the repository and runcargo build --release
. This will compile the binary totarget/release/ch8ctl
.
To see all available commands:
ch8ctl --help
For TCP Modbus connected temperature collectors:
ch8ctl tcp 192.168.0.222:502 read
Feature | Purpose | Default |
---|---|---|
tokio-rtu-sync |
Enable the implementation for the tokio modbus synchronous RTU client | ✅ |
tokio-rtu |
Enable the implementation for the tokio modbus asynchronous RTU client | ✅ |
tokio-tcp-sync |
Enable the implementation for the tokio modbus synchronous TCP client | - |
tokio-tcp |
Enable the implementation for the tokio modbus asynchronous TCP client | - |
bin-dependencies |
Enable all features required by the binary | ✅ |
Licensed under either of
- Apache License, Version 2.0, (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.