Function Code 16: Performing Commands; Error Responses - GE 489 Instruction Manual

Generator management relay
Hide thumbs Also See for 489:
Table of Contents

Advertisement

6.2 SUPPORTED MODBUS FUNCTIONS
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).
MASTER TRANSMISSION:
SLAVE ADDRESS
FUNCTION CODE
DATA STARTING ADDRESS
NUMBER OF SETPOINTS
BYTE COUNT
COMMAND FUNCTION
COMMAND FUNCTION
CRC
SLAVE RESPONSE:
SLAVE ADDRESS
FUNCTION CODE
DATA STARTING ADDRESS
NUMBER OF SETPOINTS
CRC
6
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.
6-8

6.2.8 FUNCTION CODE 16: PERFORMING COMMANDS

BYTES
EXAMPLE (HEX):
1
0B
1
10
2
00 80
2
00 02
1
04
2
00 05
2
00 01
2
0B D6
BYTES
EXAMPLE (HEX):
1
0B
1
10
2
00 80
2
00 02
2
40 8A
489 Generator Management Relay
6 COMMUNICATIONS
message for slave 11
store setpoints
setpoint address 0080
2 setpoints (4 bytes total)
2 registers = 4 bytes
data for address 0080
data for address 0081
CRC calculated by the master
response message from slave 11
store setpoints
setpoint address 0080
2 setpoints (4 bytes total)
CRC calculated by the slave

6.2.9 ERROR RESPONSES

GE Power Management

Advertisement

Table of Contents
loading

Table of Contents