1.4.2: Function Code 06—Preset Single Register

This function allows a Master station to modify a single register in an EPM Slave. The data registers are 16-bit (two byte) values transmitted high-ordered byte first, low-ordered byte second.

In the following example, a Master device stores the value 0001H at Register 57346 in an EPM Slave at address 01H.

Table 1.3: Function Code 6 Example

 

Master Packet

 

Slave Packet

 

Slave Address

01H

Slave Address

01H

Function Code

06H

Function Code

06H

Data Starting Address-Hi

E0H

Data Starting Address-Hi

E0H

Data Starting Address-Lo

01H

Data Starting Address-Lo

01H

Data-Hi

00H

Data-Hi

00H

Data-Lo

01H

Data-Lo

01H

CRC-Lo

2EH

CRC-Lo

2EH

CRC-Hi

0AH

CRC-Hi

0AH

1.4.3: Function Code 10—Preset Multiple Registers

This function allows a Master station to modify a group of consecutive registers in an EPM Slave. Registers are 16-bit (two byte) values transmitted high-ordered byte first, low-ordered byte second.

In the following example, a Master device stores the value 0001H at Register 57345, 0001H at Register 57346 and 0001H at Register 57347 in an EPM Slave at address 01H.

1.4.4: Data Starting Address

Range in Hex: 0000H - FFFFH

Range in Decimal: 00001 - 65536

The Address in Chapter 2 (EPM Modbus Register Map Excel Spreadsheet) is in Decimal.

Example: For some Scada Softwares, to read Holding Registers (1.4.1), Address Format should be: 4(XXXXX) with the XXXXX being our Decimal Address.

1-3

Page 19
Image 19
GE EPM 9650/9800 manual Function Code 06-Preset Single Register, Function Code 6 Example Master Packet Slave Packet