Hi all,
I have created, as template, a simple application to check some
signals in a cubicle (doors, fans, power, temperature etc.)
Using macro substitution, I have created several identical
applications, one for each cubicle to control.
Now I want to enable persistance and archiving on some PVs (I would
like to do this in the template not by hand in the applications).
And this is the problem: persistance supports macro substitution but
what about archiver config tools and/or file ?
Just to clarify what I mean, these are examples record from the template:
record (bi,"$(CUBICLE_NAME):FAN")
{
field(DTYP, "s7nodave")
field(INP, "@CUBICLEM F1.2 bool")
field(PINI, "YES")
field(SCAN, "I/O Intr")
field(ZNAM, "Fan OFF")
field(ONAM, "Fan ON")
}
record (ao,"$(CUBICLE_NAME):WARNING_THRS_W")
{
field(DTYP, "s7nodave")
field(OUT, "@CUBICLEM DB1.DBD14 int32")
field(LINR, "LINEAR")
field(EGUF, "214748364.7")
field(EGUL, "-214748364.8")
field(EGU, "°C")
field(HOPR, "35")
field(LOPR, "20")
}
For the persistance I have something like this
$(CUBICLE_NAME):WARNING_THRS_W.VAL in my _IOC_.req file
and
create_monitor_set("_IOC_.req", 5, "CUBICLE_NAME=$(CUBICLE_NAME)") in
my st.cmd
Can I create something like this for the _IOC_.xml archiver config file ?
<group >
<name >$(CUBICLE_NAME)</name>
<channel >
<name >$(CUBICLE_NAME):FAN</name>
<monitor ></monitor>
</channel>
</group>
Or I have to look at other solutions ?
Thanks. Robert