Manual -> Pictures -> Picture elements -> Picture Elements -> Combined element -> Creating a formula -> Formula editor |

Show all Hide all |

Formula editor

With the formula editor – accessible via the
button `Formula`

– it is
possible to define boolean formulas for stati of the combined
element. With the button `New`

in the Formula variables area it is
also possible to add other variables.

The meaning of the single bits is the following:

Bit |
Description |
---|---|

value bits |
32 value bits (from 0 to 31) describing the variable value bitwise are available. For BOOL variables only bit 0 is of importance, for SINT and USINT only the bits from 0 to 7, etc. Please be aware, that the evaluation always refers to the raw value (signal resolution) of the variable and not to the scaled measuring range. |

status bits |
Here you find the most commonly used status bits. You will find a description of the status bits in the chapter Status administration. |

not acknowledged |
Not acknowledged is treated like a usual status bit. But here it is listed separately, because it does not belong to the classical variable stati. |

value and status |
In the formulas all values (value bits and
status bits) are treated as binary values and can be logically
linked with AND, OR, etc. Beside a bitwise OR with a constant the
values also can be compared directly with a decimal value. If the
comparison is wrong, the binary value is 0 (false) otherwise 1
(true). |

The operator priority of the formula calculation is:

Priority |
Bediener |
---|---|

1 |
& (the functionality of this operator is explained above under value and status) |

2 |
NOT |

3 |
AND |

4 |
XOR/OR |

Info |

Up to 99 variables can be used in one formula. X01 to X99. |

Info |

The status bits NORM and ABNORM are here only available in the formula editor. They cannot be engineered using the status. |