Parameter data transfer
Data communication with PROFIBUS DP-V0 is characterised by cyclic diagnostics
and cyclic process data transfer.
An optional service expansion is the acyclic parameter data transfer of PROFIBUS DP-V1. This service does not impair the functionality of the PROFIBUS standard services under
PROFIBUS DP-V0.
Details
–
PROFIBUS DP-V0 and PROFIBUS DP-V1 can be operated simultaneously in the same network.
This enables the expansion or modification of a system.
–
The services of PROFIBUS DP-V1 can be used by the class 1 master (PLC) and the
class 2 DP master (diagnostics master, etc.).
–
Integration of the acyclic service into the fixed bus cycle depends on the corresponding
configuration of the class 1 master:
–
With configuration, a time slot is reserved.
–
Without configuration, the acyclic service is appended when a class 2 DP master
acyclically accesses a DP-V1 slave.
Features
–
16 bits each for addressing the parameter index and subindex.
–
Several parameter requests can be combined to one request (multi-parameter requests).
–
Only one request is processed at a time (no pipelining).
–
A request or response must fit into one data block (max. 240 bytes). Requests or responses
cannot be split into several data blocks.
–
No spontaneous messages are transferred.
–
There are only acyclic parameter requests.
–
Profile-specific parameters can be read independently of the slave state.
–
A class 1 DP master can always request parameters from a slave
if the slave is in the "Data Exchange" state.
–
In addition to a class 1 DP master, a class 2 DP master can establish communication
with a slave:
Transmission directions for acyclic data transfer
Procedure:
1.
A "Write.req" is used to pass the data set (DB47) to the slave in the form of a parameter request.
2.
With "Write.res" the master receives the confirmation for the receipt of the message.
3.
The master requests the response of the slave with "Read.req".
4.
The slave responds with "Read.res (-)" if processing has not been completed yet.
5.
After parameter processing, the parameter request is completed by transmitting the parameter response to the master with "Read.res (+)".
Frame structure
|
SD
|
LE
|
LEr
|
SD
|
DA
|
SA
|
FC
|
DSAP
|
SSAP
|
Data Unit (DU)
|
FCS
|
ED
|
The Data Unit (DU) contains the DP-V1 header and the parameter request or the parameter response. The DP V1 header consists of the function detection, slot number, data set, and the length of the user data.
More information about the DP-V1 header can be found in the corresponding PROFIBUS specification. A detailed description of the parameter request and parameter response can be found in the following
subchapters.
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
|
|||