Math: The new functions in math job version 1.2 (0x12)

From bab-tec.de wiki

Jump to: navigation, search

Access on the output value


Configuration of the inputs
Calculate Expression


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.
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox