The sensor parameter can be a compound expression. Due to such parameters, you can create a wide variety of sensors which meet any needs and purposes. In the expression, you can use:
- parameters from the last message (adc1, in1, and so on);
- parameters from the previous message (they should be preceded by the sign #, for example, #adc1);
- bitwise control of a parameter (param199:3, and so on);
- sensor names (they should be indicated in square brackets, for example, [Ignition]);
- constant parameters (const10, const-4.54, and so on);
- mathematical operation signs listed below.
Sign | Operation |
---|---|
+ | addition |
− | subtraction |
∗ | multiplication |
/ | division |
^ | exponentiation (for example, ^const2 denotes squaring, ^const0.5 denotes square rooting) |
( ) | parentheses of priority (for example, in the expression const1.5*(param1−#param1), the parentheses indicate that subtraction should be performed before multiplication) |
| |
Value availability check
The value availability check is used to avoid data loss when the equipment is replaced. To apply this operation, specify the required parameters in the Parameter field, separating them by a vertical bar (|). The system takes into account the first valid value from the specified parameters.
Suppose, the equipment installed on the unit during the first month sent data in the param1 parameter, and the equipment used since the second month sends the same data in the param2 parameter. To exclude the loss of data, for example, when executing a report for two months, you should specify param1|param2 in the Parameter field of the sensor properties. In this case, the system takes the value from the param1 parameter, and if it is invalid, from param2.