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: ASLO doesn't work |
From: | Vishnu Patel via Tech-talk <tech-talk at aps.anl.gov> |
To: | 李刚 <li75gang at ihep.ac.cn>, Ralph Lange <ralph.lange at gmx.de> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Fri, 18 Sep 2020 12:00:38 +0000 |
Dear All,
Thank you very much for your guidance and explanation.
I used calc record to convert mBar to Bar.
s7 EPICS device support is not supporting conversion in ai record for "float" datatype.
with other datatype int16, uint16...etc. the conversion works perfect.
Thank you all again.
Vishnu
From: 李刚 <li75gang at ihep.ac.cn>
Sent: 17 September 2020 21:57 To: vishnu patel <patel.vishnu at hotmail.com> Cc: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Re: ASLO doesn't work Hi Vishnu, If
DB6.DBD36 is not float,you must set DLV and DHV in INP field,and discard "float" parameter.
field(DTYP,"s7nodave")
field(INP,"@lcpcPLC(DLV=0,DHV=27648)
DB6.DBD36 ")
field(LINR,"LINEAR")
field(HOPR,"20")
field(LOPR,"0")
#field(ASLO,"0.001")
field(PREC,"4")
field(SCAN,"1 second")
field(EGU,"Bar")
field(EGUF,"20")
field(EGUL,"0")
}
If
DB6.DBD36 is float and you set explicit
in INP field ,it will ignore all
conversion just as Ben saidrecord(ai, "AI0") {
field(DTYP,"s7nodave")
field(INP,"@lcpcPLC DB6.DBD36 float ")
field(HOPR,"20")
field(LOPR,"0")
field(PREC,"4")
field(SCAN,"1 second")
field(EGU,"Bar")
field(EGUF,"20")
field(EGUL,"0")
}
Cheers Gang -----原始邮件----- |