Page 86
PROFINET, Documentation
optoNCDT 1900 / Profinet
Example: Write float value to TIA Portal
In the header, set the subindex to 3.
Set the write length to 4 bytes (4 bytes float value)
WRREC_DB
REQ :=
ID :=
INDEX :=
LEN :=
DONE =>
BUSY =>
RECORD :=
Status/Result Output
Enable-Flag
HW-ID
Object Index
8Byte + Data Length
12
0x2510
273
1
0
0 0 0x03 0 0x04
Write-Header (8 Byte)
Reserved Reserved
Subindex
Reserved
Data length
(UINT32-LE)
Value 9.5 kHz = 0x41
180000
0 0 0
0x00 0x00 0x18 0x41
VALUE: 9.5
Fig. 43 PLC write command
RDREC_DB
REQ :=
ID :=
INDEX :=
LEN :=
RECORD :=
Enable-Flag
HW-ID
Object Index
Data Length
4
0x2510
273
1
0
Value 9.5 kHz
0x00 0x00 0x18 0x41
VALUE: 9.5
DONE =>
BUSY =>
ERROR =>
STATUS =>
Status/Result Output
Fig. 44 PLC read command