Math: The new functions in math job version 1.2 (0x12)
From bab-tec.de wiki
Access on the output value
- eo_out()
Configuration of the inputs
Calculate Expression
- Always: The calculation is been executed as soon as any input is detected at the input objects.
- Never: The calculation is never been executed by this input. Certainly the value of the input object is been considered during the execution of the expression.
- On value change: Only when the input value changes according to the former value, the calculation is been executed.
Mathematical Operations:
| Symbol | Description |
|---|---|
| ~ | negate bit by bit |
| ! | logical negate (NOT) |
Other operations:
| Symbol | Description |
|---|---|
| ?: | If-Then-Else Operator |
Built in functions:
| Symbol | Description |
|---|---|
| eoiga() | Delivers the group address which has triggered the expression (not formatted!) |
| eo_ga(idx, idx_ga) | Delivers the group address of an object unformatted. "idx" defines the index number of the input, "idx_ga" defines the index number of the group address in the object. Both counting is beginng at "0" (from left to right). |
| ga_str(ga, fmt) | Delivers the desired group address (ga = index number) as a string (EIS 15) on the output. With "fmt" 2- or 3-digit notation is been determined. |
| str_ga(str) | Delivers the desired group address as an integer. 2- or 3-digit notation is no important factor. |
| version() | Delivers the version number of the mathematic module. Currently this is "18" = version 1.2 (0x12) and "17" = version 1.1 (0x11). |
Reserved variables
| Variable | Description |
|---|---|
| override_addr | If the value of this variable is unequal "0", the original output address is been discarded and the value of this variable is been interpreted as the new output address instead (1-digit notation). |
| override_eis | If the value of this variable is unequal "0", the original datatype configuration is been overwritten by that. Thereby there will be no adjustment of the value. |
| override_skip_send | If the value of this variable is unequal "0", the transmission is been aborted. The running operation comes to no result. |
| override_keep_data | If the value of this variable is unequal "0", not the calculated output value, but the input value which has triggered the operation is been used. |