web
You’re offline. This is a read only version of the page.
close
Support Portal

Pick up HTTP Rest into Node Red with a SIG200 a TDC-E and a WTT12LC

This article shows you how to use the Node Red to pick up sensor data from a SIG200 into the TDC-E.
Related Products
SIG200-0A0G12200 SENSOR INTEGR.GATE
WTT12 PowerProx
TDC-E210GC DATA COLLECTOR

Table of Contents

We will show you how to pick up sensor data with Node Red from a SIG200 into a TDC-E.
We use the Node Red in this case, because it is an open source software which you can install on every PC not only on TDC-E.

To use some commands in this post, you have to transfer the IODD of the device to the SIG200.

First, we collect the data which we need from the sensor via HTTP Rest from the SIG200 into the TDC-E. For this, we use the NodeRed on the TDC-E. In this example, we will show you how to pick up the distance value from a WTT12LC. Afterwards, we will show this value in the Node Red user interface. 


 

Step 1: 

First, you have to inject.

As repeat you can choose “interval” and the time of the interval, in this case is every second.

Payload Type: “json”

As payload:
"{"header":{"portNumber":0},"data":{"processData":"in"}}". 

 

Step 2: 

You have to use a HTTP endpoint, this is to send HTTP requests and to get the answer.


The Method is “Post” in this case.

And the URL is http://192.168.0.15/iolink/sickv1/readDevice.

You will also find these commands in the manual from the SIG200. 

 

Step 3: 

Convert from Jason string into a JAVA script and vice versa.

As Action you have to use “Convert into JAVA Script”.

 

Step 4: 

You have to define the “function” to send this data for example via MQTT to a cloud or to the Node Red user interface.



The return value in this case is the distance value from the WTT12 which you can use now in a Dashboard or which you can send to a cloud.
The 11 in brackets is the Value for the distance value from the process data, this value you will find in the IODD.

 

Step 5: 

To use the Dashboard from Node Red you have to use dashboard function like in this case a gauge.

There you have to define a group, set the range and so on as shown in the screen shot below.



Now you can see in the Node Red user interface the graphic gauge that we have configured.

 

 

Keywords:
sensor data, node red, interval, open source software, pick up data