Hi All,
How can i read a weight from a Mettler Toledo Scale via RS232
I have written the coding to read the data from serial port.
I am very new ..working to read the weight(mg) data from a mettler Toledo via RS232 using VB.Net
please help and pass me any coding or idea.
My mail id: asasamy@yahoo.com
Thanks in Advance
How can i read a weight from a Mettler Toledo Scale via RS232
I have written the coding to read the data from serial port.
I am very new ..working to read the weight(mg) data from a mettler Toledo via RS232 using VB.Net
please help and pass me any coding or idea.
My mail id: asasamy@yahoo.com
Thanks in Advance
Try this: http://lmgtfy.com/?q=mettler+toledo+text+string
;)
The following link shows the structure of the ASCII string on page 13
onwards.
www.usedscales.com/8213.pdf
HTH
Tom Chubb
JCK Automation
tom@jck-automation.com
www.jck-automation.com
;)
The following link shows the structure of the ASCII string on page 13
onwards.
www.usedscales.com/8213.pdf
HTH
Tom Chubb
JCK Automation
tom@jck-automation.com
www.jck-automation.com
Hi,
I understand that you want to capture Mettler Toledo RS232 port weight data in a VB.NET application. And you are after source code for VB.NET.
To query the scale, you need to send an ASCII command:
S<CR><LF>
To process the returned weight:
<?><LF>S S 0.000 lb
<?><LF>S S 0.000 g
It would be best to extract the value and the units and then implemenmt a switch statement on the units toi convert to a standard weight.
I would suggest reading the captured string into a string seperator using space " " as the delimiter such that
str[0] = "<?><LF>S"
str[1] = "S"
str[2] = "0.000"
str[3] = "lb|g|kg|..."
then process the result
Which version of VB are you using? - I might be able to supply VB.NET 2008 code.
www.earthed.net.au admin@earthed.net.au
I understand that you want to capture Mettler Toledo RS232 port weight data in a VB.NET application. And you are after source code for VB.NET.
To query the scale, you need to send an ASCII command:
S<CR><LF>
To process the returned weight:
<?><LF>S S 0.000 lb
<?><LF>S S 0.000 g
It would be best to extract the value and the units and then implemenmt a switch statement on the units toi convert to a standard weight.
I would suggest reading the captured string into a string seperator using space " " as the delimiter such that
str[0] = "<?><LF>S"
str[1] = "S"
str[2] = "0.000"
str[3] = "lb|g|kg|..."
then process the result
Which version of VB are you using? - I might be able to supply VB.NET 2008 code.
www.earthed.net.au admin@earthed.net.au
Ultimately what is your goal, i.e. what are you going to do with the data?
If you are using it in an automated process of some kind you might want to consider useing and OPC Server like Kepware's UCON Protocol Server. UCON stands for User Configurable. You can can create the request and response handling and then connect to the server via any SCADA Client or via VB.Net if you wish. the process is similar to the VB.Net code example that was presented.
Just another option to consider.
Fred Loveless
Senior Application Engineer
Kepware Technologies
http://www.kepware.com
If you are using it in an automated process of some kind you might want to consider useing and OPC Server like Kepware's UCON Protocol Server. UCON stands for User Configurable. You can can create the request and response handling and then connect to the server via any SCADA Client or via VB.Net if you wish. the process is similar to the VB.Net code example that was presented.
Just another option to consider.
Fred Loveless
Senior Application Engineer
Kepware Technologies
http://www.kepware.com
Hi,
> I understand that you want to capture Mettler Toledo RS232 port weight data in a VB.NET application. And you are after source code for VB.NET. <
I'm facing a similar problem. Could you please supply the vb .net code on how to read data from a scale via an RS232.
> I understand that you want to capture Mettler Toledo RS232 port weight data in a VB.NET application. And you are after source code for VB.NET. <
I'm facing a similar problem. Could you please supply the vb .net code on how to read data from a scale via an RS232.
Your use of this site is subject to the terms and conditions set forth under Legal Notices and the Privacy Policy. Please read those terms and conditions carefully. Subject to the rights expressly reserved to others under Legal Notices, the content of this site and the compilation thereof is © 1999-2010 Nerds in Control, LLC. All rights reserved.
Users of this site are benefiting from open source technologies, including PHP, MySQL and Apache. Be happy.
Fortune
Don't hate yourself in the morning -- sleep till noon.







