How to conprosys show 64-bit Floating data?

More
2 months 1 week ago #79 by ananaplus
Dear Sirs,
I connect conprosys CPS-MG341-ADSC1-111 to Flowmeter ( RS-485 modbus). Please advise How to conprosys show 64-bit Floating data? value +/- Total Value , Data type: Double , R/W Data: 64-bit Floating data.

Exsample:
Conprosys read data form address:
2000: 417F
2001:C74D
2002: 9000
2003: 0000

Please advice.



I can't attach file fro more detail coz show error as below and I can't delete file also and I can't go to summit. I have to post again without attach file.

" Allowed file extensions : jpg, jpeg, gif, png, txt, rtf, pdf, zip, tar.gz, tgz, tar.bz2

Maximum File Size : 0.1 MB Maximum Image File Size : 0.1 MB "


Thank you.
Anan I.

Please Log in or Create an account to join the conversation.

More
2 months 1 week ago - 2 months 1 week ago #81 by qiuzhi
Hi, Currently we can only convert Modbus value to 64bit integer as follows:

After reading values for 4 Modbus address, you are able to combine their values.

Assuming device returns value for four addresses:

2000: 417F
2001: C74D
2002: 9000
2003: 0000

The actual Hex value should be will be 417F C74D 9000 0000

To get the actual decimal value of this Hex can be obtain through multiplying their base value:

417F * 281474976710656 (equivalent 1 0000 0000 0000 Hex)
+ C74D * 4294967296 (equivalent 1 0000 0000 Hex)
+ 9000 * 65536 (equivalent 1 0000Hex)
+ 0000 * 1 (equivalent 1 Hex)

When using Modbus Input block in VTC, modbus value should return Decimal equivalent value:

2000: 417F >>> 16767
2001: C74D>>> 51021
2002: 9000 >>> 36864
2003: 0000 >>> 0000

16767 * 281474976710656 (equivalent 1 0000 0000 0000 Hex)
+ 51021 * 4294967296 (equivalent 1 0000 0000 Hex)
+ 36864 * 65536 (equivalent 1 0000Hex)
+ 0000 * 1 (equivalent 1 Hex)

This will return the total Decimal value.

The VTC will look like this:

Attachments:
Last edit: 2 months 1 week ago by qiuzhi.

Please Log in or Create an account to join the conversation.

More
1 month 3 weeks ago #97 by ananaplus
Dear Qiuzhi,
As you reply can't solve my issue. I need conprosys support data 64 bits Floating data.
Thank you
Anan I.

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #105 by qiuzhi
Hello Anan,

Please wait for our update for VTC to add in this feature. Thank you very much.

Please Log in or Create an account to join the conversation.

More
1 month 2 weeks ago #106 by ananaplus
Dear Qiuzhi,
Great!! to hear that.
Thank you.

Please Log in or Create an account to join the conversation.

Time to create page: 0.164 seconds
Powered by Kunena Forum