L-force | plc designer – Lenze PLC Designer PLC Designer (R3-1) User Manual

Page 197

Advertising
background image

L-force | PLC Designer

Visualization

DMS 4.1 EN 03/2011 TD29

195

The Buttons entitled "Trigger" activates the triggering of the trace, i.e. setting the
associated trigger variable to TRUE. This is done within the item "inputs" of the
element properties of the button:

The special action "OnMouseDown" is connected to the execution of a ST-Code setting
the associated trigger variable to TRUE, here "PLC_PRG:bTrigger:=TRUE;". Likewise the
button "Reset" is connected with a reset of the trace by setting the trigger variable to
FALSE again (here "PLC_PRG.bTrigger:=FALSE;") and enabling a reset (e.g.
"PLC_PRG.bReset:=TRUE;").
The third button entitled "Load" allows a modification of the trace displayed without
having to logout from the corresponding application. Therefor, the attached ST-Code
to be executed includes not only setting the trigger variable to "FALSE", but also
enables the boolean variable bLoad being part of the implicit generated component
"<Tracename>_<Recordname>_VISU" and controlling the load of a trace configuration
file, e.g. "Trace_MainTask_VISU.bLoad:=TRUE;". Setting this variable to TRUE involves
the loading of a trace configuration file (with default ending .tcg), which has to be
stored in the directory of the runtime system. The trace visualization (and the trace
itself) are adapted to the configuration within this file. See BELOW for a description of
the configuration file.
The button "Save" allows to save the actual trace data displayed in the trace
visualization. Therefor, the attached ST-Code to be executed includes not only setting
the trigger variable to "FALSE", but also enables the boolean variable bSave being part
of the implicit generated component "<Tracename>_<Recordname>_VISU", e.g.
"Trace_MainTask_VISU.bSave:=TRUE;". Setting this variable to TRUE involves the
generation of a data file <Tracename>_<Recordname>.tda within the directory of the
runtime system. The data file will contain the actually displayed values of the traced
variables and can later be reloaded in a trace.

Advertising