Connect with Yamato scale
Connect with Yamato scale
Connect with Yamato scale
Connect with Yamato scale
Connect with Yamato scale
Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale
Connect with Yamato scale Connect with Yamato scale
Connect with Yamato scale
Go Back  Xtreme Visual Basic Talk > > > Connect with Yamato scale


Reply
 
Thread Tools Display Modes
  #1  
Old 07-21-2011, 02:21 AM
carnation's Avatar
carnation carnation is offline
Junior Contributor
 
Join Date: Apr 2003
Posts: 316
Default Connect with Yamato scale


Hi all,

I want to connect to Yamato HB 3000 scale for getting data from RS232, and I do not have this scale manual. I also open a port to get data, but can receive no data. If any one has the HB 3000 manual, or any had worked with this Yamato scale, pls help me to solve this. Pls let me know which speed, parity,.. must I use.

Thanks a lot in advance.
Reply With Quote
  #2  
Old 07-24-2011, 01:06 AM
mkaras's Avatar
mkarasConnect with Yamato scale mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

Where did you get access to the scale?

Is it a very old scale?

When I combed through the Yamato web site I found not one bit of their product line with model numbers that even seem to come close to "HB 3000".

There was another thread here a while back where somebody was having great trouble getting a serial interface to a scale working. I had mentioned several times that they needed to check carefully that they had the RxD and TxD signal line connections correct. The thread went on for some time until I said my point again and it turns out that they did indeed have these connections swapped. In case you are interested the thread is here:

digital scale/ indicator in vb

So I pose to you that you may need to use some experimental investigation to get your serial port connected properly. Without a proper connection no amount of software work or dealing with stop bits and parity will do any good.

Let me ask a few questions and we'll see if we can get you going.

1) What type of serial port connection to the PC are you using? Is it a PC with a native COMM serial port or are you trying to use a USB to RS232 converter cable?

2) Do you have access to and ability to use some test equipment to try to determine the serial port pinning on your equipment? An oscilloscope would be best but a decent digital multi-meter would also work. (If you have access and ability to use I can try to talk you through the measurement techniques to sort out the pinning.

3) What type of serial port connector is on your scale. DB-25? DSub-9? Male connector with visible pins or a Female type with socket type pins?

4) What types of cables do you have?

Michael Karas

Last edited by mkaras; 07-24-2011 at 07:10 AM. Reason: Added prior thread link.
Reply With Quote
  #3  
Old 07-24-2011, 08:16 AM
mkaras's Avatar
mkarasConnect with Yamato scale mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

Yamato's USA web site has a section where you can access the users manuals for their scale products. (Note that as I indicated before there is no reference to an HB-3000 type model number). In looking through the manuals there I saw only one that had some information about a product with an RS232 interface. There is an off chance that products from the same company may use similar serial interface protocols so you may kind it useful to take a look at the user manual for the Yamato DPI-500 scale. The link to the manual is at:

http://www.yamatocorp.com/Pdf/OpMan/DPI-500_OM.pdf

You could also try contacting the company directly:

http://www.yamatocorp.com/Html/Company/Contact.htm#YCO

Michael Karas
Reply With Quote
  #4  
Old 07-24-2011, 04:19 PM
webbone's Avatar
webbone webbone is offline
Hydrogen Powered

Administrator
* Expert *
 
Join Date: Jul 2003
Location: Sacramento, CA
Posts: 6,090
Default

Michael Karas has done the usual research on Yamato's website - if that doesn't help you might try the following settings (based on other scales I have worked with that just continuously spew data):

2400, 8N1
9600, 8N1

Note that some devices only send either CR (0x0D) or LF (0x0A) as a line terminator rather than CR-LF.

If the scale is in fact from Yamato then contacting them is the easiest way to go - usually they'll be willing to send you whatever applicable documents they have which should get you rolling.
__________________
"With the appearance of the AddressOf operator, an entire industry has developed among authors illustrating how to do previously impossible tasks using Visual Basic. Another industry is rapidly developing among consultants helping users who have gotten into trouble attempting these tasks." -Dan Appleman
Reply With Quote
  #5  
Old 07-24-2011, 05:13 PM
Cerian Knight's Avatar
Cerian KnightConnect with Yamato scale Cerian Knight is offline
Polymath (in disciplina)

Super Moderator
* Expert *
 
Join Date: May 2004
Location: Michigan
Posts: 4,199
Default

The balances I work with only use 7 data bits and default to odd parity.

A reasonable way to check for proper communication settings would be to try a remote tare. Send 'T' or {ESC}T... perhaps followed by CR and/or LF.
__________________
I got all the answers wrong on the GLAT, apparently even #9 (where I put a period in the middle of the box and labeled it 'singularity ripe for rapid inflation').
Reply With Quote
  #6  
