much delay in 10ms
Posted: 21 Nov 2018, 11:15
Hi team,
I am now using this SDK(ANSI C 1.7) to develop the software, and I have two question.
Firstly, I found that I cannot call the "UaBase_DoCom()" by multi-thread, can this support this?
Secondly, I use this in one loop "UaClient_Session_BeginRead() -> UaBase_DoCom() -> UaClient_Session_BeginWrite() -> UaBase_DoCom() " to read and write value to an OPC UA server. And it is ok to use the PLCSIMAdv within call this per 100ms and 10ms, but if use this loop to exchange value with the real PLC and the update time is 10ms, then there will be much delay and the read call back/write call back may get the error code "OpcUa_BadTimeout".
I am now using this SDK(ANSI C 1.7) to develop the software, and I have two question.
Firstly, I found that I cannot call the "UaBase_DoCom()" by multi-thread, can this support this?
Secondly, I use this in one loop "UaClient_Session_BeginRead() -> UaBase_DoCom() -> UaClient_Session_BeginWrite() -> UaBase_DoCom() " to read and write value to an OPC UA server. And it is ok to use the PLCSIMAdv within call this per 100ms and 10ms, but if use this loop to exchange value with the real PLC and the update time is 10ms, then there will be much delay and the read call back/write call back may get the error code "OpcUa_BadTimeout".