node-red-contrib-opcua icon indicating copy to clipboard operation
node-red-contrib-opcua copied to clipboard

Read/Write ExtensionObject (data type) between NX102 & PLCnext using OPC UA & REST api.

Open Maxime771 opened this issue 8 months ago • 3 comments

Hi, this is how I try to establish read/write communication for a structure variable between an NX102 & PLCnext.

I am using OPC UA protocol to read a data structure from the NX102 as shown below : My DataType that I want to read/write : MyDataType In UaExpert, we can see the following information : UaExpert_MyDataType In Node-Red, I can read '' staaMCtest '' and its members from the NX102. Node-Red Read MyDataType Using the fonction "Map to PLCnext", I can write each member of staaMCtest to the PLCnext structure : MapToPLCnext In the PLCnext, we can see that the value are correctly written in ''teststruc'' of type MyStruct : PLCnextDataTypeValue I set the variable teststruc as a HMI tag, so it can use the REST data interface. PLCnextRESTapi

Since the value of staaMCtest (NX102) and teststruc (PLCnext) can be change in both PLC, I want to send the value of teststruc back to staaMCtest (NX102) : NodeRedSendBackInfo We can see that the content in the msg payload of ''debug 6" is the same as the content in "debug 1" (showed in previous image)

My issue is writing via the function bloc "Omron NX102 Client Write". I got this error : image

Any ideas how can we solve this issue?

Maxime771 avatar Jun 18 '24 13:06 Maxime771