Pages: [1]   Go Down
Author Topic: Connect an Arduino to a Siemens PLC S7-1200  (Read 2663 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi,

I saw this very interesting video on youtube where an arduino interfaces with an Siemens S7-1200.


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

Thanks,
Koen
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 1
PLC programmer
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
« Last Edit: April 28, 2013, 08:12:26 am by dekemp » Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 30
I am passionate about electronics, industrial and home automation. Love DIY stuff
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 8
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 22
Worked in Industrial Automation and PLC for 25 years
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?   
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 22
Worked in Industrial Automation and PLC for 25 years
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

CATALUNYA
Offline Offline
Full Member
***
Karma: 2
Posts: 122
I started my electronics career with MICROCHIP PIC16 microcontrollers and assembler. After 10 years without touching electronics, I restarted it as a hobby (and sometimes work) with ATMEL and Arduinos.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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,
Logged

Pages: [1]   Go Up
Jump to: