User`s manual

GFK-2334A Chapter 6 PROFIBUS Slave Status and Diagnostics 6-15
6
DP-V1 Alarm Request (9)
The slave can send DP-V1 alarm indications to a master. The format of this COMMREQ is
as follows.
Alarm Request Command Block – Basic Example
Word Dec (Hex) Definition
1 9+x
(0009+x)
Length of command block
2 0 (0000) Always zero - no wait mode request.
3 8 (0008) Memory type of COMMREQ status word (%R)
4 9 (0009) COMMREQ status word address minus 1 (%R10)
5 0 (0000) Reserved
6 0 (0000) Reserved
7 9 (0009) Alarm Request command number
8 8 (0008) Memory type to write response (%R)
9 250 (00FA) Starting Address to write response (response written to %R251)
10 7 (0007) Maximum size of response area
11 0-254
(0000-00FE)
Slot (ranges from 0 to 254)
12 0-254
(0000-00FE)
Sequence Number 0 -31
13 0-254
(0000-00FE)
Alarm Type (ranges from 0 to 254)
14 0 (0000) Alarm Specifier (should always be 0)
15 x (x) Size x of the data to be transmitted.
16+x Data to be sent (0-65535 (0000-FFFF))
(Word 7) Command Code: Word 7 specifies the Command code for the COMMREQ to
be executed. Alarm Request = 9.
(Word 8) Local PLC - Memory Type: Words 8—9 specify the location in the PLC where
the response will be written. Values for Word 8 are listed on page 6-4.
(Word 9) Local PLC - Memory Starting Address: Word 9 is a 0-based offset that
determines the starting address in the local PLC in which the response is to be written.
The value entered is the offset (0-based) from the beginning of PLC memory for the
memory type and mode specified in Word 8. This offset will be either in bits, bytes, or
words depending on the mode specified (for example, if Word 8=16 and Word 9=2, then
the starting address will be %I17). Valid ranges of values depend on the PLC’s memory
ranges.
(Word 10) Size of Response: Word 10 specifies the length of the expected indication.
The length is always 6 words.
(Word 11) Slot: The value for Slot depends on the specific application. Slot ranges from 0
to 254.
(Word 12) Sequence Number: The sequence number is used to determine alarms that
are active at the same time. Thus the sequence number must be unique to each alarm.
The sequence number ranges from 0 to 31.