beautypg.com

Tecfluid MX4B User Manual

Page 11

background image

11

The slave responds after more than 3.5 characters, indicating its identification, the
requested function code, the number of data bytes to be sent, data and the CRC.

The totalizer value is the floating point data 0x42F208FD = 121,017555

Exemple 3. Writing the Flow rate value for 20 mA
Master requests slave number 0x01 (MX4B converter) to write the contents
corresponding to Flow rate 20 mA. The value to write is 1400.
Slave ID: 0x01
Function: 0x10 (Write multiple registers)
Initial address: 0x3004
Number of registers to write: 2
Data to write: 1400 = 0x44AF0000

The slave responds after more than 3.5 characters, indicating its identification, the
requested function code, the register address, the number of registers, the number of
written data bytes, data and the CRC.

01

03

04

42

F2

08

FD F9

89

01

10

30

AF

00

00 82 8C

04

00

02

04

44

Slave ID

(MX4B)

Function

Register

address

N.

registers

CRC

N.

bytes

20mA

LSB

20mA

MSB

01

10

30

04

00

02

0F 09

N. de bytes

Total LSB

Total MSB

Function

CRC

Slave ID (MX4B)

Register address

N. of written registers

Slave ID (MX4B)

CRC

Function

This manual is related to the following products: