serial communication with vb6

U

Thread Starter

ushakkal

I wanted to communicate with a weighing scale with PC.

Weighing scale will send a signal in ASCII and VB6 will accept the weight data and will display it in the suitable field. PC is working under Windows 2000 (Professional Edition). Can anyone tell me how to do it?
 
Use het mscomm component, then use a timer that polls het inputbuffer. If the buffercount is greater than 0 then you know that the weighing scale has send a ASCII text. Extract the data you want and display it.

succes
 
You want to use an MSCOMM control. With your VB project open, select Project->Components, then put a check in the box by "Microsoft Comm Control 6.0" (or whatever version is there). This should put a little modem icon on your toolbar. You can then drop an instance of the control onto your form. Search the help for MSComm for more information and examples. You can also get info and sample code from support.microsoft.com.
 
hello sir

We r working in the similar field we r developing softares for Dharam Kaanta type weighing scales. u can contact me any software development.
 
For Ad: Our WeighBridge Software (for WeighBridge Station) can communicate with GWT & Toledo scale. Do you want to buy this software?

Contact us for more information!
MCA IT
[email protected]

For Tech:
Every scale always built-in with 1 or 2 RS232 data output protocol. One is Continuous & the orther is Master/Slave (or Host mode).

If Scale is configurated for Continuous Output, all you have to do is receiving all data packet and get the string you need.

If Scale is configurated for Master/Slave, first you send some character to RS232 scale port, the scale will return a string depend on what you had sent out. Capture this string and get the weight value inside this string.
In Master/Slave, you can also do some other functions such as: tare, get net weight, gross weight, get fullscale...

;-)
 
Top