Technical data
Manual – MOVI-PLC® advanced DH.41B Controller
75
6
Structure of the DP-V1 parameter channel
PROFIBUS-DP-V1 Functions
Example for writing
a parameter via
PROFIdrive
The following tables show an example of the structure of the Write and Read services
for the remanent writing of the value 12345 to variable H0 (parameter index 11000) (→
"Example for writing a parameter via MOVILINK
®
"). The PROFIdrive change parameter
service is used for this purpose.
Send Write parameter request
After sending this Write.request, the Write.response is received. If there was no status
onflict in processing the parameter channel, a positive Write.response is sent. Other-
wise, the status fault is located in Error_code_1.
Query parameter response
The following table shows the code of the write.req user data data including the DP-V1
header.
Service Write.request
Slot_Number 0 Random (is not evaluated)
Index 47 Index of the dataset; constant index 47
Length 16 16 byte user data for order buffer
Byte Field Value Description
0 Request reference 0x01 Individual reference number for the parameter setting
order is reflected in the parameter response
1 Request ID 0x02 Change parameter (PROFIdrive)
2 Axis 0x00 Axis number; 0 = Single axis
3 No. of parameters 0x01 1 parameter
4 Attributes 0x10 Access to parameter value
5 No. of elements 0x00 0 = access to direct value, no subelement
6..7 Parameter Number 0x2AF8 Parameter index 11000 = Variable H0
8..9 Subindex 0x0000 Subindex 0
10 Format 0x43 Double word
11 No. of values 0x01 Change 1 parameter value
12..13 Value HiWord 0x0000 Higher-order part of the parameter value
14..15 Value LoWord 0x3039 Lower-order part of the parameter value
Field Value Description
Function_Num Read.req
Slot_Number X Slot_Number not used
Index 47 Index of dataset
Length 240 Maximum length of response buffer in DP-V1 master
00
I