Go Down

Topic: Connect an Arduino to a Siemens PLC S7-1200 (Read 3831 times) previous topic - next topic

koen199

Hi,

I saw this very interesting video on youtube where an arduino interfaces with an Siemens S7-1200.
http://www.youtube.com/watch?v=JaaxCldJ8Jc

Does anybody have an idea how he makes the interface between the arduino and the PLC ?

Thanks,
Koen

dekemp

#1
Apr 22, 2013, 08:06 pm Last Edit: Apr 28, 2013, 03:12 pm by dekemp Reason: 1
It looks like is using serial or modbus rtu?

Im currently trying to get a arduino ethernet to be a modbus tcp slave for the plc. So i can connect all sorts of sensor to it, and do some datalogging on the plc.

https://www.youtube.com/watch?v=Qf1bTw4Marc

ellepiu

I don't know exactly whether the Siemens S7-1200 supports modbus communication protocol but in case it is, you can use serial RX/TX Arduino lines, some MAX485 chips together with the Arduino modbus RTU library. It works fine.

A good pointer for Arduino rs485 communication might be the following:

http://t.co/r26H2axo

eventually, if it supports modbus tcp:

http://www.biemmeitalia.net/blog/arduino-android-communication-modbus-tcp/

I hope it helps

elle
http://www.biemmeitalia.net/blog/en

Forse questo può interessare.
https://www.youtube.com/watch?v=hyUeKUgvF2U

Si può comunicare con S7 1200 e tutti i plc siemens mediante profilnet.

Ciao

moorsb

Yes, the 1200 can do modbus RS232, RS485 or Modbus TCP      I wish there was a nano wiznet shield.
I have the nano as a modbus TCP  device with a DTH11  for temp and humidity.
I have been thinking this would be a great device to save wiring if you have a few signals and the plant has ethernet could save a lot of wiring cost.  The main issue is how do you mount and wire it? 

moorsb

Here is a link for the S7 code
http://www.modbus.pl/

suby


I don't know exactly whether the Siemens S7-1200 supports modbus communication protocol but in case it is, you can use serial RX/TX Arduino lines, some MAX485 chips together with the Arduino modbus RTU library. It works fine.

A good pointer for Arduino rs485 communication might be the following:

http://t.co/r26H2axo

eventually, if it supports modbus tcp:

http://www.biemmeitalia.net/blog/arduino-android-communication-modbus-tcp/

I hope it helps

elle

Here you can look my code for Modbus RTU either Master or Slave.
Regards,

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy