Syntax

interface IDeviceApplicationType

{

  type: string;

  name?: string;

  protected?: boolean;

}

 

interface IPlantSettings

{

  /** Name or ID of the plant */

  plantName: string;

 

  /** Description or comment of the plant */

  plantDescription?: string;

 

  /** License key which to use for product activation */

  licenseKey?: string;

 

  /** Predefined application types */

  applicationTypes: IDeviceApplicationType[];

 

  /* Time to wait during network communication */

  netTimeout?: number

 

  /* Interval for a scan of the plant network */

  scanInterval?: number

 

  /* Time of day when to start a scan */

  scanTime?: number

 

  /* Enable to detect new devices which are found under a route with former other asset id */

  enableDeviceChangeDetection: boolean;

 

  /* Groups are updated when routes of known asset changed */

  updateDeviceInGroupOnRouteChange: boolean;

 

  /* Use readen profinet names and place it into device reference designation */

  useProfinetNameAsReferenceDesignation: boolean;

 

  /* Only upload data events that has any data */

  discardEventsWithErrors: boolean;

 

  /* Shows warnings when metadata is incomplete; default depends on license */

  showMetadataWarnings?: boolean;

}

 

Code example of a plant template:

{

  plantName: "SEW plant",

  scanTime: 86400,

  licenseKey: "AAAA-AAAA-AAAA-AAAA-AAAA",

  applicationTypes: [

    {

       type: "sew conveyor",

       name: "conveyor systems for automobile production"

    },

  ],

  showMetadataWarnings: true

}