Trouble converting Signed int(16bit) data

Hi There,

I recently set up weight scale indicator Ricelake 720i model. I added the Ethernet Ip module and got the comms working from my PLC(L62) to the scale.

I am using SWPB swap byte instruction as suggested in the manual.

The problem I am having is scale reading matches up to 32767 kg and after that my data in plc start to show a - 31267 (or something similar for any value above 32767 kg on the scale indicator).

I did some research and thought I would convert signed to unsigned but don't know how to get the weight from unsigned integer.

Any help is appreciated.

Cheers
 

Similar Topics

Having trouble getting online with the Omron I have tried servals everything you name it I'm for some reason it does not connect. 1.The COMM LED...
2
Replies
180
Views
Hello, I've been using the Weintek EasyBuilder software for the last couple days and I decided to try a very basic program to test a Weintek HMI...
1
Replies
408
Views
Hi everyone, I come here beacuse I have a problem with a MP270B. In a project we have two HMI MP270B and we need make some changes in the draws...
1
Replies
352
Views
Hello all, I am working on a FactoryTalk View program and am having trouble viewing the offline tags. The Runtime is pointed to the correct...
9
Replies
801
Views
Hello. I have downloaded to my HMI several times from my TIAP v20. Come in today and I keep getting a "Consistency check failed". I searched...
2
Replies
562
Views
Top