ECNJAPR
Topic Author
Posts: 5
Joined: 06 Feb 2019, 15:02

Modbus TCP Examples

06 Feb 2019, 15:57

I am searching for information to write/read the Modbus TCP Slave/Master data from Python. I don't know what should be written in code to access de configuration from PiCtory. Are there any examples using Modbus TCP to communicate with any other device using Python. Using RevPi Connect.
 
Industrialsys
Posts: 2
Joined: 10 Feb 2019, 18:25

Re: Modbus TCP Examples

11 Feb 2019, 21:10

Hi
I'm creating a node red aplication with Rev Pi Connect. On this aplication all data is collected via Modbus TCP functions. For that purpose I execute several commands. What is your idea?
Do you pretend to know what command you should run to retreive values from proccess image to inside your application?
 
User avatar
dirk
KUNBUS
Posts: 191
Joined: 15 Dec 2016, 13:19

Re: Modbus TCP Examples

12 Feb 2019, 17:51

Hi, this is a good question because we have tutorials about the usage of the Modbus TCP / RTU / Master / Slave virtual Modules in PiCtory. But with Node-Red we currently have no experience. What about that Node-RED Modbus TCP Node https://flows.nodered.org/node/node-red ... -modbustcp ? And here is a Modbus Node https://flows.nodered.org/node/node-red-contrib-modbus and here is a Modbus Python library https://pypi.org/project/pymodbus3/
 
ECNJAPR
Topic Author
Posts: 5
Joined: 06 Feb 2019, 15:02

Re: Modbus TCP Examples

14 Feb 2019, 17:33

I am using the Pi Connect to communicate from one Ethernet Port (ETH0) to the other (ETH1). I was using the pyModbusTCP Library but I got stuck at setting communication with each ethernet port in the same program.

Who is online

Users browsing this forum: No registered users and 2 guests