In online mode, the CFC editor provides views for monitoring, writing and forcing the variables and expressions on the controller. The debugging functionality (breakpoints, stepping, and so on) is available as described below.
For information on how to open objects in online mode, refer to the description of the user interface in online mode.
The editor window of a CFC object also includes the declaration editor in the upper part. Refer to the description of the declaration editor in online mode.
For information on how to edit parameters in the CFC editor, refer to the description of the command.
The actual values are displayed in small monitoring windows behind each variable (inline monitoring).
Online view of a program object PLC_PRG:
Note for the online view of a function block POU, that monitoring is only possible in an instance view. In the base implementation of the function block POU, no values are displayed. The column
contains the text and the inline monitoring fields in the implementation part show three question marks each.Boolean connections are monitored in the colors TRUE = blue and FALSE = black.
In online mode, you can prepare a value for forcing or writing a monitored variable either in the declaration editor or - if the option Declaration Editor in Online Mode. In the implementation part, click the monitoring box next to the respective element or directly the element to open the dialog box. For boolean variables, no dialog box opens, but clicking the value currently displayed next to the variable directly toggles between the possible values to be forced or written. In the monitoring box of a currently forced variable a red is displayed.
is activated - also in the implementation part. For working in the declaration editor, refer to the chapterForced value in the implementation part
If the CFC option
is enabled, then the value currently prepared for writing or forcing is displayed behind the current value in angle brackets in the monitoring field of a variable.Prepared value in the implementation part
The possible breakpoint positions basically are those positions in a POU at which values of variables can change or at which the program flow branches out or another POU is called. See possible positions in the following image.
Breakpoint positions in CFC editor: