315-4PN33

n RUN-LED on
n STOP-LED off
The CPU offers up to 3 breakpoints to be defined for program diag-
nosis. Setting and deletion of breakpoints happens in your program-
ming environment. As soon as a breakpoint is reached, you may
process your program step by step.
For the usage of breakpoints, the following preconditions have to be
fulfilled:
n Testing in single step mode is possible with STL. If necessary
switch the view via ‘View è STL
to STL.
n The block must be opened online and must not be protected.
1.
Activate ‘View è Breakpoint Bar
.
2. Set the cursor to the command line where you want to insert a
breakpoint.
3.
Set the breakpoint with ‘Debug è Set Breakpoint’.
ð
The according command line is marked with a circle.
4. To activate the breakpoint click on ‘Debug
è Breakpoints Active’.
ð
The circle is changed to a filled circle.
5. Bring your CPU into RUN.
ð
When the program reaches the breakpoint, your CPU
switches to the state HOLD, the breakpoint is marked with
an arrow and the register contents are monitored.
6. Now you may execute the program code step by step via
‘Debug è Execute Next Statement’
or run the program until the
next breakpoint via ‘Debug è Resume’.
7. Delete (all) breakpoints with the option ‘Debug
è Delete All Breakpoints’.
n The RUN-LED blinks and the STOP-LED is on.
n The execution of the code is stopped. No level is further executed.
n All times are frozen.
n The real-time clock runs is just running.
n The outputs were disabled (BASP is activated).
n Configured CP connections remain exist.
The usage of breakpoints is always possible. Switching to
the operating mode test operation is not necessary.
With more than 2 breakpoints, a single step execution is
not possible.
Operating mode HOLD
Precondition
Approach for working
with breakpoints
Behavior in operating
state HOLD
VIPA System 300S Deployment CPU 315-4PN33
Operating modes > Overview
HB140 | CPU | 315-4PN33 | GB | 14-43 55