Skip to main content
Version: 4.0

Entity Model Example

This section uses the example of Furnace in the plant to demonstrate the creation of entity model.

TemplateTemplate AttributeInstanceInstance Attribute
FurnaceTemperatureFurnace AHumidity, pressure

Creating Entity Template

  1. Log in to supOS, and then click to go to the design center.
  2. Select Object Model Management > Object Template > Entity Template.
  3. Click next to Entity Template, and then enter the basic information of the template.
ParameterDescription
Template NameFurnace.
AliasThe unique ID of the template. Generated by default and can be customized.
TagsAdd tags to the template from Tag Management for easy search and categorization.
Main Display FieldsUsed as keywords when searching for instances under the template during instance attribute binding.
APPIndicates the template is created on supOS or applications. system means the template is created on supOS.
Visible to Other APPsSelect whether the current template can be displayed on all applications.
Function SetsSelect a function set to endow its features to the template.
  1. Click Attributes, add Temperature as attribute.
    1. Set the basic information of the template property.
      ParameterDescription
      NameTemperature
      TypeDouble or float. Attribute data type.
      Data SourcesLeave it as empty.
      Read and Write StatusSelect whether the value can be changed by script. If Read Only is selected, you can only change the value through Default Value.
      PersistenceSelect whether to synchronize the value changes to supOS.
      HistorySelect whether to keep all change records of the value for future analysis.
      Compression ParametersWhen History is enabled, enable Compression Parameters, set Compression Value and Maximum Upload Cycle to reduce the space that history records take up.
      info
      • The higher the Compression Parameters, the heavier the data is compressed.
      • No matter how high the Compression Parameters is, the time interval of collecting data cannot exceed Maximum Upload Cycle.
      Upper Range Limit/Lower Range Limit/Unit/DecimalAttributes of different types of data. Click Configure to customize units.
      tip

      Click Binding Relationship on the Attributes page, drag attributes from the right side to the left to bind them.

    2. Click the Alarm rules tab, and then click New to add an alarm that will be triggered when the temperature is higher than 85°C.
      • Set Condition to > and Limit to 85.
      • Set a buffer temperature of 5 by selecting Value to be Dead Zone Type and entering 5 under Dead Zone Value. An alarm will go off when the temperature hits 80°C.