8-14
VersaPoint™ I/O System Profibus-DP NIU User’s Manual – August 2005
GFK-1911B
8
Example 4, Writing to Object 5FFF; Subindex 0 of a VersaPoint RS-232
Module on Slot 3
This example shows how subindex 00
hex
can be used to write to all the subindices
of a PCP object on an I/O module in a single step.
In the write request data block, 14
hex
indicates the length of the subsequent data.
This is followed by the data, which is transmitted in this order according to the
structure of the object.
The read response is simple. The data block receives 82
hex
to confirm that the
PCP data has been written. 00
hex
again indicates the OK status.
A maximum of 58 bytes of PCP data should be transmitted per command.
Write request (master -> slave)
Data
Data Structure
5F 03 30 19 02 5F FF 00
14 00 06 02 00 00 24 0D
0A 00 00 00 00 11 13 00
00 00 00 00 00
Write/Slot/Index/Total length of data/Write PCP/Index
high/ Index low/Subindex/Length of PCP data/20 bytes
of object data
Write response (slave -> master)
Data
Data Structure
5F 03 30 19
Write/Slot/Index/Length
Read request (master -> slave)
Data
Data Structure
5E 03 30 28
Read/Slot/Index/Maximum length
Read response (slave -> master)
Data
Data Structure
5E 03 30 02 82 00
Read/Slot/Index/Actual length/2 bytes of data (PCP
acknowledgment)
Содержание VersaPoint IC220PBI002
Страница 4: ......
Страница 10: ...Contents x VersaPoint I O System Profibus DP NIU User s Manual August 2005 GFK 1911B...
Страница 80: ...5 14 VersaPoint I O System Profibus DP NIU User s Manual August 2005 GFK 1911B 5...
Страница 100: ...6 20 VersaPoint I O System Profibus DP NIU User s Manual August 2005 GFK 1911B 6...
Страница 166: ...A 10 VersaPoint I O System Profibus DP NIU User s Manual August 2005 GFK 1911B A...