May-21st-2021, 02:59 PM
Hallo ALL,
I have a question about OPC UA.
I have a project with a OPC UA Server by Siemens Automation called Telecontrol Server Basic (TCSB). The Server is runing und working.
No I have to do a connection to IoT Edge Gateway by Hilscher with Node-Red.
The connection is also working and i can read some data from the Server. The data's on the Server are all Array by diffrent format's (sint, uint and udint).
Now i would like to write some values into a array (complettly or single array elements).
First i do it by a simple inject node with a function into a opc us output (is connected). But it didnt work.
The function code is "msg = {payload:{Value:{0:99,1:40,2:80,3:80,4:90,5:100,6:110,7:0,8:0,9:0}}};"
The error msg say "expecting a number". I don't now what number it mean's.
The opc topic is "dp.sp". The format is [array 0..0 of int]
Did anyone has an idea?
Thank you.
I have a question about OPC UA.
I have a project with a OPC UA Server by Siemens Automation called Telecontrol Server Basic (TCSB). The Server is runing und working.
No I have to do a connection to IoT Edge Gateway by Hilscher with Node-Red.
The connection is also working and i can read some data from the Server. The data's on the Server are all Array by diffrent format's (sint, uint and udint).
Now i would like to write some values into a array (complettly or single array elements).
First i do it by a simple inject node with a function into a opc us output (is connected). But it didnt work.
The function code is "msg = {payload:{Value:{0:99,1:40,2:80,3:80,4:90,5:100,6:110,7:0,8:0,9:0}}};"
The error msg say "expecting a number". I don't now what number it mean's.
The opc topic is "dp.sp". The format is [array 0..0 of int]
Did anyone has an idea?
Thank you.