pH ARC Sensors Modbus RTU Programmer’s Manual (EPHUM011)

2.5.2.3Reading the measurement value of PMC1

Register 2090 is also used to read the measurement values of PMC1.

Start

Num-

Reg1 /

Reg3 /

Reg5 /

Reg7 /

Reg9 /

Modbus

Read

Write

reg.

ber of

Reg2

Reg4

Reg6

Reg8

Reg10

function

access

access

 

reg.

 

 

 

 

 

code

 

 

2090

10

Selected

Measure

Measure

Min

Max

3, 4

U/A/S

none

 

 

physical

-ment

-ment

allowed

allowed

 

 

 

 

 

unit

value of

status (2)

value (1)

value (1)

 

 

 

 

 

 

PMC1 (1)

 

 

 

 

 

 

Figure 2.5.2.3.1: Definition of register 2090. Measurement value of PMC1.

(1)Value is always in the physical unit defined in register 2090.

(2)Definition of the status see chapter 2.5.4. All bits set to zero means: no problem.

Command: PMC1 read

 

Modbus address: 2090

Length: 10

Type: 3

Read

Parameter:

Unit

Value

 

Status

Min limit

 

Max limit

 

Format:

Hex

Float

 

Hex

Float

 

Float

 

Value:

0x1000

4.02503

 

0x00

0

 

14

 

Figure 2.5.2.3.2: Example to read register 2090. Physical unit is set to pH (0x1000), PMC1 is pH 4.02503, Status is 0x00, Min allowed value is pH 0, Max allowed value is pH 14.

Command: PMC1 read

 

Modbus address: 2090

Length: 10

Type: 3

Read

Parameter:

Unit

Value

 

Status

Min limit

 

Max limit

 

Format:

Hex

Float

 

Hex

Float

 

Float

 

Value:

0x200000

175.9922

 

0x00

0

 

954.6541

 

Figure 2.5.2.3.3: Example to read register 2090. Physical unit is set to mV (0x200000), PMC1 is 175.9922 mV, Status is 0x00, Min allowed value is -414.0028 mV, Max allowed value is 414.0028 mV.

For the definition of the measurement status see chapter 2.5.4.

Attention:

You cannot read selectively the registers 3 and 4 for the measurement value only. You have to read the entire length of the command (10 registers) and extract the desired information.

624300/01

page 21 / 67

Page 21
Image 21
Hamilton Electronics EPHUM011 Reading the measurement value of PMC1, 0x1000 02503 0x00, 0x200000 175.9922 0x00 954.6541