EPICS Controls 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  <20102011  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  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Stream Device With Parameters
From: Gorka Ronda <[email protected]>
To: Dirk Zimoch <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Thu, 16 Sep 2010 18:37:23 +0200
Thanks Dirk,

As you requested, I append to this mail part of the device documentation to know what C4 and C5 (Command 4 and 5) do.

Don't hesitate to ask for more information if you need it.

Gorka

 ________________________________________
De: Dirk Zimoch [[email protected]]
Enviado el: jueves, 16 de septiembre de 2010 15:31
Para: Gorka Ronda
CC: [email protected]
Asunto: Re: Stream Device With Parameters

Typos in my previous mail:

Hi Gorka,

I probably did not understand completely what you wanted. You want to be
able to use *different* lo and hi values each time the record processed?

If that is the case you have to store the values in some record. For
example in an "ao" record. (There you can even scale it from "user
units" in VAL to integers in RVAL. See "ao" documentation.)

So let's now assume the two values are in stored in $(P):$(R):C4:LO.RVAL
and $(P):$(R):C4:HI.RVAL. Then you can use redirection to access these
values. You have to give the record names (or the common prefix) to the
protocol as a parameter like this:

field(INP,  "@devwbc6600.proto c4($(P):$(R):C4) $(PORT) $(A)")

and use the name in $1 for two redirections to fetch LO and HI:

out 0xc0 0x04 0xfb "%(\$1:LO.RVAL)r%(\$1:HI.RVAL)r" 0x00 0x00 0x00 0x00
"%<xor>";

The %r converter just outputs the least significant byte of the
mentioned record field.

It would really help to know what the "C4" command actually does. Can
you give me a link to the device documentation?

Dirk

Attachment: Command4&5.doc
Description: Command4&5.doc


Replies:
RE: Stream Device With Parameters Gorka Ronda
References:
[no subject] Gorka Ronda
Re: Stream Device With Parameters Dirk Zimoch
RE: Stream Device With Parameters Gorka Ronda
Re: Stream Device With Parameters Dirk Zimoch
Re: Stream Device With Parameters Dirk Zimoch

Navigate by Date:
Prev: Re: Testing the new DBE property in EPICS R3-14-11 Ben Franksen
Next: Re: Testing the new DBE property in EPICS R3-14-11 Ben Franksen
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Stream Device With Parameters Dirk Zimoch
Next: RE: Stream Device With Parameters Gorka Ronda
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  <20102011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 16 Sep 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·