EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: Anybody using modtcp and Wago?
From: Ivan So <[email protected]>
To: [email protected]
Date: Wed, 11 Feb 2004 17:40:34 -0500
We (NSLS Beamline Controls) are using modtcp and Wago under Linux and VxWorks.

The original code was from Triumf, Canada.

I need to change the offset with BO_OFFSET in drvModtcp.c:

#define WAGO

#if defined(WAGO)
unsigned short BO_OFFSET=0x200;
#else
unsigned short BO_OFFSET=0x0;
#endif

===============================================

int modtcpWrite(int index, int addr, unsigned short mask, unsigned short *pData)
{
PLC_ID pPlc;
SOCKET_ID pSock;
int i, error, ok;
unsigned short outval, *pOut;


       pPlc = Plcs[index];
       if (!pPlc->pSock2->tcpsFd) return -1;

pOut = pPlc->memStart + addr + BO_OFFSET - 1;

==================================================

/* set pFrom pointer to begin of EPICS local buffer or to VME slave memory (SDLC) */
if (pGr->readAddr < pPlc->memLength) pFrom = pPlc->memStart + pGr->readAddr + BO_OFFSET - 1;


===================================================

Just to give you some ideas.

I am going to clean this up after other higher priority jobs. May be then we could generate some useful diff's for you.

Good luck.

Ivan  So
NSLS, BNL


Navigate by Date:
Prev: GDCT to VDCT Converter Kenneth Evans, Jr.
Next: Re: Oracle archiver Noboru Yamamoto
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Anybody using modtcp and Wago? Eric Williams
Next: Base R3.14.5, and Open Licensing for Base Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  <20042005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·