Setting breakpoints for the calls of blocks and value fields

A →breakpoint can be set for the following FBD-elements within the →graphical FBD-editor:

How to set a breakpoint for the call or the value field:

  1. Select the FBD-elements for that you want to set a breakpoint.

  2. From the context menu of the FBD-editor, select Toggle Breakpoint. Alternative: Press Ctrl+Shift+B.
    The icon images/download/thumbnails/413893548/BreakpointFBD-version-1-modificationdate-1533821317957-api-v2.png for the FBD-elements informs that a breakpoint has been set.
    Example for the call of the SEL block with a breakpoint:
    images/download/thumbnails/413893553/BreakpointFBDExample-version-1-modificationdate-1533821338901-api-v2.png

If you want to remove the breakpoint afterwards, select Toggle Breakpoint again or press Ctrl+Shift+B again.

When debugging, the execution might not be suspended for each breakpoint that has been set for an FBD-element. This behavior is caused by the optimization of the C-code that is created when the FBD-logic is saved .

Examples for such breakpoints for which the execution is not suspended :

  • breakpoint for a value field following the call of a string function (e.g. the call of the FIND block)

  • breakpoint for a value field following the call of a system block that calculates arrays with 2 dimensions (e.g. the call of the SUB_2D_ARRAY block)