3/15/2017 4:57 PM | |
Posts: 439 Rating:
|
Hello, I will give more information than less. I have an IOT 2040 and a S7-1200. 6ES7647-0AA00-1YA2 SIMATIC IOT2040 6ES7 212-1AE40-0XB0 CPU 1212C DC/DC/DC I already tried the S7 node to communicate with the S7-1200, works perfectly. I am now trying to communicate via Modbus TCP, in case I have to communicate with a third-party device with Modbus TCP. I import the nodes "node-red-contrib-modbus 1.0.8" into my Node-Red. https://flows.nodered.org/node/node-red-contrib-modbus I am now able to add the "Modbus read" into my web interface. I am able to read the data from my S7-1200. I would like to manipulate the data received and only have the data value. Here is the format of data I receive when I specify I want only one variable:
I copied and paste the "Debug" output: Here are the current value in the DB of my S7-1200:
So, I would like to separate every variable in the DB and get the value only in the "msg.payload". Here is the data i receive when I specify i want 4 variables:
I tried "Split" and "Swich" node, but can't find a way to delete extra stuff.
Maybe a Javascript, but I am new to this... Any advice? Best regards, Hugo |
4/6/2017 7:23 AM | |
Joined: 2/27/2014 Last visit: 9/4/2024 Posts: 689 Rating:
|
Hello Hugo D, Can you provide some screen shot /Videofor configuration of Modbus TCp connection in IoT? When i am trying to make connection between S71500 PLC and ToT2040 over modbus TCP then i am getting error that "typeError : Cannot read property 'close' of null" and "typeError : Buffer.alloc is not a function". |
With Best Regards, |
|
6/22/2017 12:59 PM | |
Joined: 6/19/2017 Last visit: 9/6/2024 Posts: 8175 Rating:
|
New question published by JasonChen37111 is split to a separate thread with the subject Problem when install node-red-contrib-modbus. Best regards |
Follow us on