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: 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.
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

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

Navigate by Date:
Prev: AW: device support for IK342 Sintschuk, Michael via Tech-talk
Next: Device Support for Siemens PLC with profinet Florian Feldbauer 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 李刚 via Tech-talk
Next: Device Support for Siemens PLC with profinet Florian Feldbauer 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 ·