Scanner For Modbus RTU and TCP/IP
Project description
Modbus Scanner
For RTU mode, you need to specify the serial port and baud rate.
modbus_scanner -r 0 -f 3 -i 1 -e 10 -c rtu -h COM9 -b 9600 -s 1 -d 8 -p N -t 10
OR
For TCP mode, you need to specify a host and port.
modbus_scanner -r 0 -f 3 -i 1 -e 10 -c tcp -h 192.168.1.10 -l 502
- --register or -r : Register number to start scanning from. Default is 0.
- --fc or -f : Function code to use. Default is 3.
- --start or -i : Starting address to scan from. Default is 1.
- --end or -e : Ending address to scan to. Default is 254.
- --conn_type or -c : Connection type to use. Default is rtu.
- --device or -h : Device to connect to. (Required).
Note: For RTU mode, this is the serial port. For TCP mode, this is the IP address.
- --port or -l : Port to connect to. Default is 502.
- --baud or -b : Baud rate to use. Default is 9600.
- --stop or -s : Stop bits to use. Default is 1.
- --data or -d : Data bits to use. Default is 8.
- --parity or -p : Parity to use. Default is N.
- --timeout or -t : Timeout to use. Default is 60.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
modbus-scanner-1.0.2.tar.gz
(4.6 kB
view hashes)
Built Distribution
Close
Hashes for modbus_scanner-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6bc702fffe33d820fa61c7e5842fbd68207629c2cc584e478563b0d5b781f61 |
|
MD5 | 818f2b4c7e7ac747afb72b4e0dae08d4 |
|
BLAKE2b-256 | cb5723de295c65eddaf3e9b46ad948fc4677c5bd134161693bcd510b2fa8f8e9 |