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

Page 152

Advertising
background image

L-force | PLC Designer

Quickstart

150

DMS 4.1 EN 03/2011 TD29

Do the same for the further variables. The watch list shown in the next picture just
contains expressions of PLC_PRG, but of course you might create a set of any variables
of your project. Notice that for instance variables, for example for the FB1-instances, it
is sufficient to enter the expression "PLCWinNT.Application.PLC_PRG.fbinst". The
particular variables will be entered automatically and the corresponding lines can be
opened via the plus-symbol: The current value of a variable is displayed in the 'Value'
column:

If not yet done, now select the application object and perform command Start from
the context menu. The application will be started on the PLC and the current value will
be displayed in column Value:

Writing and forcing values is also possible here like described above in 2.
To disconnect from the PLC perform command Logout from the Online menu.

Debug an application
(11) Set breakpoint and step through the program
In online mode you can set breakpoints as defined halt positions for the program
execution.
When the program has reached a breakpoint you can execute the program in single
steps. At each halt position you see the current value of the variables in the monitoring
views.
Try the following:
Select line 1 of PLC_PRG. Press key <F9>, which equals the command Toggle
Breakpoint
from the Debug menu.
The breakpoint will be indicated.
If the application currently is in STOP state, this will look like:

Advertising