1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 <2016> 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 <2016> 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: question of data conversion |
From: | Ralph Lange <[email protected]> |
To: | Remi Faure <[email protected]> |
Cc: | EPICS Tech-Talk <[email protected]> |
Date: | Mon, 27 Jun 2016 11:32:11 +0200 |
Hi Remi,Have a look at the "Convert and Write Parameters" section of the ao record documentation at
https://wiki-ext.aps.anl.gov/epics/index.php/RRM_3-14_Analog_Output#Convert_and_Write_ParametersLOPR/HOPR are giving hints about the expected value range to applications, they do not affect conversion.
You should use EGUL/EGUF or ESLO/EOFF. Cheers, ~Ralph On 27/06/2016 10:40, Remi Faure wrote:
Hi,I have a simple question. All the examples I found about EPICS data convertion starts from raw value (DAQ) to engineering unit value.I don't arrive to make the opposite in a simple way. I want to write a numerical data from CSS boy to an output value of a plc.For instance I tried a longout or ao record , wich is passing directly the 0/4095 value correctly. When I try to pass a 0/100% value and try convert it in 0/4095 with LOPR, HOPR fields it fails.In attachement a simple drawing of what I want to make here. Thank you in advance for help. Remi FAURE LPSC Grenoble