Movicon Help on Line - Rel. 11.7.1301
The Text properties allow the assigned variable's value to be displayed in the object to replace its title, and can be text or numeric type.
These properties are part of the Draws and Controls 'Animation' properties group.
To edit the Text properties, select the object and use the Movicon 'Properties Window' that shows.
Enabling this check-box will activate the Text function in the selected component. In this way, the object will display the assigned Variable's value instead of its orignal title at Runtime. This functionality is similar to that of the 'Display (Edit box)' controls from the 'Controls' class in the "Toolbox Window".
Draws' Text properties, and in particular those of Rectangles, can be used to create 'read only' Display objects. |
When enabling this option box, a search for the value of the variable, assigned to the "Text - Display Value" using the "Tag to Display" property, will be made in the strings listed in the string table to display it in the object's title. If the string ID cannot be found in the table, the variable's value will displayed instead.
The name of the variable whose value is to be displayed by the object is entered here. As an alternative, it can also be selected with the "..." browse button on the right.
The format with which to display the numeric values presented in the Variable is specified here. The format codes that can be used in this property are those listed in the paragraphs on "Predefined Movicon Formats" and "Formats for Numerical values and strings" in the "Data Formats" section.
When using basic expressions in the object's 'Text' Animation Property, they must be set with the format "%f". |
The name of the variable whose value will be used to determine the display format of the variable assigned to the Display is entered here. As an alternative, it can also be selected by using the "..." browse button on the right. The displayed value format can also be changed at runtime by using this variable. When this field is left empty, the format defined in the "Format Value" property will be used instead, otherwise the variable's contents will be used.
Numeric variables or string variables can be entered in this field:
Numeric Variable: if the variable is numeric type, the set number will represent the number of decimal figures after the point. For example, when entering '2' as the value in this field, the "x.xx" format will be used. If the set value is negative, the absolute value will used. Therefore, when entering "2" or "-2" the same result will be obtained. If the value is a floating point type with decimal figures, the value will be rounded off. For example, a value entered as "1.4" will be rounded off to "1" and a value entered as "1.6" will be rounded off to "2".
String Variable: if the variable is string type, its format must be in one of those offered by the control system and which are listed in the paragraph on "Predefinided Movicon Format" from the "Data Formats" section (i.e. "x.xx", "%s", etc.).
Caution! When using a string variable type, please make sure that you insert a correctly supported format. If the string inserted is not in a valid string format, the value will not be displayed correctly. |
"Byte Array" or "Structure" variable types (inserted as global variables without using any members) are not supported. In this case, the value will be displayed with the format defined in the "Format Value". property. |