Dear, all
I am in need of developing an alarm variable using the sCalcout record.
I plan to input two variables that are defined as follows.
1.
grecord(stringout,"beam_state")
2.
record(bi, "$(DEVICE):State")
{
field(DESC, "Power Supply On/Off Status")
field(DTYP, "stream")
field(INP, "@genesys.proto PSU-getonoff $(IP)")
field(ZNAM, "OFF")
field(ONAM, "ON")
field(ZSV, "MAJOR")
field(OSV, "NO_ALARM")
field(PINI, "YES")
field(FLNK, "$(DEVICE):Limits")
}
I decided to use sCalcout since both of these variables output strings.
For example;
The first record outputs; "At Injection"
The second record outputs; "ON"
I looked up the documentation and could not figure out what is the best approach to write a record to define an alarm variable; let's say
record(scalcout, warning_BeamInjection){
......
......
......
}
I plan to have 1 or 0 assigned to this alarm variable, so that I can set my HIHI alarm to sit at "1".
Any help is much appreciated.
Thanks, Chanaka.
- Replies:
- RE: Using sCalcout record Mooney, Tim M.
- Navigate by Date:
- Prev:
RE: Reading data from bo record? Mooney, Tim M.
- Next:
RE: Reading data from bo record? tom.cobb
- 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:
Re: Reading data from bo record? Michael Davidsaver
- Next:
RE: Using sCalcout record Mooney, Tim M.
- 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
|