I have a digital weighing scale I need to connect to the PC using RS232 communication port. Every time I weigh an object, automatically the result/weight will display in the the texbox control in Visual Basic Application that I made. I need your help for the complete source code that will communicate to the weighing device and what control shuold I use to communicate and how?
Posted by Anonymous on 23 January, 2007 - 10:52 pm
You can use "mscomm control" to receive data from weight scale using rs232. The onComm event is used to receive data from serial port, and for more help follow the link:
Pls send feedback to me.
Posted by EMD Productions on 19 February, 2007 - 10:39 pm
| Start searching for especific scale serial output format. Using MSCOMM32 control from VB6 like:
MSComm1.CommPort = 1
MSComm1.Settings = "9600,N,7,2"
MSComm1.InputMode = comInputModeText
MSComm1.InputLen = 0 'all buffer from port
MSComm1.NullDiscard = True
'Use in Sub MSComm_OnComm() all string conversion and port reading.
If you need more I can send more. Write me.
Reply to this post...
Posted by Anonymous on 25 February, 2007 - 10:41 am
Hi, the main problem im having is that the data input from the scale indicator to the mscomm contol is that the reading (weight) is not in a readable text and it flows throught there its not a fixed variable, the scale output is ascii. i received this information from the scale manufacturer. because i am very new to the mscomm control and not too good with this typr of coding pleas can any1 help me make heads or tails of how to put the codeing together.
1. Shekel Merav models 1000, 2000, 3000, 3001, 4000 and Caesar 2000, 3000, 3001,5000/1/3. Models use digital board 'Tiger', 'Arnav'.
2. The Merav has serial communication RS-232 to computer and printer.
3. The communiction is bi directional from indicator to computer and vice versa.
4. There are three communication...
Please join StudyMode to read the full document