Parameter data transfer
Data communication with PROFINET is characterised by the simultaneous operation of cyclic and acyclic services in the network. As an optional extension, the parameter data transfer belongs to the acyclic services, which provides access to all device parameters.
–
The access to the device data depends on the PROFIdrive profile.
–
There is always only one parameter request in process (no pipelining).
–
No spontaneous messages are transferred.
–
There are only acyclic parameter requests.
In principle, a IO-Controller can always be used to request parameters from the IO-Device if the IO-Device is in the DATA_EXCHANGE state.
Transmission directions for acyclic data transfer
1.
A "Write.req" is used to transmit the data set (DB47) as parameter request to the IO-Device.
2.
"Write.res" is used to confirm to IO-Controller that the message was received.
3.
The IO-Controller uses "Read.req" to request the response of the IO-Device.
4.
The IO-Device responds with a "Read.res (-)" if processing is not yet completed.
5.
After parameter processing, the parameter request is completed by using "Read.res (+)" to transmit the parameter response to the IO-Controller.
Telegram structure
|
Destr
|
ScrAddr
|
VLAN
|
Type
0x0800
|
RPC
|
NDR
|
Read/Write Block
|
Data
|
FCS
|
|
6 bytes
|
6 bytes
|
4 bytes
|
4 bytes
|
80 bytes
|
64 bytes
|
64 bytes
|
0 .... 240 bytes
|
4 bytes
|
The initiator specifies the access to the "DB47" data set in the "Read/Write Block" field. The data written to this index or read from it contains a header and the parameter request or the parameter response. The read data or the data to be written is contained in the "Data" field.
Assignment of the user data depending on the data type
Depending on the data type used, the user data is assigned as follows:
|
Data type
|
Length
|
User data assignment
|
||||
|
Byte 1
|
Byte 2
|
Byte 3
|
Byte 4
|
Byte ...
|
||
|
String
|
x bytes
|
Data (x bytes)
|
||||
|
|
||||||
|
U8
|
1 byte
|
Data
|
0x00
|
|
||
|
|
||||||
|
U16
|
2 bytes
|
High byte
|
Low byte
|
|
||
|
Data
|
Data
|
|||||
|
|
||||||
|
U32
|
4 bytes
|
High word
|
Low word
|
|
||
|
High byte
|
Low byte
|
High byte
|
Low byte
|
|||
|
Data
|
Data
|
Data
|
Data
|
|||