Command ‘Force FB input’

Hint

This kind of forcing uses a data breakpoint internally and is therefore different from forcing with the Force values command or F7.

Values that were forced by the command Force FB input do not respond to the commands Show all forces or Unforce values.

Function: This command opens the Force value dialog to force the selected input of a function block. Forcing can be canceled with the same command and dialog.

Call:

Requirements: The “forcability” of the function block is activated (by the command Prepare box for forcing). The CFC editor is in online mode and the input of the function block is selected in the CFC editor.

In the Force value dialog, you can either specify a value that the input of the function block should be forced, or remove the currently forced value.

After forcing, the input is highlighted in green again. Boolean inputs get a small monitoring view with the forced value. The forced value is displayed in the Value column of monitoring views (in the declaration part of the POU or in a watch list).

Dialog ‘Force value’

Expression Name of the function block input. Example: TON_1.IN.
Type Data type of the input
What do you want to do?
Set a new value to force : You can specify a new value in the input field. The format must correspond to the data type.
Remove value : Forcing at the input is canceled.

See also