Force the value of an I/O variable

When debugging, force the values of locked I/O variables from the I/O wiring, the global variables grid, or a spy list. The direct representation definition for the I/O wiring determines the variable direction.
To force the value of an I/O variable
  1. To force the value of an I/O variable from the I/O wiring:
    1. Right-click the device in the
      Application View
      , then select
      I/O Wiring
      .
    2. Select the simple I/O device in the rack list. Expand complex I/O devices to access the simple I/O devices.
    3. Double-click the the channel variable from the channel variables list.
    4. Lock the variable and enter the value in the
      Write
      dialog box:
      • For an input variable, enter the logical value, then select
        Write
        .
      • For an output variable, enter the physical value, then select
        Write
        .
  2. To force the value of an I/O variable from the global variables grid:
    1. Right-click
      Global Variables
      in the
      Application View
      , then select
      Open
      .
    2. Double-click the variable name in the variables grid.
    3. Lock the variable and enter the value to force in the
      Write
      dialog box:
      • For an input variable, enter the logical value, then select
        Write
        .
      • For an output variable, enter the physical value, then select
        Write
        .
  3. To force the value of an I/O variable from a spy list:
    1. From the
      View
      menu, select
      Watch
      , then the spy list.
    2. Double-click the leftmost cell for the variable in the spy list.
    3. Lock the variable and enter the value in the
      Write
      dialog box:
      • For an input variable, enter the logical value, then select
        Write
        .
      • For an output variable, enter the physical value, then select
        Write
        .
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal