Experimental Physics and Industrial Control System
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
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
- 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
<2004>
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025