Command ‘Force Values’ΒΆ

Keyboard shortcut F7

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

Call: Main menu 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 controller. This is done at the beginning and end of a processing cycle. Processing sequence: 1) read inputs, 2) force values, 3) process code, 4) force values, 5) write outputs.

You can prepare values as follows:

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

CODESYS forces the value until you explicitly lift it by

Note

The command Force Values [all applications] affects all application in the project and is not included in a menu by default.

See also