From OpenSCADAWiki
Jump to: navigation, search

In general, the representative structure of a complex object is:

  • "All items (items)" — common object-type attribute where the attributes of a physical object are directly described by object-type attributes in items and with defined descriptive attributes in each
    • id — attribute identifier;
    • descr — text description of the attribute;
    • wr — a sign of the possibility of writing or a list of value variants to their selection, through the symbol ';';
    • alarm — violation code:
      • 0 — no violation — "NORM";
      • 1 — violation level "WARNING";
      • 2 — violation level "ALARM";
    • val — attribute value;
    • set — attribute value to set the attributes accessible to write.
  • "Error (err)" — obligatory attribute of common violation status of the object in general, consist of the combination of the error code and short text description, like to "2:No data or connection with source". The template reserves next error codes:
    • 1 — violation level "WARNING";
    • 2 — violation level "ALARM";
    • 3 — unreliability or lack of data.
  • "Violations suppress (alSup) and delay (alDelay)" — violations generic control for suppressing and delaying.