Skip to content

ahanjaya/Modbus-RTU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MODBUS RTU [RS-485]

This is example code to run modbus RTU using python with minimalmodbus or pymodbus libraries

Installation

conda create -n modbus_env python=3.7 pip
pip install -r requirement.txt

Packages (requirement.txt)

pyserial
minimialmobdus
pymodbus
numpy

Run the code

  1. Using minimalmodbus library
python modbus_min.py
  1. Using pymodbus library
python modbus_py.py

References

  1. https://minimalmodbus.readthedocs.io/en/stable/usage.html
  2. https://minimalmodbus.readthedocs.io/en/stable/apiminimalmodbus.html
  3. https://stackoverflow.com/questions/60431210/modbus-rtu-master-python-script-with-minimalmodbus

About

Python RS-485 Modbus RTU

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages