st-one-io / node-red-contrib-s7

A Node-RED node to interact with Siemens S7 PLCs
GNU General Public License v3.0
112 stars 58 forks source link

Array (6) Real Error After Update V2.3 to V3.0 #100

Closed darecom closed 2 years ago

darecom commented 2 years ago

Hello I could always send an array (6) with real to my S7 1200 with node red and node-red-contrib-s7 V2.3. After update to node-red-contrib-s7 V3.0 this no longer works, I always get an error (see picture). I have not changed anything, besides updatring node-red-contrib-s7 V2.3 to V3.0

German: Hallo Ich konnte mit Node Red und node-red-contrib-s7 V2.3 immer einen Array (6) mit Real zu meiner S7 1200 schicken, Nach Update auf node-red-contrib-s7 V3.0 geht das nicht mehr es kommt immer ein Fehler (siehe Bild) Ich habe nichts geändert , es wurde lediglich von node-red-contrib-s7 V2.3 auf V3.0 erhöht

Array_Error

fernandoamorim1703 commented 2 years ago

For reading arrays to work correctly, you need to declare two square brackets, for example

[[1,2,3,4]]

because there is the possibility of writing more than one array at once, that is, an array of arrays, for example

[[2,2,2,2,2],[4,4,4,4]]

fernandoamorim1703 commented 2 years ago

We will be closing this issue, if there is a need to revisit the subject, please open a new one. Thank you very much.