Experimental Physics and Industrial Control System
|
We recently hooked up some Wago modules here to monitor some
thermocouples through ethernet connections. Since we were dealing with
several isolated monitoring locations, one of the things I wanted in the
driver was the ability to make sure the ethernet connection was intact
through the EPICS channel status. We're using the DESY modification of
the TRIUMF modtcp driver
(http://www-kryo.desy.de/documents/EPICS/DESY/Records/wagoModbusSup.html),
and the driver did not show any change of status with a break in the
TCP/IP connection, but some of the code appeared to show that the basic
mechanism was already there. Fiddling around with the code a bit, I
came up with this mod:
In modtcpRead(), change the line:
if (pPlc->pSock->tcpsFd == INVALID_SOCKET) return -1;
to:
if (pPlc->pSock->connecting || pPlc->pSock->tcpsFd ==
INVALID_SOCKET) return -1;
Similarly change modtcpWrite(). The timeouts are long, but the record
status does eventually go INVALID when the connection is lost, and then
recovers when it is reestablished.
--
Eric Williams
ALS Controls
Lawrence Berkeley Lab
- Navigate by Date:
- Prev:
Re: mvme5500 (was National Instruments VME-MXI-1 modules vs. modern VME CPU modules) Andrew Johnson
- Next:
Re: mvme5500 (was National Instruments VME-MXI-1 modules vs. modernVME CPU modules) Kate Feng
- 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:
Re: et_wish mon problem Lei Ge
- Next:
modbus+ Terry Carlino
- 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
|
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|