Command ‘Force Function Block 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: The 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:

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 has to correspond to the data type.

Remove value

: Forcing at the input is canceled.

See also