Skip to main content

Command: Write Values

Keyboard shortcut: Ctrl+F7

Function: The command sets a one-time predefined value to a variable on the controller.

Call: Debug menu

Requirement: The application is in online mode.

Unusual changes to variable values in an application currently running on the controller can cause undesired behavior of the controlled plant.

Evaluate possible dangers before forcing variable values, and take the respective safety precautions. Depending on the controlled plant, this could result in damage to the plant or the workpieces, or injury or death of personnel.

With the command, you set one or more variables of the active application to defined values on the controller one time. Writing is done one time at the beginning of the next cycle.

. You can prepare values as follows:
  • Click in the Prepared Value field in the declaration part and type in the value. For Boolean variables, you change the value by clicking the field.

  • Click in the inline monitoring field in the implementation part of the FBD/LD/IL editor.

  • Click in the Prepared Value field in the monitoring view and type in the value.

Tip

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

For more information, see: Forcing and Writing of Variables