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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

Confirm to continue.