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
- To force the value of an I/O variable from the I/O wiring:
- Right-click the device in theApplication View, then selectI/O Wiring.
- Select the simple I/O device in the rack list. Expand complex I/O devices to access the simple I/O devices.
- Double-click the the channel variable from the channel variables list.
- Lock the variable and enter the value in theWritedialog box:
- For an input variable, enter the logical value, then selectWrite.
- For an output variable, enter the physical value, then selectWrite.
- To force the value of an I/O variable from the global variables grid:
- Right-clickGlobal Variablesin theApplication View, then selectOpen.
- Double-click the variable name in the variables grid.
- Lock the variable and enter the value to force in theWritedialog box:
- For an input variable, enter the logical value, then selectWrite.
- For an output variable, enter the physical value, then selectWrite.
- To force the value of an I/O variable from a spy list:
- From theViewmenu, selectWatch, then the spy list.
- Double-click the leftmost cell for the variable in the spy list.
- Lock the variable and enter the value in theWritedialog box:
- For an input variable, enter the logical value, then selectWrite.
- For an output variable, enter the physical value, then selectWrite.
Provide Feedback