You can scale the value of a shared variable with a Data Type of Boolean.
 |
Note You can use scaling only for network-published shared variables. The shared variable you want to scale also must have a data source. Configure a shared variable to have a data source by placing a checkmark in the Bind to Source checkbox on the Variable page of the Shared Variable Properties dialog box. |
Shared variables with a Data Type of Boolean can have invert scaling. Complete the following steps to scale Boolean shared variables.
- Right-click a target or a project library in the Project Explorer window and select New»Variable from the shortcut menu. You also can right-click an existing shared variable in the Project Explorer window and select Properties from the shortcut menu to display the Shared Variable Properties dialog box.
- In the Shared Variable Properties dialog box, select Scaling from Category list to display the Scaling page of the Shared Variable Properties dialog box.
- Place a checkmark in the Enable Scaling checkbox.
- Place a checkmark in the Invert checkbox for the Shared Variable Engine to invert the Boolean value when the Shared Variable Engine communicates with the device server.
- Click the OK button to close the Shared Variable Properties dialog box.
Use the SharedVariableIO properties to scale Boolean shared variables programmatically.