6. Create and assign marker rules within the states
Now for each state, a marker rule has to be created, that is specifically valid when the corresponding state applies according to the state indicator. This means, that in this example the marker rule for the state „OFF“ (SI_00) is valid, when the state indicator displays the value 0. For the state „Normal“ the corresponding marker rule (SI_01) is valid, when the state indicator displays the value 1 and so forth.
The marker rule can be created by right-clicking on the individual states via „New“ and „Rule“. The marker rules should be named adequately, e.g. SI_00, SI_01 and SI_02. Following, the marker rules can be defined in the editor window in „Definition“. In the state „OFF“, the marker rule should be valid when the facility persist in this state according to the state indicator. Therefore, in this marker rule the state indicator should be set equal to 0.
Demo_Workspace_en.Heating_Circuit.HC02.AFS.SS01.SI_virtual == 0
The state indicator is a virtual sensor. Virtual sensors as well as time routines can be directly used in rule definitions by drag&drop (no creation of an identifier with its reference variable is needed beforehand).
Also the newly defined and saved marker rule SI_00 appears in form of a virtual sensor in the section „Data Points“. Now the states can be opened in the editor window by a double-click. In „Configuration“ the corresponding marker rule can be assigned to „Marker Rule“ by drag&drop. For the state „OFF“ it would be the marker rule „SI_00“.