GE GFK-2193A Network Card User Manual


 
GFK-2193A Chapter 4 Status and Diagnostics 4-7
4
PROFIBUS Slave Module COMMREQ Reference
The PROFIBUS Slave module supports the following COMMREQ tasks and responses.
Task Name Description Page No.
3 Get Slave Status Retrieves detailed status information for the Slave. 4-7
5 Read Module Header Retrieves module header information. 4-10
6 Clear Counters Clears counters in ReadModuleHeader 4-12
Get Slave Status COMMREQ (3)
The Get Slave Status COMMREQ retrieves detailed status information for the slave
module from the 16-bit slave status word. The starting address of this word is configured
as Status/Firmware ID Address in the PROFIBUS Slave module software configuration.
For details, refer to “Parameters” in chapter 3.
Memory Types
The following table lists the memory types that can be used for the Status Block and
Reply Data areas.
COMMREQ Status Word Memory Type Codes
Memory Type
Abbreviation
Memory Type
Decimal
code to enter
%I Discrete input table (BYTE mode) 16
%Q Discrete output table (BYTE mode) 18
%R Register memory 8
%AI Analog input table 10
%AQ Analog output table 12
%T Discrete temporary memory (BYTE) 20
%M Discrete internal memory (BYTE) 22
Get Slave Status Command Block – Basic Example
Get Slave status for Device
Return the COMMREQ status words to %R10—%R13.
Return the Slave status to %R251-%R259.
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 3 (0003) Get Module Status command code.
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 5 (0005) Maximum size of response area. Must be 2 words or more, or an error
will be reported in the COMMREQ status and the Get Slave Status
request will be ignored.