Configuration of DIAP for Siemens S5 and S7 (Profibus)

Prerequisites

In order to use Siemens Profibus and S5, additional hardware is required. Please see the article Configuration IBH link for Siemens Profibus and S5 for specification and configuration details.

PLC configuration

This is a short introduction only. Please refer to the article Configuration of PLCs for a complete guide.

  1. Select IBH link S5/S7 to communicate with an S5 or Profibus PLC.
  2. Subsequently, specify the IP of the IBH link.

Tag configuration

  1. Add a tag by clicking "+ Add new tag"
  2. Specify the resource type (DB/Input/Output etc.). Please find a "translation" from Siemens datatypes into DIAP generalized datatypes in the table at the end of this document.

The definition of the tag depends on the Resource type and Datatype that you select. For DBs you need to specify the DataBlock (DB) number and Start address.

If you select a datatype with adjustable size, you need to set the Length (in bytes).

If you select a Boolean expression, you have to specify the Bit position.

Datatype table

Siemens DIAP
BOOL Binary tag
WORD Unsigned 16-bit
DWORD Unsigned 32-bit
INT  Signed 16-bit
DINT Signed 32-bit
REAL FP 32-bit
TIME Time
DATE Date
CHAR  Text tag 16 or 8 bit