Page 87
PROFINET, Documentation
optoNCDT 1900 / Profinet
Example: Writing parameter ID and float value in TIA Portal
You can also write subindex 1 to subindex 3 in a single write request to write parameter ID and float value.
In the header, set the subindex to 1.
Set the write length to 7 bytes
WRREC_DB
REQ :=
ID :=
INDEX :=
LEN :=
DONE =>
BUSY =>
ERROR =>
STATUS =>
RECORD :=
Status/Result Output
Enable-Flag
HW-ID
Object Index
8Byte + Data Length
15
0x2510
273
1
0
0 0 0x01 0 0x07
Write-Header (8 Byte)
Reserved Reserved
Subindex
Reserved
Reserved
Data length
(UINT32-LE)
ParamID 51002
Value 9.5 kHz = 0x41
180000
0 0 0
0x3A 0xC7 0x00 0x00 0x00 0x18 0x41
PARAMID: 51002, VALUE: 9.5
Fig. 45 Write command of the PLC to the sensor for a measuring rate of 9.5 kHz