I am trying to do something very simple and not succeeding.
I have two records:
record( longout, "$(P):LO:FIL:TVAL"){
field( DESC, "timeout in sec")
# field( OUT, "$(P):$(R):LO:TIME:LEFT PP")
field( OUT, "$(P):$(R):CALC:TIME:LEFT:1PSEC")
field( VAL, "3600")
field( PINI, "YES")
}
record( calc, "$(P):$(R):CALC:TIME:LEFT:1PSEC"){
field( DESC, "increment 1/sec")
field( SCAN, "1 second")
field( CALC, "C?D:B?(A?A-1:0):A")
field( INPA, "$(P):$(R):CALC:TIME:LEFT:1PSEC.VAL NPP")
field( INPB, "$(P):$(R):BO:TIME:LEFT:ENABLE.VAL NPP")
field( INPC, "$(P):$(R):CALC:TIME:LEFT:RESET.VAL NPP")
field( INPD, "$(P):$(R):LO:TIME:LEFT.VAL NPP")
field( FLNK, "$(P):$(R):GS:TIME:LEFT")
}
When my test soft ioc goes through the init phase, I expected that the first of the two records would process and write the value 3600 to the VAL field of the second record, but that does not happen. If my second record is longout then the value gets written to it. When I process the first record with caput by writing 1 to its PROC field, then the value is written to the calc record. Why does it not work at iocInit time? Is there some simple way of transferring the value from the first record to the calc record at iocInit time? Any suggestions will be appreciated.
Thanks,
Zen