Modbus Function Codes; Read Actual Values - GE D90 Plus Communications Manual

Line distance protection system
Hide thumbs Also See for D90 Plus:
Table of Contents

Advertisement

CHAPTER 2: MODBUS COMMUNICATION

Modbus function codes

Read actual values

PLUS
D90
LINE DISTANCE PROTECTION SYSTEM – COMMUNICATIONS GUIDE
1. FFFF (hex) --> A
2. 0 --> i
3. 0 --> j
4. Di (+) Alow --> Alow
5. j + 1 --> j
6. shr (A)
7. Is there a carry?
If No: go to 8;
If Yes: G (+) A --> A and continue
8. Is j = 8?
If No: go to 5;
If Yes: continue
9. i + 1 --> i
10.Is i = N?
If No: go to 3;
If Yes: continue
11. A --> CRC
where
is data transfer
-->
is 16-bit working register
A
is low order byte of
A
Alow
is high order byte of
Ahigh
CRC is 16-bit CRC-16 result
,
are loop counters
i
j
is logical exclusive-OR operator
(+)
is total number of data bytes
N
is the i-th data byte (i = 0 to N – 1)
Di
is 16-bit characteristic polynomial = 1010000000000001 (binary) with MSbit dropped and
G
bit order reversed
is right-shift operator (the LSbit of x is shifted into a carry flag, a "0" is shifted into
shr (x)
the MSbit of x, all other bits are shifted right one location)
While the Modbus protocol defines function codes from 1 to 127, only a small subset
generally is needed. The table outlines the functions supported by the D90
Table 2: Modbus function codes supported
Function code
Modbus definition
Hex
Decimal
03
3
Read holding registers
04
4
Read input registers
05
5
Force single coil
The read actual values function codes (04h) allow the master to read one or more
consecutive data registers (actual values) from a D90
16-bit (two-byte) values transmitted with the high-order byte first. The maximum number
of registers that can be read in a single packet is 125. See the Modbus Memory Map table
for details on the data registers.
A
GE Grid Solutions definition
Read settings
Read actual values
Execute command
Plus
MODBUS FUNCTION CODES
Plus
.
device. Data registers are always
5

Advertisement

Table of Contents
loading

Table of Contents