If this is an EPICS driver, then perhaps you should use the libCom OSI functions for sockets, and not have to worry about winsock2.h, etc.
If you look at
https://svn.aps.anl.gov/epics/asyn/trunk/asyn/drvAsynSerial/drvAsynIPPort.c
you'll see that it does not use any OS-specific code for handling sockets.
Mark
________________________________
From: [email protected] [[email protected]] on behalf of Pavel Masloff [[email protected]]
Sent: Wednesday, February 22, 2012 6:07 AM
To: Mueller, Joachim
Cc: [email protected]
Subject: Re: Connection to Siemens S7 PLC
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]<mailto:[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]<mailto:[email protected]> Germany
--------------------------------------------------------------------------------------------------------------
>-----Original Message-----
>From: [email protected]<mailto:[email protected]> [mailto:tech-talk-<mailto:tech-talk->
>[email protected]<mailto:[email protected]>] On Behalf Of Konrad Gajewski
>Sent: Tuesday, February 21, 2012 1:14 PM
>To: [email protected]<mailto:[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]<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 Mueller, Joachim
- Re: Connection to Siemens S7 PLC Pavel Masloff
- Navigate by Date:
- Prev:
AW: Connection to Siemens S7 PLC Rekow Jens
- Next:
RE: Best pratices for compiling dbd files for asyn base device support Mark Rivers
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
- Navigate by Thread:
- Prev:
AW: Connection to Siemens S7 PLC Rekow Jens
- Next:
Re: Connection to Siemens S7 PLC Rod Nussbaumer
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
<2012>
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|