Initial Operation
5.5
Sequence When Writing and Reading Acyclical Data
Determine the hardware identification (ID) of the module. To do
so, switch to the General > PROFINET-Interface > Ad-
vanced Options 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
1
0
REQ :=
Enable-Flag
ID :=
273
INDEX :=
0x2600
Objekt Index
LEN :=
20
8 Byte + Data Length
RECORD :=
DONE =>
BUSY =>
Status/Result Output
ERROR =>
STATUS =>
Fig. 13 SPS write command with 8 Byte prefix to turn on the laser light source on the sensor
IF2035-PROFINET
HW-ID
Write-Header (8 Byte)
0
0 0x01 0 0x0d 0
->
Command: "LASERPOW ON\n"
'L' 'A' 'S' 'E' 'R' 'P' 'O' 'W' 0x20 'O'
Command: "LASERPOW ON\n"
0
0
'L' 'A' 'S' 'E' 'R' 'P' 'O' 'W' 0x20 'O'
->
273
'N'
0x0A
'N'
0x0A
Page 27
Need help?
Do you have a question about the IF2035-PROFINET and is the answer not in the manual?