
Page 26
Commissioning
IF2030/PNET
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.
->
->
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
8 Byte + Data Length
20
0x2600
273
1
0
0 0 0x01 0 0x0d 0 0 0
'L' 'A' 'S' 'E' 'R' 'P' 'O' 'W' 0x20 'O'
'N'
0x0A
'L' 'A' 'S' 'E' 'R' 'P' 'O' 'W' 0x20 'O'
'N'
0x0A
Command: "LASERPOW ON\n"
Write-Header (8 Byte)
Reserved
Reserved
Subindex
Reserved
Data length
(UINT32-LE)
Command: "LASERPOW ON\n"
Fig. 12 SPS write command with 8 Byte prefix to turn on the laser light source on the sensor
Содержание IF2030/PNET
Страница 1: ...Operating Instructions IF2030 PNET...
Страница 57: ......