Command ‘Force Values’

Keyboard shortcut: F7

Function: The command sets a permanent predefined value to a variable on the controller.

Call: Menu bar: Debug

Requirement: The application is in online mode.

Caution

Unusual changes to variable values in an application currently running on the controller can lead to undesired behavior of the controlled machinery. Evaluate possible dangers before forcing variable values. Take the respective safety precautions. Depending on the controlled machinery, the result may lead to damage to machinery and equipment or injury to health and life of personnel.

With this command, CODESYS permanently sets one or more variables of the active application to defined values on the PLC.

A forced value is marked with the forced symbol ().

For more information about the functionality of forcing and the p of values, see the “Forcing and Writing of Variables” help page.

Note

By default, the Force Values [All Applications] command, which applies to all application in the project, and is not included in a menu.

See also