Specific configuration for Profinet

This section describes the steps required to set up the hardware for communication via Profinet.

GSDML

The interface description for ProfiNet connection is defined via the GSDML file. After installing the Debian package mikado-profinet, this file can be found under the following path:

/opt/cifx/gsdml/GSDML-V2.35-HILSCHER-CIFX RE PNS-20190108.xml

The following Profinet IO device of the GSDML must be integrated into the master:

CIFX RE/PNS V3.5 - V3.5.x

The Mikado controller provides the following input/output layout. Inputs and outputs are defined from the perspective of the Profinet master:

  • 64 byte inputs

  • 64 byte outputs

Byte sequence

The byte sequence corresponds to the Siemens big-endian convention. When interpreting the words, a byte swap must therefore take place depending on the configuration of the master system.

Data types

In principle, data is transmitted word by word, i.e. in 2-byte packets. As mentioned above, the big-endian byte sequence must be observed when interpreting the data. The following data types are possible:

  • Bits: The word is broken down into 16 individual bits, whereby each bit is interpreted as a bool.

  • Integer: The word is interpreted as an integer.

  • Double: Two words (32 bits) are interpreted together as a floating point number.

  • Pose: 12 words which are interpreted as six double values (X,Y,Z,R1,R2,R3).

  • PoseList (Mikado to PLC only): 14 words, which are interpreted as six double values and two integer values:

    - X Double: x-Wert der Pose an Stelle Idx
    - Y Double: y-Wert der Pose an Stelle Idx
    - Z Double: z-Wert der Pose an Stelle Idx
    - R1 Double: R1-Wert der Pose an Stelle Idx
    - R2 Double: R2-Wert der Pose an Stelle Idx
    - R3 Double: R3-Wert der Pose an Stelle Idx
    - Len Integer: Länge der PoseList
    - Idx Integer: Index der zurückgegebenen Pose innerhalb der PoseList

    When a PoseList variable is read several times, the index Idx is incremented and the first 6 values change accordingly.
  • StringList (Mikado to PLC only): 4 words, which are interpreted as one double value and two integer values:
    - Val Double: Zu Double konvertierter Wert der StringList an Stelle Idx
    - Len Integer: Länge der StringList
    - Idx Integer: Index des zurückgegebenen Strings innerhalb der StringList

    When a StringList variable is read several times, the index Idx is incremented and the first value changes accordingly.

Standard word assignment

For the most part, the words used function to transfer the values of Mikado variables. The words marked in grey in Figure Overview of the standard assignment of input and output byte arrays, whose values are set independently of the Mikado program, are excluded from this.

../../_images/standard_words.png

Overview of the standard assignment of input and output byte arrays