Hello,
I have a problem with a program that uses an OPC server to comunicate with a PLC.
It happens randomly, when I update the data, i cannot see any patern, sometimes it happens quickly, sometimes it takes longer...
The data socket is declared like that:
hr = DS_OpenEx ("psp://localhost/Server/Automate.405466", DSConst_WriteAutoUpdate, NULL, NULL, DSConst_EventModel, TIMEOUT_OPC_mSEC, &ecr_MW5465);
And is update like this:
hr = DS_SetDataValue(ecr_MW5465, CAVT_SHORT, l_buf, 1, 0);
The function does not return any error, but the value is not updated server side.
Lookout version is 6.6, the program is made with CVI 8.5.1 and communication is in ethernet modbus. I do not know if further details could be useful.
Thank you.