Hello everyone. I am student and total new to Node Red. Right now, I am working on a project at the university regarding to sending data from PLC to Siemens cloud servers (Mind Sphere) with the help of a Node Red. In our project there are total of 16 sensors which I had to send the BOOLEAN data for each to the servers. Siemens already offered the function codes which we can use depending on data type. In the following picture you can see a sample of nodes I have created for 1 of the sensors only:
and the function that I use for the Boolean data is also in this picture: I have learned the codes that I used for the function from the forums since I have no knowledge of Java but the system works fine for the Boolean data. Now I have to send the data as an Integer. I have turned all 16 bits into 1 word data and as you know it will give different number value depending on different number of active sensors. Following the picturethe problem is that I don't know what program codes should I write for this function in order to send Integer value to Siemens. I would really appreciate it if any one can help me with that.
Sincerely Yours