Text lists

Text lists enable the display of a text based on a numerical value, such as a process variable value.

Definition in the language switching

A frequently required feature is the display of various texts that are each assigned to a specific value. This can be implemented very easily by defining text groups and localizable texts. For every logical group of texts, it is recommended to create a dedicated text group. Within this group, the value is used as the Name of the text.

See Examples of text lists

Use in localizable texts

Text lists can, in turn, be used in other localized texts with the help of text parameters. To do this, two pieces of information must be provided:

  • Where does the value come from?

  • From which text group do the texts originate?

For this example, the text group TextLists.ConveyorDiverter from the text list examples is used. The text that is intended to link the list is defined in another text group:

Name

Deutsch

Englisch

Förderband1

Die Transportrichtung des Förderbandes 1 ist @1@.

The transport direction of the conveyor belt 1 is @1@.

A parameter is defined in the text, identified by @1@. The necessary information:

  • Data source = process variable Ch1.Transport.Förderband1.Position (data type e.g., VT_I2)

  • Text source = text group Textlisten.Förderbandweiche

must be configured in the Edit Localizable Text dialog.

Definition und use in controls

Alternatively, a text list can also be used directly within a control. The control establishes the connection between the data source and the text source through the configuration of specific properties. For details, see State collections.

Related topics: