Force all values from <Device.Application>

Overview

The Force all values from <Device.Application> command is available in online mode in the contextual menu of an application or in the contextual menu of a POU editor of the application. It sets the values of variables of the active application to predefined values on the controller at the beginning and end of a processing cycle.

 WARNING
UNINTENDED EQUIPMENT OPERATION
  • You must have a thorough understanding of how forcing will affect the outputs relative to the tasks being executed.
  • Do not attempt to force I/O that is contained in tasks that you are not certain will be executed in a timely manner, unless your intent is for the forcing to take affect at the next execution of the task whenever that may be.
  • If you force an output and there is no apparent affect on the physical output, do not exit the online mode without removing the forcing.
  • If the online mode was interrupted while forcing was active, re-establish the connection with the controller and remove the forcing.
Failure to follow these instructions can result in death, serious injury, or equipment damage.

Sequence of Commands in a Cycle

Step

Action

1

Read inputs

2

Force values

3

Execute code

4

Force values

5

Write outputs

NOTE: The command Force all values from <Device.Application>, is not by default inserted in any menu (if needed, see the Customize dialog box).

Preparing Values for Forcing

You can prepare values for forcing as follows:

  • Click the Prepared value field in the declaration part and enter the value. For Boolean variables, toggle the value by clicking the field.

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

  • Click the Prepared value field in the monitoring view, and enter the value.

A forced value is indicated by the symbol.

Release Forcing

A value is forced until forcing is released by performing one of the following tasks:

  • Executing the command Debug > Unforce values.

  • Executing the command Unforce all values from <Device.Application> from the contextual menu of the application.

  • Releasing the force in the Prepare Value dialog box.

  • Logging out of the application.