Official | HULFT IoT EdgeStreaming First Step Guide Third Edition: November 1, 2020

Scenario 3: Sending data that is input from a Modbus TCP-compatible device at a specified interval

In this scenario, create a script capable of sending data that is input from a Modbus TCP-compatible device to an external destination at a specified interval that differs from the input interval.

For example, if data is input from a sensor at an interval of 0.01 seconds, and that data is sent to an external destination at the same interval, there is a danger of the data volume becoming excessively large.

As a countermeasure, create the following two streams in one script.

  • Using "script variable" of HULFT IoT EdgeStreaming, the input from the Modbus TCP-compatible device is first received by a script variable.

  • The values of the script variable are then sent to an external system at an interval longer than the input interval of the Modbus TCP-compatible device.

 

= Remarks =

The optimal interval at which the obtained data is sent to the external system is determined by the required granularity of the data for visualization and analysis that are performed in the subsequent systems.

In this scenario, it is assumed that we want to visualize and analyze temperature changes in one-minute intervals. To meet this requirement, create a script that sends temperature data to the external system in one-minute intervals.

 

 

Official | HULFT IoT EdgeStreaming First Step Guide Third Edition: November 1, 2020