pymodbus-dev / pymodbus

A full modbus protocol written in python
Other
2.23k stars 911 forks source link

Modbus SQL Datastore #331

Closed deverakondabalakrishna closed 5 years ago

deverakondabalakrishna commented 5 years ago

Versions

Pymodbus Specific

Description

What were you trying, what has happened, what went wrong, and what did you expect?

Code and Logs

 # code and logs here.
deverakondabalakrishna commented 5 years ago

Hi All, I am able to execute pymodbus examples able to do master and slave communication successfully. In my project, I need to map Modbus slave to a MySQL database and read this data from Modbus master. I am new to Modbus and python programming. Please suggest me any python based Modbus examples

dhoomakethu commented 5 years ago

Refer https://github.com/riptideio/pymodbus/blob/master/examples/common/dbstore_update_server.py. Let us know if you need any further help.

Makimax35 commented 2 years ago

Hi, I need to read ModbusTCP IP addresses and registers listed into a MySQL table and read those datas registers into corresponding Modbus devices and log values into another MySQL table. I am new to Modbus and python programming.

  1. Get devices modbus informations from mysql
  2. Read modbus corredponding input registeres
  3. Print results and see possible errors
  4. Every 15 minutes Insert last values into mysql