Skip to main content

Command: Force Function Block Input

Important

This kind of forcing uses a data breakpoint internally and is therefore different from forcing with the Force Values command or the F7 key. Values which have been forced with the Force Function Block Input command do not respond to the Watch All Forces or Unforce All Values commands.

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: CFC menu; context menu

Requirements:

  • The CFC editor is in online mode and the input of the function block is selected.

  • For compiler versions 3.5.11.x and 3.5.12.x, the "forceability" of the box is enabled by the Prepare Box for Forcing command.

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

Expression

Name of the function block input

Example: TON_1.IN

Type

Data type of the input

Table 1. What do you want to do?

Set a new value to force

_cds_icon_radiobutton_activated.png: You can specify a new value in the input field. The format has to correspond to the data type.

Remove value

_cds_icon_radiobutton_activated.png: Forcing at the input is canceled.