Hi Marco,
Can you show us how the NEG_EMODBUS_1_1_Rd_VTarget port is configured?
Mark
From: Tech-talk <tech-talk-bounces at aps.anl.gov> on behalf of Marco A. Barra Montevechi Filho via Tech-talk <tech-talk at aps.anl.gov>
Sent: Tuesday, July 26, 2022 7:45 AM
To: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov>
Subject: PINI field not working with modbus
Hello all.
I have an analog in record for reading a modbus register from a device. The record is defined as follows:
record(ai,
"${BL}:${H}:${EQ}:TargetVoltRead"){
field(DESC,
"Voltage set on target [V].")
field(DTYP,
"asynInt32")
field(EGU,
"V")
field(ASLO, 0.01)
field(INP,
"@asyn(NEG_EMODBUS_1_1_Rd_VTarget,0,1000)MODBUS_DATA")
field(SCAN,
"1 second")
}
Which reads fine. However, if i set the PINI field to YES and the scan to passive:
record(ai,
"${BL}:${H}:${EQ}:TargetVoltRead"){
field(DESC,
"Voltage set on target [V].")
field(DTYP,
"asynInt32")
field(EGU,
"V")
field(ASLO, 0.01)
field(INP,
"@asyn(NEG_EMODBUS_1_1_Rd_VTarget,0,1000)MODBUS_DATA")
field(SCAN,
"Passive")
field(PINI,
"YES")
}
i get only 0 as value when cagetting the PV. Am i doing something wrong?
Thanks in advance.
Marco
Aviso Legal: Esta mensagem e seus anexos podem conter informações confidenciais e/ou de uso restrito. Observe atentamente seu conteúdo e considere eventual consulta
ao remetente antes de copiá-la, divulgá-la ou distribuí-la. Se você recebeu esta mensagem por engano, por favor avise o remetente e apague-a imediatamente.
Disclaimer: This email and its attachments may contain confidential and/or privileged information. Observe its content carefully and consider possible querying
to the sender before copying, disclosing or distributing it. If you have received this email by mistake, please notify the sender and delete it immediately.
|