At a Glance

A breakpoint can be used to stop the execution of the task at the point at which it was set.

During debugging it can be used:

  • to examine the behavior of the code,

  • to view the value of variables.

There is a single breakpoint at a given point in the project. This is not saved and is lost on disconnection from the PLC.

It is implemented in online mode, regardless of whether the PLC is in Run or in Stop.

NOTE: It is not possible to set a breakpoint in an event task.

Element Used for Setting a Breakpoint

The program element which can be used to set a breakpoint is the rung or a Sub-Routine (SR) or user function block (DFB) call within a rung.

In other words, the following program section:

How to Insert a Breakpoint

Carry out the following actions:

Step

Action

1

For example, select a contact in the rung.

2

Set the breakpoint:

  • by selecting the Debug->Set Breakpoint command from the menu,

  • by selecting the Set Breakpoint command from the contextual menu,

  • or by selecting the button in the debug toolbar.

Example:

NOTE: Inserting a new breakpoint automatically clears the old one.

From the menu, select the Debug->Show Breakpoint command to locate the breakpoint by displaying the section where it has been set in the language editor.

How to Delete a Breakpoint

Either you can:

  • select the Debug->Clear Breakpoint command from the menu,

  • or select the button in the debug toolbar.

Erasing a breakpoint does not restart the task. To do this, you have to press .