OPC-UA BadTypeMismatch (0x80740000) - S7_1500

Hello,

i am using node-red-contrib-opcua in my current project.
I am able to read/write boolean values with the opc-client to my S7-1500.
Now i am trying so send a numerical value e.g 70009, to my S7.
For some reason i always get the error BadTypeMismatch (0x80740000)when trying to do so.

This is what my topic looks like:
ns=3;s="RW_RFID_MASTER"."THIS"[0]."Wr_UserData0";datatype=number

The datatype of Wr_UserData0 is LINT.
What am I doing wrong?

Also: I am not a Pro, so be kind :smiley:

Edit:

Was able to solve it. Leaving this here, for the people googling this issue:

While reading using the client node, it is good enough to define the datatype as number,string, boolean in Nodered. While writing, you have to define the OPC-UA datatype in the topic.
You can find an overview here:

https://www.mathworks.com/help/opc/ug/opc-ua-server-data-types.html

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.