Read-only memory read instruction(04) and memory lists

The length of total register requested by a single reading command must be less than or equal to 20 registers. Instructions longer than this will be ignored.

Instruction example

Format of command (04) from master

Description of master command

The example will read instantaneous flow volume.

slave address: 01(address of this flowmeter)

function code: 04(read instruction)

Address of first reading register: 0000(Address of first register to read)

Quantity of registers to be read: 0002 (need to read 2 registers from 0000)

CRC: 71 CB(Calculating error correcting code according to CRC algorithm)

Format of flowmeter response(04)

Description of flowmeter response example

slave address: 01(address of this flowmeter)

function code: 04(read instruction)

Amount of response Byte: 04 (2 register=4 byte)

Data Byte: 00 00 00 00(Assume the instantaneous flow volume is 0)

CRC: FB 84(Calculating error correcting code according to CRC algorithm)

Definition and address of memory

How to use these charts

Read-only memory list

Last updated