Experimental Physics and
| |||||||||||||||
|
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
| ||||||||||||||
ANJ, 10 Aug 2010 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing · |