Vai al contenuto

StringDisplay

Component which lets you display a string taken from a preset list containing strings not necessarily consecutive in the string database.It has the following properties:
  • label: : label that identifies the data on the PLC (allowed formats: label, label[constant], label[label2])
  • strings: list of strings used to display the active string. The first string is displayed when label has value 0; the second with value 1, etc.
  • parameters: dynamic parameters to replace the string. Lets you list (separated by comma) PLC or local labels to replace any substrings %1, %2, %3, etc. These properties let you manage complex strings composed of text and data whose position in the string can vary according to the active language. Example: parameters: gqt_DateDay, gqt_DateMonth, gqt_DateYear string in Italian: “Oggi è il %1/%2/%3” string in English: “Today is the %2/%1/%3” Note: when using these properties, the string is displayed only after the PLC has read all of the listed labels. If even just one is not on the PLC, the string will never be represented (NB: the fault is signaled with a WARNING message visible in telnet).
  • values: The value contained in the parameter is the set of values that the label can assume for which it’s associated a string value in the strings array, values must be separated with “;”. If empty the parameter is not considered. Ex: If the associated label is “XYZ” and in values there is “1;5;20;-20” when “XYZ” is -1 the component shows the string in position 0 of the strings array, if “XYZ” is 20 is shown the string position 2, etc…
Please note: using char “\” as separator, it’s possible to divide the text on multiple lines. To increase space between lines use more than one “\” chars as separator (example: “\\\”).