I am using Open62541 v1.4.6 for the PC connection to the Siemens S7 controller. I have happily managed to establish a bi-directional connection (albeit not without minor niggles).
My question is,
should I be able to rely
rely on the status returned by the
UA_Client_writeValueAttribute()
function in this case? I would like to use this status as follows:
UA_StatusCode write_sts = UA_Client_writeValueAttribute(client_, node_id, &opc_val);
if(write_sts != UA_STATUSCODE_GOOD) {
// Handle error
}
However, the function always returns UA_STATUSCODE_BADINTERNALERROR (0x80020000) error, even though I can read the stored value
correctly
from the controller.
Has anyone had a similar experience? I don't know whether to continue to wrestle with the subject or rather look for a workaround.
I am using Open62541 v1.4.6 as a client to connect my PC to a Siemens S7 PLC. Happily, I have managed to establish bi-directional communication (but not without some minor niggles).
My question is, when communicating with the S7, should I rely on the status returned by the UA_Client_writeValueAttribute() function when writing data to the controller? I would like to make use of this status like this:
but it is always equal to UA_STATUSCODE_BADINTERNALERROR (0x80020000), even when the value being written correctly appears in the PLC.
Has anyone had a similar experience? I don't know whether to keep struggling with this or look for a workaround.