Read module header (5), Read module header command block – basic example – GE GFK-2193A User Manual

Page 27

Advertising
background image


4-10

Series 90™-30 PROFIBUS Slave Module User's Manual – August 2004

GFK-2193A

4

Read Module Header (5)

The Read Module Header command retrieves Network Diagnostic Information for the
Device.

Read Module Header Command Block – Basic Example

The following command block accomplishes the following:

Get Module Header Data
Return the COMMREQ Status Word to %R10—%R13.
Return the Device Status to %R251—%R275.

Word

Dec (Hex)

Definition

Word 1 4 (0004)

Length of command Data Block

Word 2 0 (0000)

Always 0 (no-wait mode request)

Word 3 8 (0008)

Memory type of COMMREQ status word (%R)

Word 4 9 (0009)

COMMREQ status word address minus 1 (%R10)

Word 5 0 (0000)

Reserved

Word 6 0 (0000)

Reserved

Word 7 5 (0005)

Read Module Header command number

Word 8 8 (0008)

Memory type to write response (%R)

Word 9 250 (00FA)

Starting Address to write response(response written to %R251)

Word 10 25 (0019)

Size of response area, 25 for slave

(Word 7) Command Code: Word 7 specifies the Command code for the COMMREQ to
be executed . Read Module Header = 5

(Word 8) Local PLC - Memory Type: Words 8—9 specify the location in the PLC where
the response will be written. Valid values for Word 8 are listed below:

Type

Value

Dec (Hex)

Description

%R

8 (0008)

Register memory (word mode)

%AI

10 (000A)

Analog input memory (word mode)

%AQ 12 (000C)

Analog output memory (word mode)

%I

16 (0010)

Discrete input memory (byte mode)

%Q

18 (0012)

Discrete output memory (byte mode)

%T

20 (0014)

Discrete temporary memory (byte mode)

%M

22 (0016)

Discrete momentary internal memory (byte mode)

Advertising