Command 'Force Function Block Input'Permalink

NOTICE

NOTICE
NOTICE
NOTICE

NOTICE

NOTICE

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:

  • CFC

  • 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 function block 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

Table 578: “What do you want to do?”

“Set a new value to force”

_cds_icon_radiobutton_activated: 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: Forcing at the input is canceled.