Beckhoff Automation GmbH & Co. KG TX1200 — 10.1.4.1 Configure Visualization Elements

Visualization ( := , := ,..., := ). During compilation of the visualization it will be checked, whether the text matches with one of the defined replacement values defined in the placeholder list, if it does not, a warning will be output. Example: Calling the visualization visu1, whereby the placeholders $var_ref1$ and $var_ref2$ used in visu1 are replaced by the variables PLC_PRG.var1 and PROG.var1 respectively: visu1(var_ref1:=PLC_PRG.var1, var_ref2:=PROG.var1 If a program variable of the type STRING (e.g. PLC_PRG.xxx) has been entered instead of a visualization object, then this variable can be used to define the name of the visualization object (e.g.

,visu1') which the system should change to when a mouse click occurs (e.g. xxx:= ,visu1). If you issue the command „ZOOMTOCALLER" in the Zoom to vis. field, a backward jump into the calling visualization is achieved in Online mode by a mouse click on the element, if such a constellation was configured. The use of a program variable is not permitted for the PLC HMI CE. The implicit variable CurrentVisu (type STRING, for implicit (system) variables see here) describes the name of the currently opened visualization object. For example it can be used in the application to control which visualization should be opened resp. to see which is the currently opened.

But this will only work if the names of the visualization objects are defined in capital letters (see 'Create a visualization object [ } 259] '). Example: CurrentVisu:='TC_VISU'; Execute program : If this option is activated you can enter ASSIGN- or special "INTERN"-commands in the input field, which will be executed in online mode as soon as you perform a mouse-click on the element. Press button "..." to get the dialog Configure programs where you can select the desired commands (Add) and arrange them in the desired order (Before, After). This feature especially is important if the visualization will be the only operating interface of a system (pure operating version).

See a description of the commands: Special input possibilities for the TwinCAT PLC Control operating version. If you select the Text input of variable 'Textdisplay', then in Online mode you will get the possibility to enter an value in this visualization element which will upon pressing be written to the variable that appears in the Textdisplay field of the Variables category. Select in the scroll box which kind of input should be possible later in online mode. Text : An edit field will open, where you can enter the value. Numpad resp. Keypad : A window will open showing an image of the numeric resp. alphabetic keypad, where you can enter a value by activating the appropriate key elements.

This might be useful if the visualization must be operatable via a touch screen. The range of valid input values can be restricted by defining a minimum and a maximum value in the edit fields Min : and Max : In case of multiple definition of an element property consider the specific order of precedence concerning according to which a value might be overwritten in online mode by another. TX1200 279 Version: 1.3