This is an example application that uses in the runtime mode the PmInstance objects. The PmPrototype (template) containing the PmPanel, PmData, PmTrend subobjects is copied into the instances. The example is designed not to exceed the limit of 30 variables and 10 graphic panels (see PmRtFree - Free runtime license).
The objects named Boiler_Instance1, Boiler_Instance2 .. are connected to the PmPrototype object named Boiler_Prototype on the Instance page of the Template configurator. In the PROMOTIC object parameters configurator the parameter name (boil) is defined together with the corresponding value (1,3,3). The parameter name is identical with the parameter in the PROMOTIC object parameters configurator of the PmPrototype object and the value is crucial for identification in the folowing configuration of data, trends and alarms for the corresponding boiler.
The object named Boiler_Prototype has a parameter named boil set to 0 in the PROMOTIC object parameters configurator.
The object has an expression composed by Macro expression $const - obsolete and Macro expression $.par on the Main page in the Group identifier and Displayed group title configurators. The configurators Parent enabled and Parent are connected to parent PmAlarmEvent.
The object has two variables TemperCurrent and TemperRequired created on the Data page. One of them is connected via ExtAlarmAnalog to the PmAlarmEvent object with the template alarm0. There are configurators in the setup window of this data extension Data extension identifier and Alarm source composed into macro expression by Macro expression $const - obsolete and Macro expression $.par. Both variables are connected to the PmTrend object by ExtTrend.
There is a PmiRoot graphic item in the panel with parameter named boil with initial value of 0.
The panel contains both simple and compleg graphic items. The PmiText graphic items are connected by the Data binding PP - Binding to PROMOTIC object property data binding to the data of the PmData object. The PmiSliderPane graphic item is connected by the Data binding PP - Binding to PROMOTIC object property data binding to the TemperRequired variable of the PmData object. The trend viewer has static trend item configured without the connection to the server. The connection to the trend server is configured dynamicaly in the onStart event by the Connect method. In the third parameter of this method the GetPar method is used in order to detect the value of the boil panel parameter. Based on this, the viewer is connected to corresponding trend group.
The panel is configured as overview screen containing identical compound graphic items representing the boiler. The items differ only by the value of the parent item parameter. The embedded graphic items use this parameter in order to connect to the corresponding data items.