![SICK WI180C-PB Скачать руководство пользователя страница 18](http://html.mh-extra.com/html/sick/wi180c-pb/wi180c-pb_operating-instructions-manual_1264188018.webp)
W I 1 8 0 C - P B | P R O F I B U S C O U P L E R
8018416.YM10/COMAT/ 2015-03-13 | S I C K A G
Subject to change without notice
1 8
7
OPERATION
7.5
Communication via PROFIBUS
Function blocks are used for communicating with the connected devices.
Examples:
Standard function blocks:
−
Read SFB52 RDREC dataset
−
Write SFB52 WRREC dataset
Device-specific SICK function blocks
−
Function block for interpreting the acyclic service data
−
Parser function for interpreting the cyclic process data
When read, the device's response returns a 4 byte header and the requested data.
A 3 byte header and a 1 byte value for the written data is returned when writing.
7.5.1
Read access
Command telegram
Access type
Profibus slot
Index
Dataset length
0x5E (read)
1 byte
1 byte
1 byte
Response telegram
Access type
Profibus slot
Index
Dataset length
Data
0x5E (read) 1 byte
1 byte
1 byte
max. 32 byte
Example
The dealer name of the first connected device should be read out.
Access type
Profibus slot
Index
Dataset length
0x5E
0x06 (Slot 1)
0x05 (5)
0x10 (16)
The response data packet – consisting of 4+16 bytes – contains the requested values:
Byte address
Value
0
0x53 ("S")
1
0x49 ("I")
2
0x43 ("C")
3
0x4B ("K")
4
0x20 (" ")
5
0x41 ("A")