Anyone good with maths/binary/hex conversion

Xon

Xon

Associate
Joined
18 Oct 2002
Posts
1,056
Location
Malta
Hi all

I have a problem with reading some modbus value at the moment.

The value is stored on two 16 bit addresses and its giving me two values (1 per address) as unsigned integers. However, these values make no sense to me and I cannot figure out what's wrong or what the calculation is....

A little more info: the actual value is in Amps and I'm reading it from the panel. The values stored in the modbus register should be in mA. Somehow, a combination of the 1st address reading and 2nd address reading should result in this actual value but I can't figure it out.

I know this is a long shot but perhaps someone can point me in the right direction?

Basically:

Field 1 (1st reading)
1st address reading: 4
2nd address reading: 7046
What I should be getting (Actual value): 400

Field 2 (1st reading)
1st address reading: 6
2nd address reading: 37056
What I should be getting (Actual value): 364

Field 3 (1st reading)
1st address reading: 5
2nd address reading: 36442
What I should be getting (Actual value): 364

Field 4 (1st reading)
1st address reading: 5
2nd address reading: 48285
What I should be getting (Actual value): 400

==================

Field 1 (2nd reading)
1st address reading: 4
2nd address reading: 15002
What I should be getting (Actual value): 408

Field 2 (2nd reading)
1st address reading: 6
2nd address reading: 43197
What I should be getting (Actual value): 370

Field 3 (2nd reading)
1st address reading: 5
2nd address reading: 41355
What I should be getting (Actual value): 369

Field 4 (2nd reading)
1st address reading: 5
2nd address reading: 52782
What I should be getting (Actual value): 380
 
Back
Top Bottom