EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: AW: Connection to Siemens S7 PLC
From: Rekow Jens <[email protected]>
To: [email protected] <[email protected]>
Date: Wed, 22 Feb 2012 16:51:19 +0100
Hi All,

What a coincidence as we are just having some problems interfacing from EPICS/Linux to S7-300 PLCs with the "s7plc" driver but this is not due to Dirk's driver which works like a charm.

We wanted to be very clever and did not use the communication module recommended for s7plc by SLS (CP343-1) because the CPU we are using (CPU315-2 PN/DP) already supports open TCP/IP communication itself. However there are differences between using the comms module vs. using the CPU: 

Using the CP343-1 one only needs to use the SEND and RECV functions in Step7 and the module seems to care about handling the connection.

Using the CPU one needs TCON, TSEND, TDISCON and TRDV. The TCON function which initiates the connection (bind the socket for epics to connect) seems to hang sometimes which leads to EPICS (or other clients) being "refused" and therefore unable to connect.

It seems to be a problem with the TCON function from Siemens and we are in contact with Siemens regarding this but we might just end up using the CP343-1 module.

HTH,
Jens



> -----Ursprüngliche Nachricht-----
> Von: [email protected] [mailto:tech-talk-
> [email protected]] Im Auftrag von Paul Sichta
> Gesendet: Mittwoch, 22. Februar 2012 15:40
> An: [email protected]
> Betreff: Re: Connection to Siemens S7 PLC
> 
> As Franck said, ITER has standardized on the  S7 (300) series and the
> Step 7 Professional Edition software (Windows).  We are using the ITER
> configuration here with an S7-3xx and an EPICS Linux-based IOC.  We
> also recently got an S7-1200 which we are  trying to get working with
> the ITER software .... not there yet.  We will announce any success on
> this.
> 
> -ps
> 
> 
> On Wed, Feb 22, 2012 at 07:07, Pavel Masloff <[email protected]>
> wrote:
> > Hello all,
> >
> > Concerning Dirk's s7plc driver (SLS) which is written for linux only,
> has
> > anyone tried to rewrite it for windows?
> > I am not that expert in drivers development, but I would be grateful
> if
> > anyone could help me.
> > >From what I can see, there are some header files (and corresponding
> > libraries/functions) which are linux specific. For example,
> > <unistd.h>,<sys/socket.h>, <netinet/in.h>. Perhaps, <winsock2.h>
> might do
> > the trick?
> >
> > Maybe someone has already tried to port s7plc to Windows platform?
> >
> >
> > On Wed, Feb 22, 2012 at 1:10 PM, Mueller, Joachim
> <[email protected]>
> > wrote:
> >>
> >> Hi,
> >>
> >> just a few thoughts about the S7. It is not possible to open a Step7
> >> Project for the S7-300
> >> or S7-400 with Step7 MicroWin. These system do not have anything in
> common
> >> than the
> >> name and the vendor. S7-200 has a different architecture than the
> 300/400
> >> system. And
> >> therefore a completely different programming environment.
> >>
> >> I have not tried yet, but I think the S7plc driver should also work
> with a
> >> S7-1200 System
> >> because it is also TCP/IP.
> >>
> >> With the CP 243-1 on a S7-200 it should also work, but you cannot
> use the
> >> example project
> >> delivered with the S7plc software.
> >>
> >> Greetings, Joachim
> >>
> >> --
> >>
> >> --------------------------------------------------------------------
> ------------------------------------------
> >> Joachim Mueller, Dipl.-Ing.(FH)
> Deutsches
> >> Elektronen-Synchrotron (MKK4)
> >> phone:  +49-40-8998-2562
> >>                                                        Notkestr. 85
> >> fax:    +49-40-8994-4305
> >>                                                      22607 Hamburg
> >> e-mail: [email protected]
> >>                                                      Germany
> >>
> >> --------------------------------------------------------------------
> ------------------------------------------
> >>
> >>
> >> >-----Original Message-----
> >> >From: [email protected] [mailto:tech-talk-
> >> >[email protected]] On Behalf Of Konrad Gajewski
> >> >Sent: Tuesday, February 21, 2012 1:14 PM
> >> >To: [email protected]
> >> >Subject: Connection to Siemens S7 PLC
> >> >
> >> >Hello everybody,
> >> >
> >> >I'm new to EPICS and I am planning  to control Siemens Simatic S7-
> 200
> >> >PLC. I have looked in EPIC documentation and found at least two
> ways to
> >> >connect the PLC:
> >> >
> >> >1. via MODBUS (Asyn) driver over the serial connection (using
> Siemens
> >> >MODBUS RTU library)
> >> >2. using S7plc driver via TCP/IP and a CP 243-1 Ethernet module.
> >> >
> >> >The programming of the PLC is done using Step-7 Micro/WIN V4.0.
> >> >Unfortunately I can't open the example STEP 7 PLC project  (for
> S7plc
> >> >driver) in Step-7 Micro/WIN.
> >> >
> >> >Do you have any experience with such a configuration or maybe with
> >> >S7-1200? Are there any better options?
> >> >
> >> >Thanks,
> >> >   Konrad
> >> >
> >> >--
> >> >Konrad Gajewski
> >> >Senior Research Engineer
> >> >Uppsala University                    Tel:    +46-18-4713888
> >> >The Svedberg Laboratory
> mailto:[email protected]
> >> >Box 533, S-751 21 Uppsala, Sweden
> >> >http://www.tsl.uu.se/
> >>
> >>
> >
> >
> >
> > --
> > Best regards,
> >
> >
> > Pavel Maslov, MS
> > Controls Engineer at Pulsed power Lab
> > Efremov Institute for Electro-Physical Apparatus
> > St. Petersburg, Russia
> >
> > Mobile: +7 (951) 672 22 19
> > Phone: +7 (812) 461 01 01




References:
Connection to Siemens S7 PLC Konrad Gajewski
Re: Connection to Siemens S7 PLC Paul Sichta

Navigate by Date:
Prev: Re: CSS X-Y Graph John Dobbins
Next: RE: Connection to Siemens S7 PLC Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Connection to Siemens S7 PLC Paul Sichta
Next: RE: Connection to Siemens S7 PLC Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·