Jump to content

signed or unsigned data issues


Recommended Posts

Hello,

I am using a V1040 communicating with a Weigh cell display via Modbus. Coms are all working fine, but -

The Weigh Cell display returns 3 MI's first is Decimal point then 2 MI's are whole number.

The Vision only deals in signed numbers??

 

The decimal is sent as an unsigned INT as a fraction of 1.

 

Eg: If the number is 2.45kg. The decimal point INT will be 29490 ( 29490 / 65535 = 0.45)

 

The problem is once decimal number is above 32767 it becomes a negative number in the Vision 1040.

 

Is there a simple way around this???

 

Please Help have spent many hours on this already.

 

Matt

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...