GE Industrial Solutions ASTAT BP User Manual

Page 93

Advertising
background image

ASTAT BP User Manual

93

GE Industrial Solutions

©2013 GE Company All Rights Reserved

A.13.

Exception Responses

When the master sends a query frame to an ASTAT-BP, one of the following four responses from the ASTAT-BP

is possible:

1. When no communication error is detected in the query, and no mistake is found by the communication

program module in the ASTAT-BP, a Normal response is returned.

2. If the ASTAT-BP does not receive the query frame (for example because of a disconnected serial link cable)

then no response is returned by the ASTAT-BP. After proper time the master will cause a timeout condition.

3. If the ASTAT-BP receives the query, but faulty CRC bytes and / or Parity bits are detected, no response is

returned by the ASTAT-BP. After the proper time the master will cause a timeout condition.

4. If no communication error is detected in the query, but the ASTAT-BP communication program module finds

an error such as an illegal function, data address or data value, or if the ASTAT-BP is busy, then an Exception

response is returned. The Exception response includes the Exception Code to inform the master about the type

of the error.


Exception Code Response Frame:

The Exception response frame holds fix number of 5 bytes. The first one, the Slave Address field, is the Serial

link number (transmitted in query and identical to ASTAT-BP Serial Link No.). The second byte, the Function field,

returns the echo of the transmitted query function but with the Most Significant Bit set to 1 (adding $80 to the

transmitted function code). The third byte is the Exception Code informing about the type of error. The last two

bytes are the CRC bytes.


Exception Codes supported by the ASTAT-BP:

Exception Code

Type

Comment

01

Illegal Function

Requested Function is not supported.

Functions 1..6, 8, 15 or 16 are supported.

02

Illegal Data Address

Data address is not allowable.

03

Illegal Data Value

Data Value is not in allowable range.

06

ASTAT-BP Busy

ASTAT-BP is busy now. The master retransmits the

message later.

Example 10:

The master is trying to force coil # 17 of ASTAT-BP 32. The ASTAT-BP incorporates only 16 coils.

The Illegal Data Address Exception code will be returned:

Query:

byte 1: Serial Link No.

($20)

(32)

byte 2: Function

($05)

byte 3: Coil Address High

($00)

byte 4: Coils address Low

($11)

(17, Non existent Coil)

byte 5: Force Data High

($00)

($0000 = "0" = Low)

byte 6: Force Data Low

($00)

byte 7: CRC_Low

($XX)

byte 8: CRC_High

($XX)

Exception response:

byte 1: Serial Link No.

($20)

byte 2: Function

($85)

(Original + $80)

byte 3: Exception Code

($02)

(Illegal Data Address)

byte 4: CRC_Low

($XX)

byte 5: CRC_High

($XX)

Advertising