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  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  <20202021  2022  2023  2024  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  <20202021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: ASLO doesn't work
From: 李刚 via Tech-talk <tech-talk at aps.anl.gov>
To: "vishnu patel" <patel.vishnu at hotmail.com>
Cc: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
Date: Fri, 18 Sep 2020 00:27:03 +0800 (GMT+08:00)

Hi Vishnu

If DB6.DBD36 is not float,you must set DLV and DHV in INP field,and discard "float" parameter.
record(ai, "AI0") {

    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 said

record(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 

-----原始邮件-----
发件人:"Vishnu Patel via Tech-talk" <tech-talk at aps.anl.gov>
发送时间:2020-09-17 17:10:28 (星期四)
收件人: "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>
抄送:
主题: ASLO doesn't work

Hi,

I have tried to divide the value of ai record using ASLO field. But It doesn't work.


record(ai, "AI0") {
    field(DTYP,"s7nodave")
    field(INP,"@lcpcPLC DB6.DBD36 float")
    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,"32767")
    field(EGUL,"-32768")
}


my input is 1003.124 and it gives same only even i change ASLO to 1.

The PLC the value is 1003.124 in mBar, i have to display as 1.0031 Bar.

I am missing something to set.


Thanks
Vishnu

Replies:
Re: ASLO doesn't work Vishnu Patel via Tech-talk
References:
ASLO doesn't work Vishnu Patel via Tech-talk

Navigate by Date:
Prev: RE: ASLO doesn't work Mercado, Ronaldo (DLSLtd, RAL, LSCI) via Tech-talk
Next: Re: device support for IK342 Johnson, Andrew N. via Tech-talk
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  <20202021  2022  2023  2024 
Navigate by Thread:
Prev: RE: ASLO doesn't work Mercado, Ronaldo (DLSLtd, RAL, LSCI) via Tech-talk
Next: Re: ASLO doesn't work Vishnu Patel via Tech-talk
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  <20202021  2022  2023  2024 
ANJ, 18 Sep 2020 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·