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:-XDouble: x-Wert der Pose an StelleIdx-YDouble: y-Wert der Pose an StelleIdx-ZDouble: z-Wert der Pose an StelleIdx-R1Double: R1-Wert der Pose an StelleIdx-R2Double: R2-Wert der Pose an StelleIdx-R3Double: R3-Wert der Pose an StelleIdx-LenInteger: Länge der PoseList-IdxInteger: Index der zurückgegebenen Pose innerhalb der PoseListWhen a PoseList variable is read several times, the indexIdxis 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:-ValDouble: Zu Double konvertierter Wert der StringList an StelleIdx-LenInteger: Länge der StringList-IdxInteger: Index des zurückgegebenen Strings innerhalb der StringListWhen a StringList variable is read several times, the indexIdxis 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.
Overview of the standard assignment of input and output byte arrays¶