EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: RE: refreshing CAMACs
From: "Eric Bjorklund, NPSM" <[email protected]>
Date: Fri, 23 Apr 1999 13:53:49 -0600
>
>I've got a CAMAC crate inside the source for our linac which stands at 750KeV potential. 
>Arcing wreaks havoc with the crate controller periodically. To remedy this, I've found it 
>sufficient to reinitiallize the crate controller every ten seconds, whether it needs it or 
>not. Now that I've upgraded everything from 3.12.1 to 3.13.0b11, I thought I'd ask if there 
>was a better method. 
>
>I used to use a subroutine record which would execute the old:
>  int Q=0;
>  int CTRLR=0;
>  int DATA=0x100;
>  int crateNum = 1;
>
>  crateNum = (int)(pRec->a);
>
>  ccinit(0);
>  
>  cdreg(&CTRLR, 0, crateNum, 30, 0);
>  cfsa(17, CTRLR, &DATA, &Q);
>
>Should I replace those commands with the new flavors:
>  ccinit(0)
>  camacCrateInit (0,10)
>
>Or is there a better way?
>
>Thanks in advance.
>
>-- Garrett Rinehart
>   Intense Pulsed Neutron Source
>   Argonne National Laboratory
>
>

I'd say whatever works for you.  The advantages of using camacCrateInit(0,1)
are:

  1. Less code in your subroutine record.
  2. It will still work if you decide to use something other than a serial
     highway (not sure why you'd want to do that when the crate is in your
     source, however).
  3. After initializing the crate, it will automatically invoke any
     initialization routines you (or your device support modules) declare.
     This could be particularly important if you are useing a LAM-Grader.

The main disadvantage is that you will get a "Successfully initialized crate"
message logged every 10 seconds.

BTW, It's probably not neccessary to do the ccinit(0) unless the arc-downs
are also somehow hosing your serial driver (2992).

Eric Bj.

==============================================================================
Eric Bjorklund				Voice: 505-667-6031
Los Alamos National Laboratory		Email: [email protected]
LANSCE-6 MS H820
PO Box 1663
Los Alamos, NM 87545
==============================================================================
"Try not to sweat the petty things.
 And for sure don't pet the sweaty things."


Navigate by Date:
Prev: refreshing CAMACs Garrett D. Rinehart
Next: group valuator Rolf Keitel
Index: 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: refreshing CAMACs Garrett D. Rinehart
Next: group valuator Rolf Keitel
Index: 1994  1995  1996  1997  1998  <19992000  2001  2002  2003  2004  2005  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 ·