LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Re: Decoding a Labview Code

Solved!
Go to solution

i want to decode value from modbus to float LSFR what can i do

0 Kudos
Message 1 of 11
(2,334 Views)

need to convert unsigned quad to float least significant register format

0 Kudos
Message 2 of 11
(2,324 Views)

Your post is fully unrelated to this thread (except for using the verb "decode"). Start a new thread instead.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 3 of 11
(2,324 Views)

Hi Rushi,

 

as a new member you should learn not to post the same question into several (and mostly unrelated old) threads!

 

Please explain all those terms in your questions: "unsigned quad", "LSFR", "least significant register format".

Please provide examples for input data and expected output result on the desired conversion…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 11
(2,315 Views)

You're probably both replying to spam.

 

This could be a bot trying to get enough credit to do real damage.

 

Not entirely sure...

 

@Rushi119, post what you have. There are dozens of ways to do modbus. The source of the data in important for the solution.

0 Kudos
Message 5 of 11
(2,279 Views)

Sir I'm using elmeasure energy meter with RS485 communication . but value I'm getting in register is different than the value on meter . when I'm reading meter in modscan using least significant register first format then value I'm getting and value on meter is same .so i need to convert register value  (i.e. in unsigned quad) to least significant register first .

0 Kudos
Message 6 of 11
(2,215 Views)

Hi Rushi,

 

what does the manual of your device tell you about the register values for that parameter?

Which scaling do you have to apply?

 

In general all that is mentioned in those manuals, so you need to read them!

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 7 of 11
(2,195 Views)

IN MANUAL THIER IS  A HOLDING REGISTER 03 AND ADDRESS REGISTER IS 157 IM USING THAT REGISTER . THE VALUE IN REGISTER IS CORRECT I NEED TO CONVERT IT INOT LEAST SIGNIFICANT REGISTER FIRST FORMAT .

0 Kudos
Message 8 of 11
(2,190 Views)

Hi Rushi,

 


@Rushi119 wrote:

IN MANUAL THIER IS  …


No need to cry! (Is your keyboard broken?)

 

Why do you read 74 values when you need just 2 or 4 items?

What does the manual say about scaling of the register values?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 11
(2,171 Views)
Solution
Accepted by topic author Rushi119

Maybe you need to show the manual to us. 

But normal Modbus float conversion: 

dkfire_0-1646396896169.png

 

0 Kudos
Message 10 of 11
(2,154 Views)