aekanshgupta96
Posts: 1
Joined: Mon Sep 04, 2017 7:26 am

Establishing connection with PLC.

Mon Sep 04, 2017 7:31 am

HI, I am working on a project where i have to collect data about temperature and humidity from plc which will be accessed by raspberry pi and then the pi will upload it on to the cloud. I mean how do i establish a connection between plc and pi and even if i somehow manage to do so what should i write in the program for the pi to access the data.I have no clue.

fladda
Posts: 21
Joined: Fri Jan 04, 2013 1:46 pm

Re: Establishing connection with PLC.

Mon Sep 04, 2017 10:44 am

Recommend using Python as the programming language, Modbus RTU (serial) and RS-485.

bask185
Posts: 120
Joined: Thu Mar 09, 2017 11:39 am
Location: Netherlands

Re: Establishing connection with PLC.

Mon Sep 04, 2017 2:02 pm

Use Rs232, you can buy a USB-rs232 cable, with it you can hook up your pi directly on the PLC (assuming PLC has a RS232 port). I don't know much about python other than that it is not the fastest software

I had a Pi working as a MMI with Qt software. It worked extremely well and it was fast.

You can also wright a program in C using any text editor. This is propably the most efficient way.

Return to “General discussion”