Go Down

Topic: Connect an Arduino to a Siemens PLC S7-1200 (Read 3 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

baltimora

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


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