How to Configure RevPi Gate for PROFINET (Core)

Setting Station Name

Since names are easier to handle than complex IP addresses in most cases, you can assign a station name to the gateway component.

You set the station name using the software of your PROFINET controller.

According to the definition RFC 5890, attention must be paid to the name assignment rules in this regard:

  • Data should be specified in the Octet string type
  • Restriction to a total of 240 characters (letters “a” to “z”, numbers “0” to “9”, hyphen or dot)
  • A name element of the device name must be separated with a dot and can have a maximum of 63 characters.
  • No special characters such as umlauts, brackets, underscore, blank etc.
  • The hyphen is the only special character allowed.
  • The device name must not begin or end with a dot.
  • The device name must not begin with numbers.
  • The device name must not have the form n.n.n.n ( n = 0…999 ).
  • The device name must not begin with the character string “port-xyz-” ( x,y,z = 0…9 ).
  • The device name may only begin with “xn-” if the original character string contains values other than “0” to “9” and “a” to “z”.
  • The field “NameOfStationValue” must not end with 0.

Examples of valid names:

“device -1.machine- 1.plant- 1.vendor” “mühle1.ölmühle1.plant.com” is coded as ” xn–mhle1-kva.xn–lmhle1 -vxa4c.plant.com”

Exchanging Data cyclically

To configure the gateway component, you have to perform the appropriate settings with the configuration software of your PROFINET -Controller.

The gateway component is equipped with virtual slots (installation positions). PROFINET controllers use these slots to address selected process data. Each slot contains one module. You can assign process data to these modules that are to be exchanged.

 

SlotModuleIdOffset
0DAP0x80050000
1Input 160x00000005Output Off 0
2Input 160x00000005Output Off 16
3Input 320x00000006Output Off 32
4Input 320x00000006Output Off 64
5Input 320x00000006Output Off 96
6Input 640x00000007Output Off 128
7Input 640x00000007Output Off 192
8Input 640x00000007Output Off 256
9Output 160x00000050Input Off 0
10Output 160x00000050Input Off 16
11Output 320x00000060Input Off 32
12Output 320x00000060Input Off 64
13Output 320x00000060Input Off 96
14Output 640x00000070Input Off 128
15Output 640x00000070Input Off 192
16Output 640x00000070Input Off 256

Info!The gateway component supports only a submodule with data per module.

In the following tables you will find a detailed overview of all modules.
DAP (Device Acess Point)

DescriptionDAP
Module ID0x80050000
Usable in Slot0
Total Number of Input Bytes0
Total Number of Output Bytes0
Number of Submodules3

Submodule for Record Access

Submodule ID0x00000001
Subslot0x0001
Number of Input Bytes0
Number of Output Bytes0

Submodule that represents the entire Profinet Device

Submodule ID0x0000000a
Subslot0x8000
Number of Input Bytes0
Number of Output Bytes0

Submodule that represents Port 1

Submodule ID0x0000000b
Subslot0x8001
Number of Input Bytes0
Number of Output Bytes0

Submodule that represents Port 2

Submodule ID0x0000000c
Subslot0x8002
Number of Input Bytes0
Number of Output Bytes0

Input 16 Byte

DescriptionInput 16 Byte
Module ID0x00000005
Usable in Slot1 – 8
Total Number of Input Bytes16
Total Number of Output Bytes0
Number of Submodules1

 

Submodule ID0x00000001
Subslot:0x0001
Number of Input Bytes16
Number of Output Bytes0

Input 32 Byte 

DescriptionInput 32 Byte
Module ID0x00000006
Usable in Slot1 – 8
Total Number of Input Bytes32
Total Number of Output Bytes0
Number of Submodules1

 

Submodule ID0x00000001
Subslot0x0001
Number of Input Bytes32
Number of Output Bytes0

Input 64 Byte

DescriptionInput 64 Byte
Module ID0x00000007
Usable in Slot1 – 8
Total Number of Input Bytes64
Total Number of Output Bytes:0
Number of Submodules1

 

Submodule ID0x00000001
Subslot0x0001
Number of Input Bytes64
Number of Output Bytes0

Output 16 Byte

DescriptionOutput 16 Byte
Module ID0x00000050
Usable in Slot1 – 8
Total Number of Input Bytes0
Total Number of Output Bytes16
Number of Submodules1

 

Submodule ID0x00000001
Subslot0x0001
Number of Input Bytes0
Number of Output Bytes16

Output 32 Byte

DescriptionOutput 32 Byte
Module ID0x00000060
Usable in Slot1 – 8
Total Number of Input Bytes0
Total Number of Output Bytes32
Number of Submodules1

 

Submodule ID0x00000001
Subslot0x0001
Number of Input Bytes0
Number of Output Bytes32

Output 64 Byte

DescriptionOutput 64 Byte
Module ID0x00000070
Usable in Slot1 – 8
Total Number of Input Bytes0
Total Number of Output Bytes64
Number of Submodules1

 

Submodule ID0x00000001
Subslot:0x0001
Number of Input Bytes0
Number of Output Bytes64

Exchanging Data acyclically

The gateway component supports records. This access type is useful for all events that do not have to be repeated regularly (e.g. sending parameter data in the start-up phase).

Another benefit of records is due to the fact that you can write continuously ascending areas at once.

Example:. Index 0x1005 writes byte 10 to byte 19 with 10 bytes of data in the output process mapping.

You can use all 512 bytes of the input and output area to read or write records.

PLEASE NOTE

Bear in mind that the first 320 bytes of the input and output area are used for cyclical data transmission.

Records that you address with index 0x0000 – 0x00ff or 0x1000 – 0x10ff, can be overwritten by the cyclical data Transmission.

Addressing

All records are addressed via API 0, Slot 0, Subslot 1. The data is transferred in Little Endian format. In the case of Big-Endian format, the higher-value bytes are first transmitted and stored at the memory locations with the lowest addresses.

2 bytes are always addressed per index:

Offset 0 + Offset 1 → Record 0

Offset 510 + Offset 511 → Record 255 (0x00ff)

Index 0x0000 – 0x00ff contains the input data sent from the partner gateway component.

Index 0x1000 – 0x10ff contains the output data sent to the partner gateway component.

State of the Partner Gateway

You can read information on the state of the partner gateway component via API 0, Slot 0, Subslot 1, Index 0x2000:

 

OffsetLengthElementComment
04Serial number
42Module typeKUNBUS internal module type
62Hardware Revision
82Major Software Version
102Minor Software Version
124Subversion RevisionSource Code Version
162Feldbus Input Length
182Feldbus Output Length
201Bus State
202Feature descriptorSupported features of the gateway