取消
显示结果 
搜索替代 
您的意思是: 

Re: Decoding a Labview Code

已解决!
转到解答

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

0 项奖励
1 条消息(共 11 条)
2,848 次查看

need to convert unsigned quad to float least significant register format

0 项奖励
2 条消息(共 11 条)
2,838 次查看

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 项奖励
3 条消息(共 11 条)
2,838 次查看

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 项奖励
4 条消息(共 11 条)
2,829 次查看

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 项奖励
5 条消息(共 11 条)
2,793 次查看

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 项奖励
6 条消息(共 11 条)
2,729 次查看

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 项奖励
7 条消息(共 11 条)
2,709 次查看

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 项奖励
8 条消息(共 11 条)
2,704 次查看

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 项奖励
9 条消息(共 11 条)
2,685 次查看
解答
接受人 Rushi119

Maybe you need to show the manual to us. 

But normal Modbus float conversion: 

dkfire_0-1646396896169.png

 

0 项奖励
10 条消息(共 11 条)
2,668 次查看