Calculation examples
Example 1: Calculate wind speed in km/h from input value measured in m/s.
1m/s = 3.6km/h.
- Set Constant Factor to: 3.6.
- Add Addition operation and select your input value (wind speed in m/s).
Example 2: Calculate energy (kWh) from current input value measured in amperes (A).
Energy is calculated as integration of power:
E(kWh) = Int(U*I)dt * 1/3600 / 1000
- Set Calculus to: Integral.
- Voltage (U) can be set as a constant (e.g. 230V). In this case Constant Factor is: 230 * 1/3600 / 1000 = 6,3e-5.
- Add Addition operation and select current input value in amperes.
- Use Value output in tasks or make a Double user interface control for it. A Run Function control linked to the Reset function can be used to enable resetting of the counter value.
Example 3: Count the number of ON switching
- Create a counter variable (Devices->Variables->Integer).
- Add Addition operation and select your counter variable.
- Add Addition operation and set Constant Factor to 1.
- Create a Program task. Set a trigger (i.e. device is turned ON). Add a Run command and link it to the Calculate function.
- Use Reset function to enable resetting of the counter value.
Customer support service by UserEcho