How To Read A Weight Scale Via Serial Port
For my project that given by my company, I have created a application for take readings inside c# function. This is a serial port connected weighing machine and this is a CAS PDII machine.
- Weight Scale Walmart
- Learning How To Read A Weight Scale
- How To Read A Weight Scale In Kilograms
- How To Read A Weight Scale Increments
- Weight Scale Chart
I have a scale that connect to PC through RS232, I send 'W' to receive the weight. The scale sends the weight all the time as it's read. How do I catch the weight that is being read?
Accessing A Serial or USB Port Via PHP. I'm investigating if it would be possible to read from a serial port or USB port. Will return the weight on the scale. Java & C Programming Projects for $30 - $250. We have a weighing scale that gets connected to PC through serial (RS-232) port. The desired solution will be the one that should be able to read the data received from scale, parse the information. Hello, I need to write visual basic.net code to interface with a Mettler Toledo Shipping Scale that interfaces with a PC via USB or a serial port. Firstly, before you start to code anything, I would check whether you're using the right cable. Try open a serial terminal of your choice (HyperTerm, putty) and check whether there is any data at all. Be sure to configure the same baudrate, stopbits and parity on both the weight scale and your terminal program. If I use Hyperterminal, and I press CTRL-E+Q, then I get the weight from the scale. Combination to the serial port. To get the weight from CAS scale s.
Can i get any C# sample code?
Mike Atlas2 Answers
Sending a W? Sounds like the Mettler Toledo scale that FedEx gives businesses. I happen to have some code that reads from such a scale:
Nicholas PiaseckiNicholas PiaseckiWeight Scale Walmart

You need to use SerialPort component of .NET. The full description and examples are available on MSDN site: http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx
alemjerusalemjerusNot the answer you're looking for? Browse other questions tagged c#serial-port or ask your own question.
I've been assigned to display weight from weighing scale (CAS CI-201A) into a textbox using C#. The weight will be sent via serial port RS-232 or USB converter. The scale is with me but I don't know where to start. How can I achieve my goal?
eddie_cat7 Answers
Have you tried anything yet?
If you want to use the serial port it makes sense to first give the user a way to select which port to use. This can be done easily, by filling a combobox with all available ports.
This code uses a form with a comboBox on it, called 'comboBox1' (Default). You will need to add:
to the using directives.
Then add a button (button1) and a multiline textbox (textbox1) to the form and add this code:
This also requires you to add:
right below the opening brackets of
Learning How To Read A Weight Scale
After clicking the button, all received data from the selected comPort will be displayed as hex values in the TextBox.
DISCLAIMER: The above code contains NO error-handling and will produce errors if button1 is clicked multiple times, due to the fact that the previous instance of 'SerialPort' is not closed properly. Please remember this when using this example.
Regards Nico
Complete Code:
Firstly, before you start to code anything, I would check whether you're using the right cable. Try open a serial terminal of your choice (HyperTerm, putty) and check whether there is any data at all.
Be sure to configure the same baudrate, stopbits and parity on both the weight scale and your terminal program.
If you receive data (the terminal program should at least display some garbage), then you can move on to coding. If not, check if you're using the right cable (nullmodem aka crossed-over).
When you're this far, then you may use the SerialPort
class of C#http://msdn.microsoft.com/en-us/library/system.io.ports.serialport.aspx

How To Read A Weight Scale In Kilograms
Based on this:
Listening on COM1... 30 30 33 33 20 49 44 5F 30 30 3A 20 20 20 31 30 2E 36 20 6B 67 20 0D 0A 0D 0A
Being the ASCII for this:
0033 ID_00: 10.6 kg

You can get the result by trimming the received string. Assuming your listener puts the bytes into an array byte[] serialReceived
:
How To Read A Weight Scale Increments
Adam CaseyAdam CaseyI was using Anto sujesh's Code, but I had the problem that some of the values I got from the scale were corrupted. I solved it by buffering the values in a cache file.
based on adam suggestion i converted the output to human readable format ( from ASCII to UTF8 )i puts the bytes into an array byte[]
here is the full working code
Weight Scale Chart
if your are using A&D EK V Calibration Model : AND EK-610V. you have use BaudRate = 2400; and DataBits = 7
Note : if you get output like this
you have to check the BaudRate,DataBits (refer your weighing machine manual ) or check your cable
protected by Community♦Nov 22 '17 at 11:27
Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?