Defining Class 1/2/3 Items
Class 1/2/3 items are defined by the modifiers :c1, :c2, or :c3. They read their objects with a class 1/2/3 poll, which returns values for all objects in class 1/2/3 whose values have changed since the last class 1/2/3 poll. The object must be in the class specified by the modifier, and collection of that class must be enabled at the device. Otherwise, responses to the class 1/2/3 polls will never contain a value for that item.
...
Note |
---|
Items using the :c1, :c2, and :c3 modifiers can also be updated by class 0 polls as described in the sections below. It’s not necessary or correct to define the same item again with a :c0 modifier. |
Initializing Class 1/2/3 Items
Any object in class 1/2/3 will also be in class 0. When class 1/2/3 items are first activated, they'll be initialized with a class 0 data integrity check poll, unless the option "No class zero poll to initialize items" is checked in the Device tab.
There's also an option in the Device tab called "Initialize class 1-3 after comm failure". Since class 1/2/3 polls only return values for objects that have changed since the previous class 1/2/3 poll, if the class 1/2/3 items are invalidated after a communication failure, by default they won't become valid again until their values change in the device. Selecting this option will send a class 0 data integrity check poll to initialize the class 1/2/3 items after a communication failure, so that all class 1/2/3 items will become valid again immediately when communication is restored.
The Data Integrity Check Item
The item DataIntegrityCheck sends a class 0 poll, and updates all items activated for the device with the data from that class 0 poll, regardless of what modifiers those items have. This item can be used to perform class 0 data integrity checks on a polling interval. To prevent data integrity checks from being performed by demand polls as well, check the option “No No data integrity check in demand poll” poll on the Device tab.
Using Class 1/2/3 Items with Class 0 Items
Note |
---|
The class 0 polls that are sent on interval and by demand for items using the :c0 modifier will only update items using :c0, not the items that use other modifiers. |
...