8 function code 16: performing commands, 9 error responses, Function code 16: performing commands -7 – GE 489 User Manual

Page 169: Error responses -7

Advertising
background image

GE Multilin

489 Generator Management Relay

6-7

6 COMMUNICATIONS

6.2 MODBUS FUNCTIONS

6

6.2.8 FUNCTION CODE 16: PERFORMING COMMANDS

Some PLCs may not support execution of commands using function code 5 but do support storing multiple setpoints using
function code 16. To perform this operation using function code 16 (10H), a certain sequence of commands must be written
at the same time to the 489. The sequence consists of: Command Function register, Command operation register and
Command Data (if required). The Command Function register must be written with the value of 5 indicating an execute
operation is requested. The Command Operation register must then be written with a valid command operation number
from the list of commands shown in the memory map. The Command Data registers must be written with valid data if the
command operation requires data. The selected command will execute immediately upon receipt of a valid transmission.

MESSAGE FORMAT AND EXAMPLE

Perform a 489 RESET (operation code 1).

6.2.9 ERROR RESPONSES

When a 489 detects an error other than a CRC error, a response will be sent to the master. The MSbit of the Function Code
byte will be set to 1 (i.e. the function code sent from the slave will be equal to the function code sent from the master plus
128). The following byte will be an exception code indicating the type of error that occurred.

Transmissions received from the master with CRC errors will be ignored by the 489.

The slave response to an error (other than CRC error) will be:

SLAVE ADDRESS: 1 byte

FUNCTION CODE: 1 byte (with MSbit set to 1)

EXCEPTION CODE: 1 byte

CRC: 2 bytes

The 489 implements the following exception response codes.

01: ILLEGAL FUNCTION

The function code transmitted is not one of the functions supported by the 489.

02: ILLEGAL DATA ADDRESS

The address referenced in the data field transmitted by the master is not an allowable address for the 489.

03: ILLEGAL DATA VALUE

The value referenced in the data field transmitted by the master is not within range for the selected data address.

MASTER TRANSMISSION:

BYTES

EXAMPLE (HEX):

SLAVE ADDRESS

1

0B

message for slave 11

FUNCTION CODE

1

10

store setpoints

DATA STARTING ADDRESS

2

00 80

setpoint address 0080

NUMBER OF SETPOINTS

2

00 02

2 setpoints (4 bytes total)

BYTE COUNT

1

04

2 registers = 4 bytes

COMMAND FUNCTION

2

00 05

data for address 0080

COMMAND FUNCTION

2

00 01

data for address 0081

CRC

2

0B D6

CRC calculated by the master

SLAVE RESPONSE:

BYTES

EXAMPLE (HEX):

SLAVE ADDRESS

1

0B

response message from slave 11

FUNCTION CODE

1

10

store setpoints

DATA STARTING ADDRESS

2

00 80

setpoint address 0080

NUMBER OF SETPOINTS

2

00 02

2 setpoints (4 bytes total)

CRC

2

40 8A

CRC calculated by the slave

Advertising