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
|