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

Output the remainder of the division for the acquired data

This section describes the processing of outputting the remainder when the data acquired from the equipment is divided.

This process outputs results such as the following:

Example

If the input value (dividend) is "25" and the input value (divisor) is "2", the output value is "1".

Description of the processing

The data acquired from the equipment is divided and the remainder is output.

Key features

Remainder

This logic outputs the remainder obtained when the dividend (numerical value of the first input handler) is divided by the divisor (numerical value of the second input handler).

It can be set from Number > Calculation > Remainder of the tool palette.

Operation procedure

This section describes an example when the remainder of "Numerical value of the input destination divided by 2" is output using the Remainder logic.

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. Drag and drop the following logics from the tool palette onto the Mapper editor:

  • Number > Calculation > Remainder

  • Number > Basic > Numeric constant (integer)

The logics are placed on the Mapper editor.

4. Enter the property of the placed logic.

  1. Double-click the Numeric constant (integer) logic.

    The Numeric constant (integer) Logic Property dialog box is displayed.

  2. Enter a divisor in Number (integer).

    In this example, "2" is entered.

  3. If necessary, enter a comment in Comment and click Finish.

  4. If necessary, double-click the Remainder logic, enter a comment in Comment, and click Finish.

5. Drag and drop the input source node and the Numeric constant (integer) logic onto the Remainder logic (dividend on the first input handler and divisor on the second input handler).

The mapping link to the Remainder logic is displayed.

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

The mapping link to the output destination from the Remainder 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