It does not make sense that it is writing 0.
Does your driver implement readInt32 and does it get called during iocInit for that record? If so what does it return as the status function return value?
Mark
________________________________________
From: Zenon Szalata [[email protected]]
Sent: Wednesday, June 26, 2013 12:01 AM
To: Mark Rivers; [email protected]
Subject: Record Processing
Hi Mark,
I have a simple longout record
record( longout, "$(P):LO:DEBUG-$(M):MFUNC"){
field( DESC, "Modbus Func:")
field( DTYP, "asynInt32")
field( OUT, "@asyn(DEBUG,0,1)LO_MFUNC")
field( VAL, "3")
field( PINI, "YES")
}
It is a part of an IOC which uses asynPortDriver class driver. I put a
print statement in writeInt32 function and at IOC initialization time it
prints that the value to write is 0.
Then at the end of st.cmd script I have put a
dbpf <record name>.PROC 1
for this record and this time the value to write is 3. Why is the
record writing 0 at IOC initialize time?
I am not sure if this is a basic EPICS or asyn issue, so I thought I ask
you.
Thanks,
Zen