Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018 
<== Date ==> <== Thread ==>

Subject: Re: genesys power supply IOC
From: James F Ross <james.falconer.ross@gmail.com>
To: Jiro Fujita <jiro.fujita@gmail.com>
Cc: EPICS Tech Talk <Tech-talk@aps.anl.gov>
Date: Mon, 22 Apr 2013 12:12:55 -0400
Ok, I can confirm that the IOC starts without errors when the power supply is on and connected. 

Thank you all for the help!  I'll be testing the IOC to see if I can control the crate properly with it, but so far so good.
James



On Mon, Apr 22, 2013 at 12:05 PM, James F Ross <james.falconer.ross@gmail.com> wrote:
The database file genesysPSAll.db had both 07G-ECD-BL08 and 17G-ECD-BL14 in it.  I changed both occurrences to GEN8-180-88Z.  The startup command file looks correct.




On Mon, Apr 22, 2013 at 11:57 AM, Jiro Fujita <jiro.fujita@gmail.com> wrote:
James, 

The sample IOC that I got from Stephanie has the following in the st.cmd: 

#!../../bin/linux-x86/genesys

cd ../..

dbLoadDatabase("dbd/genesys.dbd")
genesys_registerRecordDeviceDriver(pdbbase)

## Location of stream protocol files
epicsEnvSet "STREAM_PROTOCOL_PATH", "iocBoot/soft-iocps/"

dbLoadRecords("db/genesysPSAll.db")

#drvAsynIPPortConfigure("07G-ECD-BL08", "aaa.bbb.ccc.ddd:8003",0,0,0)
#drvAsynIPPortConfigure("17G-ECD-BL14", "aaa.bbb.ccc.eee:8003",0,0,0)

drvAsynIPPortConfigure("GEN8-180-88Z", "xxx.xxx.xxx.xxx:8003",0,0,0)

Obviously, line 13 and 14 are commented out.  I did that, as STAR HFT's PS was called as such.  In this copy, I blocked out the IP (as the rest of the world does not need to know that).  
As you can see, "07G-ECD-BL08" is one of the sample one that I disabled (but it was originally there from SLAC version).  So, check your startup command (and other things for that matter).  



On Apr 22, 2013, at 5:38 PM, James F Ross <james.falconer.ross@gmail.com> wrote:

Yes, 07G-ECD-BL08 shows up in a lot of the database files.  I'll set about changing those and see if that helps.
Thanks all
James



On Mon, Apr 22, 2013 at 11:35 AM, Jiro Fujita <jiro.fujita@gmail.com> wrote:
James, 

Port 8003 is correct on this one.  This is mostly based upon genesys IOC that I got from Stephanie Allison at SLAC.  

The problem is most likely that your start up command is calling device called "GEN8-180-88Z" (which is what the Genesys that STAR HFT has), where as somehow, it is expecting "07G-ECD-BL08" (which I don't know where it come from).  You may want to double-check the db and dbd files.  I seem to remember something of that. 

I will check a bit more in detail on what I have on the test machine at Creighton...

On Apr 22, 2013, at 5:20 PM, James F Ross <james.falconer.ross@gmail.com> wrote:

I believe it uses TCP (it communicates via an ethernet connection).  Below is my start up script.  I got this IOC after it had been compiled on another machine, so it is quite possible I missed changing something.

#!../../bin/linux-x86/genesys

cd ../..

dbLoadDatabase("dbd/genesys.dbd")
genesys_registerRecordDeviceDriver(pdbbase)

## Location of stream protocol files
epicsEnvSet "STREAM_PROTOCOL_PATH", "iocBoot/soft-iocps/"

dbLoadRecords("db/genesysPSAll.db")

drvAsynIPPortConfigure("GEN8-180-88Z", "130.199.60.184:8003",0,0,0)


iocInit()

# Start sequences
seq(&psControl,"ps=GEN8-180-88Z")

I know the IP is right for the drvAsynIPPortConfigure, but I don't know if 8003 is correct.

Thank you
James



On Mon, Apr 22, 2013 at 11:05 AM, Mark Rivers <rivers@cars.uchicago.edu> wrote:
Can you explain the interface to the power supply?  It is serial, TCP, etc.

How have you configured the asyn port?

Can you send your startup script?

Mark

________________________________
From: tech-talk-bounces@aps.anl.gov [tech-talk-bounces@aps.anl.gov] on behalf of James F Ross [james.falconer.ross@gmail.com]
Sent: Monday, April 22, 2013 9:45 AM
To: EPICS Tech Talk
Subject: genesys power supply IOC

Hello all,
I'm trying to set up an IOC for a genesys power supply.  It compiles, but when I try to run st.cmd I get the following errors (showing up in red after iocInit):

2013/04/22 09:37:58.974089 _main_ Businterface '07G-ECD-BL08' not found for '07G-ECD-BL08:Curr'
2013/04/22 09:37:58.974603 _main_ 07G-ECD-BL08:Curr: Can't attach to bus 07G-ECD-BL08 -1
2013/04/22 09:37:58.974715 _main_ 07G-ECD-BL08:Curr: Record initialization failed
Segmentation fault

I'm using asyn version 4.21, StreamDevice version 2.6, epics 3.14.12.1, and sequencer 2.0.12.

From what I've been able to find, this seems to be a problem between StreamDevice and asyn.  I originally had aysn 4.13 before getting 4.21 and trying that.  Neither solved the issue though.  Anyone have any experience with this kind of issue?
Thanks!
James







References:
genesys power supply IOC James F Ross
RE: genesys power supply IOC Mark Rivers
Re: genesys power supply IOC James F Ross
Re: genesys power supply IOC Jiro Fujita
Re: genesys power supply IOC James F Ross
Re: genesys power supply IOC Jiro Fujita
Re: genesys power supply IOC James F Ross

Navigate by Date:
Prev: Re: genesys power supply IOC James F Ross
Next: Re: Andrew Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018 
Navigate by Thread:
Prev: Re: genesys power supply IOC James F Ross
Next: RE: genesys power supply IOC Allison, Stephanie
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·