Old 07-24-2011, 11:27 PM
mkaras's Avatar
mkarasConnect with Yamato scale mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

The DPI-500 scale users manual that I linked to from the Yamato web site has a whole section of its setup menu devoted to setting up the serial port communications. I suggest that carnation mess around with the scale that he has to see if it as a similar menu as to that shown on Page 6 for the DPI-500. The selections that it has available include:

A1 - Baud Rate {1200, 2400, 4800, 9600}
A2 - Data Bits/Parity {8N, 7O, 7E}
A3 - Transmission Mode {C=Continuous, d=Demand}
A6 - Serial Port Mode {0=Full Duplex, 1=Gross/Net/Tare Print Mode}

Michael Karas
Reply With Quote
  #7  
Old 07-28-2011, 02:52 AM
carnation's Avatar
carnation carnation is offline
Junior Contributor
 
Join Date: Apr 2003
Posts: 316
Default

Quote:
Originally Posted by mkaras View Post
Where did you get access to the scale?

Is it a very old scale?

When I combed through the Yamato web site I found not one bit of their product line with model numbers that even seem to come close to "HB 3000".

There was another thread here a while back where somebody was having great trouble getting a serial interface to a scale working. I had mentioned several times that they needed to check carefully that they had the RxD and TxD signal line connections correct. The thread went on for some time until I said my point again and it turns out that they did indeed have these connections swapped. In case you are interested the thread is here:

digital scale/ indicator in vb

So I pose to you that you may need to use some experimental investigation to get your serial port connected properly. Without a proper connection no amount of software work or dealing with stop bits and parity will do any good.

Let me ask a few questions and we'll see if we can get you going.

1) What type of serial port connection to the PC are you using? Is it a PC with a native COMM serial port or are you trying to use a USB to RS232 converter cable?

2) Do you have access to and ability to use some test equipment to try to determine the serial port pinning on your equipment? An oscilloscope would be best but a decent digital multi-meter would also work. (If you have access and ability to use I can try to talk you through the measurement techniques to sort out the pinning.

3) What type of serial port connector is on your scale. DB-25? DSub-9? Male connector with visible pins or a Female type with socket type pins?

4) What types of cables do you have?

Michael Karas
Yes, it is very old, so I can not search for the manual.
- I am using USB to RS232 converter and I can test this to get data Ok from barcode reader,
- The connector is DB9-Female
Reply With Quote
  #8  
Old 07-28-2011, 06:41 AM
mkaras's Avatar
mkarasConnect with Yamato scale mkaras is offline
Ultimate Contributor

Retired Leader
* Expert *
 
Join Date: Mar 2004
Location: Beaverton, OR
Posts: 1,874
Default

Quote:
Originally Posted by carnation View Post
Yes, it is very old, so I can not search for the manual.
What stops the search for a manual just because it is old? You should definitely attempt to contact Yamato to see if they can dig something out of the archives.
Quote:
Originally Posted by carnation View Post
- I am using USB to RS232 converter and I can test this to get data Ok from barcode reader,
So what tests are you intending to do? I suggest that you test the PC side and the USB to RS232 converter setup first. Get your PC setup with a program like HyperTerm or TeraTerm (this latter one is free from here http://ttssh2.sourceforge.jp/). Then comprehend the Com port number assigned to the driver for your converter and open the terminal emulator program @ that Com port. Now carefully setup a short across the pins 2 & 3 at the RS232 end of your adapter. This should permit typing you do in the terminal program to be echoed back to the PC so you can see it on the screen. If that works you have validated the PC side communications.
Quote:
Originally Posted by carnation View Post
- The connector is DB9-Female
As you can see the USB to RS232 converter cable end is a DB9-Male connector. There will be an immediate impetus to connect the adapter directly to the scales DB9-Female connector. This may work or it may not. The chance of it working is less than 50/50. I need to know the answer to question I asked before about your access to some type of test equipment before I can suggest how you can attempt to determine the signal pinning of the scale end of the serial connection.

--------------

Did you look at the scale menus for any RS232 setting options?

Is there a strapping jumper on the scale circuit board that may enable setup menus to appear?

Michael Karas
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Connect with Yamato scale
Connect with Yamato scale
Connect with Yamato scale Connect with Yamato scale
Connect with Yamato scale
Connect with Yamato scale
Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale Connect with Yamato scale
Connect with Yamato scale
Connect with Yamato scale
 
Connect with Yamato scale
Connect with Yamato scale
 
-->