Download PACSystems RX3i PROFIBUS Modules User`s Manual, GFK

Transcript
5
Read Module Header (5)
The Read Module Header command retrieves Network Diagnostic Information and
statistics from the device
Read Module Header Command Block
Word
Offset
Word 1
Word 2
5-14
Value
Dec (Hex)
Definition
4 (0004)
Length of command Data Block in words
0 (0000)
Always 0 (no-wait mode request)
Word 3
See page 5-5.
Memory type of COMMREQ status word. (Words 3 and 4 specify the starting
address where the status word will be written.)
Word 4
0-based offset
COMMREQ status word address minus 1.
Example: if Words 3 and 4 contain values of 8 and 9 respectively, the status
word will be written to %R10.
Word 5
0 (0000)
Reserved
Word 6
0 (0000)
Reserved
Word 7
5 (0005)
Command code for the COMMREQ to be executed.
Read Module Header = 5.
Word 8
See page 5-5.
Memory type for the reply data. (Words 8—9 specify the starting address
where the response will be written.)
Word 9
0-based offset
Starting address to which the response will be written. The value entered is
the 0-based offset from the beginning of PLC memory for the memory type
specified in Word 8. This offset will be in bits, bytes, or words depending on
the memory type specified. Valid ranges of values depend on the PLC’s
memory ranges.
Example: If Words 8 and 9 contain values of 8 and 250 respectively, (the
response will be written to %R251.
Word 10
Words: 20 (0014)
Bytes: 40 (0028)
Size in words of response area, 20 if word memory type is used, 40 if
discrete memory is used. You are responsible for assuring that this area is
large enough to contain the requested data without overwriting other
application data
PACSystems™ RX3i PROFIBUS Modules – May 2005
GFK-2301B