Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how can obtain weigh from scale with serial rs232 port

Status
Not open for further replies.

asihuay

Technical User
Mar 23, 2003
4
0
0
TR
Hi All
I need know the way to obtain weigh from scale with rs232 serial port using api under VBA .
My pc is win xp pro , and excel is from office 2003
The actually setting of comm port are the following:
baud = 9600
parity = none
Data bits= 7
stop bit = 1
flow control = none

thanks in advance.
asihuay
 

Read the scale manual. Different scales have different protocols.

buho (A).

 
Hi Buho
The setting of pc comm port match the scale setting , my question is for api and vba code to download weigh from the scale .
asihuay
 

That is what I'm talking about :)

Matching the channel settings is only the first step, you need to comply with all the protocol.

You need to send specific commands to the scale, and the commans need to be framed in some way (may be some packet start char and some type of CRC ending the frame). The scale will send you back the weigth, framed in a similar way.

Only the scale manual can tell you what the needed commands and the frames are. Protocols uses to vary not only between brands but sometimes between models too.

buho (A).

 
Hi. Buho
Thanks I am looking for that.
asihuay
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top