User`s manual

6-6 Series 90™-30 CPU with Embedded PROFIBUS Interface – November 2004 GFK-2334A
6
Get Slave Status - Reply Data Format
Word Name Description
Word 1 CommandCode Echo of Command code that this data block is replying to.
(0x0003)
Word 2 Last Error See “Slave Last Error Codes” on page 6-6.
Word 3 Running State Word values:
xxx1 – Slave in initialization state. If slave remains in this state
the slave hardware configuration has an error.
xx1x – Slave initialized without error.
x1xx – Slave diagnostics information is being sent.
1xxx – Data exchange is active with master.
Example: A value of 0x1010 (4112 decimal) indicates that the
slave has been initialized without error and is exchanging data with
the master.
Word 4 Baud Rate 0 = 12 MBit/s, 1 = 6 MBit/s, 2 = MBit/s, 3 = 1.5 MBit/s,
4 = 500 kBit/s, 5 = 187.5 kBit/s, 6 = 93.75 kBit/s,
8 = 19.2 kBit/s, 9 = 9.6 kBit/s
A value of 15 indicates that the module is not configured. This is an
invalid Baud Rate.
Words 5 - 9 NA Reserved.
Note: The reply from Get Slave Status contains the same information that is provided to
the PLC CPU in the Status/Firmware ID Address. This parameter is defined when
the slave is configured in the PLC hardware configuration.
Slave Last Error Codes
The following error codes may be returned in word 2 of the Get Slave Status COMMREQ
reply data or word 6 of the Read Module Header COMMREQ reply data (page 6-9).
Value
Dec (Hex)
Meaning
0 (0000) Slave is running properly.
52 (0034) DPS_ERR_INIT_BUS_ADDRESS
Invalid bus address configured, valid addresses are 1 ... 125
53 (0035) DPS_ERR_INIT_WAIT_FOR_WARMSTART
Application has not made a warm start to the slave yet.
54 (0036) DPS_ERR_INIT_MODULE_TYPE
Invalid module type configured. The configured module type code is unknown.
55 (0037) DPS_ERR_INIT_MODULE_LENGTH
Invalid module length. The code for the parameter module length is not defined.
70 (0046) DPS_ERR_INIT_IO_LEN
Invalid length of I/O data. The maximum length of I/O data has been exceeded or
no I/O modules were specified.
72 (0048) DPS_ERR_INIT_DPV1_C1_BUF_LEN
Illegal DP-V1 class 1 buffer length.
73 (0049) DPS_ERR_INIT_DPV1_C2_BUF_LEN
Illegal DP-V1 class 2 buffer length.
74 (0050) DPS_ERR_INIT_SPC3_NOFF
PROFIBUS slave chip not in offline mode during initialization.