Hi
I am using the following code to get the timestamp on change.
record(bi, "pv1"){
field (INP, "pv1")
field (ONAM, "1")
field (ZNAM, "0")
}
record(stringin, "pvtime1"){
field (DTYP, "Soft TimeStamp")
field (TSEL, "time-sel.TIME CP")
field (INP, "@%H:%M:%S")
}
record (scalcout, "time-sel"){
field (INAA, "pvtime1 CP")
field (INPA, "pv1 CP")
field (CALC, "A==1?AA:0")
}
record (calcout, "change"){
field (INPA, "pv1 CP")
field (INPB, "pvtime1 CP")
field (CALC, "A==1?B:0")
}
In time-sel.AA field, I am getting the time in the format specified in pvtime1 (H:M:S). When the condition is true I only get the hours not the minutes and seconds. But when the condition is false i got the zero value that is ok I got the same behaviour for the record change. Please guide how to get the time format (H:M:S) in the time-sel record when the condition is true.
Regards
Tasaddaq