8-16
VersaPoint™ I/O System Profibus-DP NIU User’s Manual – August 2005
GFK-1911B
8
Example 6, In the Event of an Error: Reading an Object on an I/O module
Without PCP Functions (Access to 5FF0, Subindex 0 on an 8-Point
Discrete Output Module at Slot 2)
In example 6, DF
hex
in the write response means the service cannot be executed.
The service cannot be sent to the I/O module, so the error code is indicated
immediately. For this type of error, the DP/V1 error codes are helpful, see
Appendix "Error Codes for DP_V1 and VC1Communication" on page7-17. In this
example, 80
hex
means that the error is a DP/V1 error. D200 indicates that the
module does not have PCP. The process should stop immediately after the write
action. However, if the system tries to read the result on slot 2, D4 00 is output
("Incorrect service", see Section "Error Codes for DP_V1 and VC1
Communication" on page 7-17). This indicates that the command is not expected
at present. There is no read data available at the slot.
If the system includes I/O modules that do not establish the PCP connection
immediately after power up, error code D1
hex
may occur when PCP
communication is attempted. This code indicates that there is (still) no PCP
connection. An attempt is made to establish this connection with the module so
the problem will not recur the next time a communication attempt is made.
Index 5 can be used to request the PCP status and to establish communication if
all PCP devices do not have a connection. To do this, write 01
hex
on slot 0, index 5.
This example also shows function code DE
hex
(Read error) or function code DF
hex
(Write error) in connection with error code 80
hex
. These indicate errors on the
DP/V1 level. More general DP/V1 error codes are listed in EN 50170, PROFIBUS
Guideline 2.082.
Write request (master -> slave)
Data
Data Structure
5F 02 30 04 01 5f ff 00
Write/Slot/Index/Length/Read PCP/Index high/Index
low/Subindex
Write response (slave -> master)
Data
Data Structure
DF 80 D2 00
Write error/Error decode/Error code 1/Error code 2
Read request (master -> slave)
Data
Data Structure
5E 02 30 28
Read/Slot/Index/Maximum length
Read response (slave -> master)
Data
Data Structure
DE 80 D4 00
Read error/Error decode/Error code 1/Error code 2
Summary of Contents for VersaPoint IC220PB001
Page 4: ......
Page 10: ...Contents x VersaPoint I O System Profibus DP NIU User s Manual August 2005 GFK 1911B ...
Page 80: ...5 14 VersaPoint I O System Profibus DP NIU User s Manual August 2005 GFK 1911B 5 ...
Page 100: ...6 20 VersaPoint I O System Profibus DP NIU User s Manual August 2005 GFK 1911B 6 ...
Page 166: ...A 10 VersaPoint I O System Profibus DP NIU User s Manual August 2005 GFK 1911B A ...