The shared variable deadband settings that you can control directly are the update deadband, logging deadband, and alarm deadband.
 |
Note You can set deadbands only for network-published shared variables with a Data Type of Double. |
Complete the following steps to set the shared variable deadband values.
- 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.
- Set the update deadband.
- In the Shared Variable Properties dialog box, select Update Deadband from Category list to display the Update Deadband page.
- Place a checkmark in the Enable Update Deadband checkbox.
- Enter values in the User Deadband (% of range) field and the Source Deadband (% of range) field.
- (Optional) Set the logging deadband.
- In the Shared Variable Properties dialog box, select Logging from Category list to display the Logging page.
- Place a checkmark in the Enable Logging checkbox.
- Verify that a checkmark is in the Log Data checkbox.
- Enter a value for the deadband in the Value Deadband field to set the logging deadband.
- (Optional) Set the alarm deadband for shared variables with a Data Type of Double.
- In the Shared Variable Properties dialog box, select Alarming from Category list to display the Alarming page.
- Place a checkmark in the Enable Alarming checkbox.
- Click the Configure button to display the Configure Double Alarms dialog box.
- Enter values in the Deadband fields for the alarm(s) to set the alarm deadband.
- Click the OK button to close the Configure Double Alarms dialog box.
- Click the OK button.
You also can use the SharedVariableIO properties to set alarm and logging deadbands programmatically.