Math Blocks
In automation logics, math blocks are used for a wide range of common mathematical operations on numeric input data. With these blocks, you can easily perform addition, subtraction, multiplication, division, find maximum/minimum values, calculate averages, logarithms, exponents, trigonometric functions, and more. This enables flexible threshold judgement, data transformation, and dynamic computation—helping to address even complex requirements.
Math blocks are commonly used in the following scenarios:
- Dynamic calculations and threshold checking for temperature, humidity, and other environmental data.
- Aggregation and statistics with multiple data sources (for example, averaging, finding the maximum or minimum).
- Proportional allocation, unit conversion, and other complex automation logic.
- Advanced data processing and custom algorithms supported by trigonometric, logarithmic, and exponential functions.
By dragging and configuring math blocks, you can build a flexible and powerful data calculation system without any coding. This supports a broader set of advanced automation scenarios.
| Block | Description |
|---|---|
| Add | Adds multiple numeric inputs and outputs the sum. Commonly used for adding data from multiple sensors, energy statistics, and more. |
| Subtract | Subtracts the second input from the first and outputs . Useful for monitoring temperature/humidity differences, energy changes, or trends. |
| Multiply | Multiplies up to 4 inputs. Suitable for area calculation, power amplification, or ratio conversion. |
| Divide | Divides two values and outputs . Often used for per capita energy use or proportional allocation. Note: Divisor cannot be zero. |
| Maximum | Compares up to 4 inputs and outputs the largest value. Useful for multi-zone monitoring or maximum threshold detection. |
| Minimum | Compares up to 4 inputs and outputs the smallest value. Good for detecting lowest points or alerting on minimum values. |
| Average | Calculates the average of up to 4 inputs. Ideal for environmental analysis or unified strategies across sensors. |
| Negative | Outputs the negative of the input value. Used for getting relative values. |
| Abs Value | Outputs the absolute value of the input. Useful for analyzing data magnitude uniformly. |
| Sine | Outputs the sine value of the input number (). |
| Cosine | Outputs the cosine value of the input number (). |
| Tangent | Outputs the tangent value of the input number (). |
| Arc Sine | Accepts input in and outputs the angle (). |
| Arc Consine | Accepts input in and outputs the angle (). |
| Arc Tangent | Outputs the arctangent angle of the input (). |
| Exponential | Calculates the exponential value using base (). |
| Fractorial | Calculates the factorial for a positive integer input (). |
| Log Base 10 | Calculates , commonly used for level judgement or value grouping. |
| Log Natural | Calculates the natural logarithm of the input (). |
| Modulus | Outputs the remainder of dividing two inputs (). |
| Power | Outputs , that is, base to the power of exponent. |
| Square Root | Outputs the square root of the input (). |