Page 95
PROFINET, Documentation
optoNCDT 1900 / Profinet
8.9
Acyclic Reading and Writing of Records via TIA-Portal
8.9.1
Sequence When Writing and Reading Acyclical Data
Determine the hardware identification (ID) of the module.
To do this, switch to the
System constants
tab.
In the example to the right, you get the value 273.
On the SPS,
WRREC_DB
with input parameters (:=) is called.
REQ
// Start execution
ID
// Hardware ID of the target device addressed
INDEX
// Target address in the object directory
LEN
// Length of the binary data block to be written
RECORD
// Usable data for writing
RECORD, VALID, BUSY, ERROR, STATUS
and
LEN
contain
return parameters (=>) that allow for determining the success or
progress of the write command.
WRREC_DB
REQ :=
ID :=
INDEX :=
LEN :=
DONE =>
BUSY =>
ERROR =>
STATUS =>
RECORD :=
Status/Result Output
Enable-Flag
HW-ID
Objekt Index
8Byte + Data Length
15
0x2530
273
1
0
0 0 0x01 0 0x07
Write-Header (8 Byte)
Reserved Reserved
Subindex
Reserved
Reserved
Data length
(UINT32-LE)
ParamID 50500
Value 1 = 0x01000000
0 0 0
0x44 0xC5 0x00 0x01 0x00 0x00 0x00
PARAMID: 50500 VALUE: 1
Fig. 50 PLC write command with 8 Byte prefix to turn on the laser light source on the sensor