Messages
Section 6-4
79
6-4-2
Slave diagnostics
The message for a slave diagnostics command is shown below.
MSB
LSB
word n
03h
10h
word n+1
08h
Message number
word n+2
00h
00h
word n+3
42h
00h
word n+4
Station address (01h ~ 7Dh)
00h
word n+5
00h
00h
word n+6
00h
20h
word n+7
05h
01h
Message number
Station address
The message consists of 8 words which have to be set in a PLC data area.
The message number can be any number that can be formed by one byte. It
enables to give the message a unique number. The response message will
also have this number. In this way it is possible to keep track of which
response message belongs to which command message.
The diagnostics can only be retrieved from one slave at a time. The station
address (hex) of that slave must be entered in high byte of the fifth word.
Note
Only request diagnostics of a station of which the diagnostics bit is set. Only
then the data in the response message is valid. The data is most up to date
just after the bit has been set.
Response message
The structure of the response message to a ‘get diagnostics’ command
message is shown below. The response message is located in the Input
mailbox and can be read with the IORD instruction.
MSB
LSB
word n
10h
03h
word n+1
Length of the message starting
from word n+2 [bytes]
Message number
word n+2
42h
Command error if
≠
00h
word n+3
00h
00h
word n+4
Station address
00h
word n+5
00h
00h
word n+6
00h
Length of the message starting
from word n+8 [bytes]
word n+7
05h
01h
word n+8
Station_status_1
Station_status_2
word n+9
Station_status_3
Master address
word n+10
Ident_Number (high byte)
Ident_Number (low byte)
word n+11
Extended diagnostic data 0
Extended diagnostic data 1
word n+12
Extended diagnostic data 2
Extended diagnostic data 3
word n+127
Extended diagnostic data 232 Extended diagnostic data 233
Содержание C200HW-PRM21
Страница 1: ...C200HW PRM21 PROFIBUS DP Master Unit OPERATION MANUAL Cat No W349 E2 2...
Страница 2: ......
Страница 3: ......
Страница 4: ......
Страница 5: ...C200HW PRM21 PROFIBUS DP Master Unit Operation Manual Produced May 2000...
Страница 6: ...iv...
Страница 8: ...vi...
Страница 12: ...x...
Страница 66: ...Debug mode Section 4 4 50...
Страница 98: ...Messages Section 6 4 82...
Страница 108: ...Maintenance Section 7 3 92...
Страница 110: ...94...
Страница 112: ...96...
Страница 116: ...100...
Страница 120: ...104...
Страница 124: ......
Страница 126: ...Authorised Distributor Cat No W349 E2 2 Note Specifications subject to change without notice Printed in the Netherlands...