Connect an Arduino to a Siemens PLC S7-1200

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

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

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

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

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?

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

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

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

Dear Mr./Mrs. Suby,

It's been a long time but where can i find that modbus rtu code you mentioned? cuase i don't see any attachment or code there... (I'm new here so don't know if the attachments are in another menu).

Thanks in advance and best regards

mezgoo16: It's been a long time

Not only that, but if you click Suby's avatar and look at his or her posts, you'll see their last post in the forum was October 2014....

i don't see any attachment or code there

Looks like Suby forgot to copy the code (or a link) into the post, and didn't attach it either.