EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  <20002001  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  1999  <20002001  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: forcing binary output value at initialization
From: [email protected]
To: [email protected]
Date: Fri, 21 Apr 2000 15:38:12 -0600 (MDT)
Hi -

	I am trying to force a binary output record to come up in a
specific state at IOC initialization.  The device is an XVME-240, and I
want the outputs to come up "high" at startup.  Here is what I tried:

record (bo,"mybo"){
   field(PINI,"1")
   field(VAL,"1")
   field(SCAN,"Passive")
   field(DTYP,"XY240_BO")
   field(OUT,"#C0 S24")
   field(ZNAM,"0")
   field(ONAM,"1")
}

I set PINI to "1" to force processing at iocInit time, and I set the VAL
field to "1" to get the output to start out "high".  But this doesn't
work -- the output comes up "low" at startup.

I also tried to use the DOL field:

record (bo,"mybo"){
  field(PINI, "1")
  field(DOL, "1")
  field(SCAN, "Passive")
  field(DTYP, "XY240_BO")
  field(OUT, "#C0 S24")
  field(ZNAM, "0")
  field(ONAM, "1")
}

But that didn't work either.

I also tried this last setup without setting PINI at all.  No cigar.

I am using EPICS Version R3.13.0.beta.11.

Quoting from the EPICS Record Reference Manual, Ch. 8 Binary Output,
Section 8 Record Support Routines:

"If DOL is a constant, then VAL is initialized to 1 if its value is
nonzero or initialized to 0 if DOL is zero, and UDF is set to FALSE."

I also read quite a bit of the tech-talk archive, especially two recent
threads about "VxWorks global variable device support" and "support for
output records" which discussed in some detail concerning what happens
to output records at startup.  But somehow I am still missing something.

So what am I doing wrong?
					thanks,
						Steve Pate


()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()()
Stephen Pate		Department of Physics		office:   505-646-2135
			Box 30001, Dept. 3D		dept:     505-646-3831
			New Mexico State University	fax:      505-646-1934
[email protected]		Las Cruces NM 88003		home:     505-382-6880






Replies:
Re: forcing binary output value at initialization Andrew Johnson
Re: forcing binary output value at initialization pate

Navigate by Date:
Prev: serial device support john sinclair
Next: Re: forcing binary output value at initialization Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  <20002001  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: serial device support john sinclair
Next: Re: forcing binary output value at initialization Andrew Johnson
Index: 1994  1995  1996  1997  1998  1999  <20002001  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 ·