Creating a Device Template on the Basis of Field Devices or I/O Modules

Overview

You can create device templates based on field devices or I/O modules. The following description applies to field devices as well as to I/O modules even though only the term field device is used to increase readability.

The following paragraphs list:

  • The criteria that must be fulfilled in order to save a field device or I/O module, including logic and visualization, as device template;

  • The information that is saved in the device template.

Prerequisites for Field Devices

The field devices must meet the following criteria in order to be saved as device templates:

  • Field devices must be linked to the fieldbusses listed in the Supported Fieldbusses list;

  • The device type must be installed in the Device Repository.

Prerequisites for I/O Modules

Only the supported I/O modules can be saved as device templates.

Prerequisites for the Application

You can only create templates from correct applications. Correct means that no errors are detected during the Build process.

Prerequisites for Including Control Logic into a Template

In order to include control logic into a template, the control logic must contain one or more code sections that exchange data with the field device. This control logic must be executed (added to a task or called by another program). Otherwise, it is not taken into account when executing the Generate Code command.

Device Information Saved in Device Templates

The following information of field devices is saved in device templates:

  • Device configuration

  • I/O mapping of the field device

  • Visualizations that are suitable for the field device

  • Control logic exchanging data with the field device