Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21839

Mscomm

$
0
0
Hi

I am reading Data from weighing scale using rs232 . Baud Rate = 9600 , DataBits = 8

MScomm1.inputlen = 11

When weight is 30 on weighing scale & its AScii Values are 130,177,66,72,48,48,48,48,51,48,3 output is O.K
When weight is 20 on weighing scale & i get the weight displayed its AScii Values are 130,177,66,72,48,48,48,48,178,48,3 output return is 0 . From Right 3 value is 178,it should have been 50 . It is displaying a charater like Ascii Value 253 . Why is it doing like this

When weight is 10 on weighing scale & i get the weight displayed its AScii Values are 130,177,66,72,48,48,48,48,177,48,3 output return is 0 . From Right 3 value is 178,it should have been 50 . It is displaying a charater like Ascii Value 241 .

On second position from left it shows character like 241 in all cases .

In Windows XP on Hyperterminal it is showing O.K . Parity = None , STopBits = 1 , Glow Control = Xon/Off

Why is it doing like this
Thanks

Viewing all articles
Browse latest Browse all 21839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>