EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  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  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: asyn
From: "Mark Rivers" <[email protected]>
To: "Szalata, Zenon M." <[email protected]>, "EPICS tech-talk" <[email protected]>
Date: Tue, 16 Oct 2007 12:52:08 -0500
I am not familiar with the VXI-11 controller you are using.  But I do
know that many Modbus TCP controllers will close the connection after a
few seconds of inactivity.  Perhaps your VXI-11 controller is doing the
same thing.  Can you try putting an EPICS record that is periodically
scanned and reads some value from the controller to see if this keeps
the socket connection alive?

Mark
 

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of Szalata, Zenon M.
> Sent: Tuesday, October 16, 2007 12:47 PM
> To: EPICS tech-talk
> Subject: asyn
> 
> My soft IOC program generates errors, see below.  I control 
> the IOC from an edm panel, where one of the controlls tells 
> the IOC to write a sring of bytes to the gpib KS3988 crate 
> controller and then read the response.  When I press the 
> button soon after the IOC is started it seems to be working 
> fine.  However if I wait a  few minutes after the IOC is 
> started and then press the button the program generates 
> errors.  Sometimes it crashes with seg fault, like it did 
> this time, and sometimes it recoveres after two subsequent 
> button clicks.  Looks like the connection to the device times 
> out.  Any ideas how to fix it?
> Here is the output:
> 
> -------------------------------------
> zms@esaux1 $ ../../bin/linux-x86/ksTest st.cmd
> #!../../bin/linux-x86/ksTest
> < envPaths
> epicsEnvSet(ARCH,"linux-x86")
> epicsEnvSet(IOC,"iocksTest")
> epicsEnvSet(TOP,"/afs/slac.stanford.edu/g/esa/ilc/epics/iocTop
> /ksTest")
> epicsEnvSet(ASYN,"/afs/slac/g/esa/ilc/epics/modules/asyn/4-8")
> epicsEnvSet(GENSUB,"/afs/slac/g/esa/ilc/epics/modules/genSub/1-6")
> epicsEnvSet(KS3988,"/afs/slac/g/esa/ilc/epics/modules/ks3988")
> epicsEnvSet(EPICS_BASE,"/afs/slac/g/esa/ilc/epics/base/R3-14-9-ilc1")
> cd /afs/slac.stanford.edu/g/esa/ilc/epics/iocTop/ksTest
> ## Register all support components
> dbLoadDatabase("dbd/ksTest.dbd")
> ksTest_registerRecordDeviceDriver(pdbbase)
> vxi11Configure( "L0","134.79.64.25",0,0.0,"gpib0",0,0)
> ## Load record instances
> dbLoadRecords( "db/dbExample1.db","P=KS:")
> dbLoadRecords( "db/devKS3988.db","P=KS:,Q=AIO,W=AWRT,L=0,A=12")
> dbLoadRecords( 
> "db/asynIO.db","P=KS:,R=AIO,PORT=L0,ADDR=12,IMAX=100,OMAX=100")
> dbLoadRecords( 
> "db/asynWrt.db","P=KS:,R=AWRT,PORT=L0,ADDR=12,IMAX=100,OMAX=100")
> cd 
> /afs/slac.stanford.edu/g/esa/ilc/epics/iocTop/ksTest/iocBoot/iocksTest
> iocInit()
> Starting iocInit
> ##############################################################
> ##############
> ## EPICS R3.14.9-lcls1 $R3-14-9$ $2007/02/05 16:31:45$
> ## EPICS Base built Oct  2 2007
> ##############################################################
> ##############
> iocInit: All initialization complete
> epics> ksReadReg: c=12, n=0, a=0, f=1, nw=1, d=0, l=0, sm=0, dm=0
> ksReadReg 3 bytes: 0x1e 0x0 0x1
> This is a message number 0
> 2007/10/16 10:34:42.245 L0 vxi11 clientIoCall errno 104 clnt_stat 4
> 2007/10/16 10:34:42.245 L0 vxiDestroyDevLink RPC error : RPC: 
> Unable to send; er
> rno = Broken pipe
> 
> 2007/10/16 10:34:42.246 L0 vxiDisconnectPort : RPC: Unable to 
> send; errno = Brok
> en pipe
> 
> 2007/10/16 10:34:44.247 L0 vxiDestroyDevLink RPC error : RPC: 
> Unable to send; er
> rno = Broken pipe
> 
> L0 port not connected
> 2007/10/16 10:34:44.247 L0 asynGpib:pollAddr srqEnable
> 2007/10/16 10:34:44.247 KS:AIO: Write error, nout=0, L0 RPC failed
> 
> 2007/10/16 10:34:44.247 L0 port not connected
> 2007/10/16 10:34:44.247 KS:AIO: Error L0 port is not connected
> 
> 2007/10/16 10:34:44.247 KS:AIO: error  nread -1210113632 L0 
> port is not connecte
> d
> 
> 2007/10/16 10:34:44.247 KS:AIO: Overflow nread -1210113632 L0 
> port is not connec
> ted
> 
> Segmentation fault (core dumped)
> --------------------------------------------------------
> Thanks,
> Zen
> 
> 


References:
asyn Szalata, Zenon M.

Navigate by Date:
Prev: asyn Szalata, Zenon M.
Next: Re: Installing EDM on OS X 10.4.10 Bertrand H.J. Biritz
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: asyn Szalata, Zenon M.
Next: Display array of number in edm Szalata, Zenon M.
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·