Official | HULFT IoT EdgeStreaming Reverse Reference First Edition: July 1, 2021

Round down the acquired data after the decimal point

This section describes the processing of rounding down the numbers after the decimal points for the data acquired from the equipment.

This process outputs results such as the following:

Example

  • If the input value is "21.119", the output value is "21".

  • If the input value is "28.993", the output value is "28".

  • If the input value is "-13.348", the output value is "-13".

  • If the input value is "-31.752", the output value is "-31".

Description of the processing

If the data acquired from the equipment includes decimal numbers, the integer part is output as 0 after the decimal.

Key features

Fraction processing

This logic rounds down the input numerical value.

It can be set from Number > Function > Fraction processing of the tool palette.

Operation procedure

1. Create a script.

For information about how to create a script, refer to First Step Guide.

The descriptions in this procedure are based on the following scripts:

2. On the script canvas, double-click mapping_1.

The Mapper editor is displayed.

3. From the tool palette, drag and drop Number > Function > Fraction processing onto the Mapper editor.

The Fraction processing logic is placed in the Mapper editor.

4. If necessary, enter the property of the placed logic.

  1. Double-click the Fraction processing logic.

    The Fraction processing Logic Property dialog box is displayed.

  2. Enter a comment in Comment and click Finish.

5. Drag and drop the input source node (or another logic) onto the Fraction processing logic.

The mapping link to the Fraction processing logic is displayed.

6. Drag and drop the Fraction processing logic onto the output destination node (or another logic).

The mapping link to the output destination from the Fraction processing logic is displayed.

7. Save the script.

For information about how to save a script, refer to First Step Guide.

 

 

Official | HULFT IoT EdgeStreaming Reverse Reference First Edition: July 1, 2021