Hello,
I'm trying to get the timestamp from another IOC (we will call it "IOC1") using the following DB records:
record(stringin, "$(user):TimeStr") {
field(DTYP, "Soft Timestamp")
field(TSEL, "$(Y):Timestamp_from_IOC1.TIME CP MS")
field(INP, "@%s")
field(SCAN, ".2 second")
}
record(ao, "$(user):Time"){
field(DTYP, "asynInt32")
field(OUT, "@asyn($(PORT),$(ADDR),$(TIMEOUT))my_time")
}
record(calcout, "$(user):TimeCalc"){
field(OUT, "$(user):Time PP")
field(CALC, "A")
field(INPA, "$(user):TimeStr.VAL CP MS")
field(PINI, "YES")
}
At the startup of IOC2 I am able to get the timestamp from IOC1 but only once. The PV "TimeStr" doesn't update.
Can someone help me with this task?
Thanks in advance, Adrián.