How to conprosys show 64-bit Floating data?
3 years 11 months ago #79
by ananaplus
How to conprosys show 64-bit Floating data? was created 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.
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.
3 years 11 months ago - 3 years 11 months ago #81
by qiuzhi
Replied by qiuzhi on topic How to conprosys show 64-bit Floating data?
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:
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:
Last edit: 3 years 11 months ago by qiuzhi.
Please Log in or Create an account to join the conversation.
3 years 11 months ago #97
by ananaplus
Replied by ananaplus on topic How to conprosys show 64-bit Floating data?
Dear Qiuzhi,
As you reply can't solve my issue. I need conprosys support data 64 bits Floating data.
Thank you
Anan I.
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.
3 years 10 months ago #105
by qiuzhi
Replied by qiuzhi on topic How to conprosys show 64-bit Floating data?
Hello Anan,
Please wait for our update for VTC to add in this feature. Thank you very much.
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.
3 years 10 months ago #106
by ananaplus
Replied by ananaplus on topic How to conprosys show 64-bit Floating data?
Dear Qiuzhi,
Great!! to hear that.
Thank you.
Great!! to hear that.
Thank you.
Please Log in or Create an account to join the conversation.
Time to create page: 0.265 seconds
- You are here:
- Home