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: Implementing transform field |
From: | "Marco A. Barra Montevechi Filho via Tech-talk" <tech-talk at aps.anl.gov> |
To: | "Brown, Garth" <gwbrown at slac.stanford.edu>, "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov>, Rolf Keitel <rolf at triumf.ca> |
Date: | Thu, 4 Aug 2022 20:46:44 +0000 |
I implemented this in the same way and it works beautifully!
If anything, at least this was a very good didactic exercise with the transform record. But indeed the mbbiDirect is what i was looking for. Thanks for the advice 🙂 Marco From: Brown, Garth <gwbrown at slac.stanford.edu>
Sent: 04 August 2022 15:45 To: Marco A. Barra Montevechi Filho <marco.filho at lnls.br>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>; Rolf Keitel <rolf at triumf.ca> Subject: Re: Implementing transform field
That was my thought as well, mbbiDirect with bi. It sounds like you're trying to do the same sort of thing as in some code I'm currently working with. Here's a few lines as an example:
record(mbbiDirect, "$(P):BLM_STS_REG_BITS") {
field(DESC, "BLM common status register")
field(INP, "$(P):BLM_STS_REG CP MSI")
}
record(bi, "$(P):FLT_LATCH") {
field(DESC, "BCS Fault (Latched)")
field(INP, "$(P):BLM_STS_REG_BITS.B0 CP MSI")
field(ZNAM, "FAULT")
field(ZSV, "MAJOR")
field(ONAM, "OK")
}
record(bi, "$(P):FLT_LIVE") {
field(DESC, "BCS Comparator trip")
field(INP, "$(P):BLM_STS_REG_BITS.B1 CP MSI")
field(ZNAM, "TRIP")
field(ZSV, "MAJOR")
field(ONAM, "OK")
}
record(bi, "$(P):VL_OVP_DET") {
field(DESC, "Input overrange")
field(INP, "$(P):BLM_STS_REG_BITS.B2 CP MSI")
field(ZNAM, "OK")
field(ONAM, "OVERRANGE")
field(OSV, "MAJOR")
}
-Garth
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Rolf Keitel via Tech-talk <tech-talk at aps.anl.gov>
Sent: Thursday, August 4, 2022 9:40 AM To: Marco A. Barra Montevechi Filho <marco.filho at lnls.br>; tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> Subject: Re: Implementing transform field Hi Marco,
why don't you use a mbbiDirect record to read the modbus register and then 16 bi records pointing the INP fields of the bi records to the mbbiRecord's B0..BF fields.
- rolf -
On 2022-08-04 7:19 a.m., Marco A. Barra Montevechi Filho via Tech-talk wrote:
--
Rolf Keitel, Ph.D. Researcher Emeritus Office: TRIUMF, 4004 Wesbrook Mall Vancouver, BC, V6T 2A3 604 222 7453 Home: 4158 West 13th Ave Vancouver, BC, V6R 2T6 604 228 0594 e-mail: rolf at triumf.ca |