Device support must have a "convert" routine that does a calculation like the following to compute .ESLO and .EOFF
precord->eslo = (eguf - egul)/(deviceHigh - deviceLow);
precord->eoff = (deviceHigh*egul - deviceLow*eguf)/
(deviceHigh - deviceLow);
Mark
________________________________
From: David Dudley [mailto:[email protected]]
Sent: Mon 11/13/2006 8:07 PM
To: [email protected]
Subject: Scaling Database entries
OK guys,
My modbus driver is starting to work, and now I'm linking up with some of the PLC's in the plant. Now, I've started working on building the database for the first site.
Here's my question:
I've got some AI signals that come from one of the PLCs. Raw values on some are scaled 0-32000, while others are scaled 800-32000, and others have raw values from -32768-32767. I see the definitions for the EGUL and EGUF values, but how do I set the RAW input ranges? Also, I've got some flow meter values that have to be scaled from linear to square root values..
David Dudley
City of Corpus Christi
- References:
- Scaling Database entries David Dudley
- Navigate by Date:
- Prev:
Scaling Database entries David Dudley
- Next:
RE: devSNMP: Thread error? Kagarmanov, Albert
- 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
- Navigate by Thread:
- Prev:
Scaling Database entries David Dudley
- Next:
RE: Scaling Database entries David Dudley
- 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
|