Slave Diagnostics - Omron C200HW-PRM21 Operation Manuals

Profibus-dp master unit
Table of Contents

Advertisement

Messages

6-4-2 Slave diagnostics

Message number
Station address
Response message
The message for a slave diagnostics command is shown below.
word n
word n+1
word n+2
word n+3
word n+4
word n+5
word n+6
word n+7
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.
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.
word n
word n+1
word n+2
word n+3
word n+4
word n+5
word n+6
word n+7
word n+8
word n+9
word n+10
word n+11
word n+12
word n+127
MSB
03h
08h
00h
42h
Station address (01h ~ 7Dh)
00h
00h
05h
MSB
10h
Length of the message starting
from word n+2 [bytes]
42h
00h
Station address
00h
00h
05h
Station_status_1
Station_status_3
Ident_Number (high byte)
Extended diagnostic data 0
Extended diagnostic data 2
Extended diagnostic data 232 Extended diagnostic data 233
Section 6-4
LSB
10h
Message number
00h
00h
00h
00h
20h
01h
LSB
03h
Message number
Command error if ≠00h
00h
00h
00h
Length of the message starting
from word n+8 [bytes]
01h
Station_status_2
Master address
Ident_Number (low byte)
Extended diagnostic data 1
Extended diagnostic data 3
79

Advertisement

Table of Contents
loading

Table of Contents