Data Encoding; Function Codes - Emerson 2202 Advanced User's Manual

Commander sk series ac variable speed drive for 3 phase induction motors from 0.25kw to 110kw, 0.33hp to 150hp
Table of Contents

Advertisement

Parameter
Introduction
x.00
description format
6.1.5

Data encoding

MODBUS RTU uses a 'big-endian' representation for addresses and data items (except the CRC, which is 'little-endian'). This means that when a
numerical quantity larger than a single byte is transmitted, the MOST significant byte is sent first. So for example
16 - bits
0x1234
would be
32 - bits
0x12345678L would be
6.1.6

Function codes

The function code determines the context and format of the message data. Bit 7 of the function code is used in the slave response to indicate an
exception.
The following function codes are supported:
Code
3
Read multiple 16bit registers
6
Write single register
16
Write multiple 16bit registers
23
Read and write multiple 16bit registers
FC03 Read multiple
Read a contiguous array of registers. The slave imposes an upper limit on the number of registers, which can be read. If this is exceeded the slave
will issue an exception code 2.
Table 6-1 Master request
Byte
Slave destination node address 1 through 247, 0 is
0
global
1
Function code 0x03
2
Start register address MSB
3
Start register address LSB
4
Number of 16bit registers MSB
5
Number of 16bit registers LSB
6
CRC LSB
7
CRC MSB
Table 6-2 Slave response
Byte
0
Slave source node address
1
Function code 0x03
2
Length of register data in read block (in bytes)
3
Register data 0 MSB
4
Register data 0 LSB
3+byte count CRC LSB
4+byte count CRC MSB
FC6 Write single register
Writes a value to a single 16bit register. The normal response is an echo of the request, returned after the register contents have been written. The
register address can correspond to a 32bit parameter but only 16 bits of data can be sent.
Table 6-3 Master request
Byte
0
Slave node address 1 through 247 0 is global
1
Function code 0x6
2
Register address MSB
3
Register address LSB
4
Register data MSB
5
Register data LSB
6
CRC LSB
7
CRC MSB
18
Parameter
Keypad and
display
communications
0x12
0x34
0x12
0x34
0x56
Description
Description
Description
Description
www.controltechniques.com
Serial
CT Modbus
PLC Ladder
RTU
programming
0x78
Advanced parameter
CTSoft
Menu 0
descriptions
Commander SK Advanced User Guide
Issue Number: 9

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents