How to use the Ohaus Defender 5000 demo kit suitcase

The demo kit allows you to easily test the many interfaces available for the Ohaus Defender 5000 indicator. Its sturdy case is well suited for shipping.

Follow these steps to start using it:

  1. The required components and cables can be found in the compartment on the left side (1).
  2. Connect the load cell simulator (2) (3).

This device simulates the load cell that is normally installed in the weighing platform. Make sure that the pointers on the gauge are at 0, but do not turn on the scale yet.

  1. Set the selector knob (4) to the interface you want to test (e.g. WiFi/BT).
  2. If necessary, plug in the WiFi/Bluetooth dongle (5).
  3. Connect the device to AC power and switch it on.

Turn the load cell simulator counterclockwise to increase the weight:

The configuration of the interface is done in the menu of the scale. Printed instructions are included in the case (6).

When using a WiFi or wired Ethernet connection, the device acts as a TCP server. By default, the IP address is assigned automatically (DHCP). WiFi uses port 6060 and Ethernet port 9761.

After establishing a connection as a TCP client (e.g. using PuTTY), you can request the weight by using one of the commands listed in the manual. The “P” command corresponds to pressing the Print button on the scale. The device will answer using the default template:

This template can be changed in the menu. The menu also allows you to select a different capacity or graduation.

Note: A micro SD card is included in the device, but it cannot be easily accessed.

A&D Precision Balances Communication Manual (GX-A, GF-A and GX-AE)

A&D scales and balances have always been an excellent choice when it comes to data transfer to a computer, printer or other devices. With a data format that has remained virtually unchanged throughout the company’s history, we have seen customers replace decades-old balances with new ones without having to adapt their existing data acquisition software.

This does not mean that the communication capabilities of A&D balances are not evolving. The new GX-A, GF-A and GX-AE models are particularly interesting because they are equipped with multiple interfaces and can be controlled by a connected computer (or PLC) via a large number of commands.

Communication Manual

Best of all, A&D has documented everything in a 56 page communication manual, which you can download here (PDF).

If you thought that my interface description of A&D’s FX-i and FZ-i balances was already quite comprehensive, you’ll certainly be impressed by this communication manual for the GX-A/AE and GF-A series, which covers more topics in much greater detail.

Table of contents

To give you an idea, you’ll find the table of contents from the communications manual below:

  1. Introduction
    1. Applicable models
    2. Features of the communication function
      1. Using standard RS-232C / extension RS-232C interface
      2. Using standard USB interface
      3. Connecting multiple peripheral devices
  2. Interface specifications
    1. RS-232C
    2. USB
  3. Connecting Peripheral Devices
    1. Cables needed to connect to peripheral devices
    2. About data output method
    3. Specific examples when connecting multiple peripheral devices at the same time
  4. Printing Weighing Values To the Printer
    1. In case of AD-8127
    2. In case of AD-8126
  5. Connecting to a PC or a PLC
    1. Quick USB mode
    2. Virtual COM mode
    3. RS-232C
    4. WinCT data transmission software (USB Virtual COM mode or RS-232C)
    5. Notes when using quick USB
  6. Data output
    1. Data output mode
    2. Weighing data format
    3. Output examples of weighing data format
    4. Other data formats
  7. Commands
    1. Control commands
    2. The <AK> code and error codes
    3. Command usage examples
  8. Error codes
    1. Error codes list
  9. The UFC function
    1. UFC program commands
    2. Examples of creating UFC program commands
  10. Internal settings
    1. How to set
    2. List of items (communication entries only)
  11. Key lock function
    1. Locking all key switches
    2. Locking specified key switches
  12. Checking the software version of the balance

Examples

One of my favorite things about this manual are the examples, which clearly presented and easy to follow:

GX-A balance: example of measuring using a container
Example of measuring using a container

Is something still missing?

In my opinion, this is the best communication manual I’ve seen from any weighing instrument manufacturer so far.

My only suggestion for improvement as far as the manual itself is concerned is to add a warning symbol next to the footnote on page 6, which mentions the 12 V voltage on pin 9. When connecting the balance to a device which also uses pin 9 in this way (such as Zebra printers), both devices could malfunction and possibly be damaged. To prevent this from happening, a custom cable must be used instead of a standard cable that connects all pins.

Tare weight and gross weight

When the tare weight is set by the operator by pressing the RE-ZERO button on the balance, it is not returned when using the “?PT” or “?T” commands. This is mentioned in the manual, but no explanation is given. It is also not possible to request the gross weight. Therefore, applications which require this data have to be designed so that the tare operation is triggered by the connected device (see example above).

Note: The UFC template language available on the GX-A/AE and GF-A balances allows the tare weight and gross weight (and of course net weight) to be sent to a connected device.

Ethernet, WiFi, Bluetooth

An Ethernet interface is optionally available, but it costs several times more than an external converter (such as Moxa’s NPort 5110A). If it was more affordable, it would attract more customers planning to connect multiple balances to a single PC for data acquisition purposes.

No wireless LAN option exists (so far). The Bluetooth adapter for the RS-232 interface is unfortunately not available in Europe. This makes it somewhat difficult to use the balances under a fume hood and transferring the weight to a computer outside.

MT-SICS

A&D could make the balances more compatible with existing systems by adding support for the MT-SICS protocol. While MT-SICS is not the holy grail of all protocols, it is widely used and supported in the weighing industry and by software developers. With companies such as Sartorius, Radwag, Kern (KCP) and Ohaus (on some models) offering support for what is effectively MT-SICS, I see no compelling reason why A&D could not do the same.

The balances already understand the “S”, “SI” and “SIR” commands also used by MT-SICS. When set to the “MT” data format, they come very close to sending the same replies as MT-SICS-compatible weighing instruments:

First line: character/byte number
Second line: A&D’s MT format (stable weight)
Third line: MT-SICS format (stable weight)
 1 2 3 4 5 6 7 8 9101112131415161718
S123.45gCRLF
SS123.45gCRLF

Very close, however, is sometimes not close enough (see this blog post where communication failed because of one additional “space” character).

Reading and changing settings through commands

Finally, while these balances support many commands covering a lot of functionality,  it’s not possible to read and change most of the settings by using commands. If this were an option, a connected computer with a configuration software could change the balances’ settings in a quick and user-friendly way.  With new technologies such as WebUSB, it may eventually be possible to change the configuration of the balance directly from a web browser.

Just before publishing this article, I took another look at A&D’s global website and noticed that they have released a program called “WinCT-ParamSet” that does exactly what I suggested above. I will take a closer look at it in a separate article. I hope that the communication manual will be updated to include the commands used by WinCT-ParamSet.

Further information on GX-A, GF-A and GX-AE precision balances

A&D global website: A&D Apollo GX-AE/A & GF-A Series
A&D Europe: A&D Apollo Series GF-A/GX-A
A&D US: A&D Apollo GX-A/GF-A Series Precision Balances
Our shop (in German): Präzisionswaage A&D GX-A

How to record the weight from an A&D scale or balance using A&D’s free RsWeight software

0. Don’t let the terminology confuse you

For the purpose of this article, “serial”, “RS-232” (with and without hyphen), “RS232C” and “COM” can be treated as synonyms. Therefore, a “serial port”, “RS-232C interface” and “COM port” are the same thing.

“Scale”, “balance” and “weighing instrument” are used interchangeably.

1. Connect your A&D scale or balance to your PC

In most cases, your A&D scale will be equipped with an RS-232 interface:

RS-232 interface on A&D FX-300i balance

You will need an RS-232 cable (serial cable) which is compatible with your scale and – if your PC does not have an RS-232 port – a converter from USB to RS-232 such as FTDI’s Chipi-X or US232R.

This converter will create a virtual COM port on your PC. A&D also offers a set consisting of a converter and a cable.

There are other kinds of converters such as RS-232 to Ethernet, though they are not covered in detail here. As long as they can create virtual COM ports, they can be used with RsWeight.

The configuration used is in this tutorial is shown below:

A&D FX-300i balance with RS-232 cable, USB to RS-232 converter and PC running RsWeight software

Not all scales require a converter to USB: The recently released Apollo GX-AE/A & GF-A balances have a USB port which can be configured to work in virtual COM port mode, so all you’ll need is a USB cable. A&D may have released further balances with this functionality by the time you read this article.

Many weighing instruments from A&D can be equipped with a “Quick USB” port. This type of port is recognized as a keyboard and not as a virtual COM port and is therefore not suitable for use with RsWeight (see A&D’s Communication Methods FAQ for further information).

If you know what you’re doing, you can also find USB to RS-232 converters that can be plugged directly into the RS-232 port of your scale (no separate serial cable required). We offer such a solution for A&D scales with a round DIN8 connector such as the HC-i counting scales or FG-KAL/KBM scales (currently only available in our German scales shop):

USB to RS-232 (DIN8) cable

2. Install the driver for the USB to RS-232 converter (or for your balance)

On Windows 10, driver installation will usually happen automatically when you plug in the converter (on your PC). If this is not the case, you can download the driver from the manufacturer’s website, e.g.:

For other converters, please check with your supplier.

3. Download and install RsWeight

RsWeight is available for free from A&D as part of the WinCT suite. Installation is straight forward and should not pose any challenges: Download the Zip file, unzip it, start setup.exe and follow the prompts on the screen.

4. Configure RsWeight

You’ll find RsWeight under the “A&D WinCT” group in the start menu. On Windows 10, you can also open the start menu and start typing “RsWeight”.

In the “RS-232C” menu, select the COM port to which your scale is connected on your system. By clicking on the combo box, you can see the full names (requires RsWeight 5.40 or later):

COM port selection in RsWeight

If you’re using a USB to RS-232 converter with FTDI’s chipset, it will show up as a “USB serial port” (as shown above). Converters made by other manufacturers may have slightly different names, but usually they contain the words “serial” and “port”.

The new Apollo GX-AE/A and GF-A balances will be shown as an “AND USB Port for Balance”.

If you’re in doubt, open the Windows Device Manager (under Windows 10, press Ctrl + X, then select Device Manager) and navigate to Ports (COM & LPT):
Ports in Windows Device Manager

You can then simply unplug the converter (or balance) from your PC and watch which device disappears (and hopefully reappears when you plug it in again). If you cannot find a suitable device, you must resolve this issue before continuing (most likely you don’t have the correct driver installed, see section 2 above).

All other interface parameters are already set to the default values required by (nearly) all A&D scales and balances:

  • Baud Rate: 2400
  • Parity: Even
  • Length: 7
  • Stop Bit: 1
  • Terminator: CR/LF

RsWeight baud rate is set to 2400

If you’ve changed these settings in the menu of your scale, you need to make exactly the same changes in RsWeight. If you didn’t modify the default settings of your scale, all you have to do in RsWeight at this stage is set the COM port.

5. Start data logging

Press Start in RsWeight, put an object on your balance, wait for the stability indicator to show up in the display and press the PRINT button. The weight will appear in RsWeight:

Weigh received in RsWeight

Note: If you do not want to manually press the PRINT button on your balance, you can either change its data transmission mode or instruct RsWeight to request the weight by checking the Repeat checkbox and setting an interval in seconds. Further information can be found in the manual of your balance and in the RsWeight Operation manual (PDF).

We do not recommend using “stream mode” with RsWeight as the software will eventually become too slow to record all values. You can see this in this screenshot where the balance was sending 20 values/s, but RsWeight slowed down to 4 values/s after a few minutes. If you want to continuously record rates of 10 weight values/s (or more) over several minutes, hours or even days, consider using our inexpensive Simple Data Logger software.

6. Export to CSV

In the Option menu, make sure that the Decimal Point is set correctly for your region (e.g. USA->Dot, Germany->Comma). Then, go to File / Save / Data Save and enter a file name and location:

Save recorded weight as CSV

You will be able to open this file in Excel (and other applications) and the data will be neatly arranged in columns (if not, then you probably picked the wrong decimal separator):

CSV file from RsWeigh opened in Excel

What if no weight is received from the scale?

This problem can be difficult to solve because there are many components involved in recording the weight from your scale:

  • The scale or balance,
  • the RS-232 cable,
  • the USB to RS-232 converter (if required),
  • and the RsWeight software.

If there’s something wrong with just one of these items, data transmission will fail. From our experience, the most common issues are:

    • Wrong COM port. The COM port number will be assigned by your PC, so you can’t just copy it from this article. Note that there may be other COM ports present on your system even if you’ve never connected a converter to your PC before. It is absolutely necessary that you choose the right port. RsWeight cannot do this for you, though it does make it easy by showing the full COM port name (since version 5.40).
    • No driver, wrong driver or outdated driver installed for your USB to RS-232 converter or balance. This a particularly common problem on Windows 7. Confirm that the manufacturer’s name and not “Microsoft” is shown under Driver Provider when you open the Device Manager, right-click on the converter, select Properties and switch to the Driver tab:
      USB Serial port driver propertiesIf you suspect that you don’t have the correct driver installed, download it from the manufacturer (see section 2).
    • The scale has not yet stabilized. If you press the PRINT button and the weight is not stable, no data will be transmitted. Depending on the model of your scale, you may be able to change this setting (please consult the manual). Otherwise, just wait until the stability symbol appears.
    • Balance settings have been modified. If the settings of your balance no longer correspond to their default values, data transfer may fail. This applies in particular to settings of the serial interface, such as the baud rate and the data format. Please consult the manual of your balance to ensure that each setting corresponds to the factory setting.
    • Wrong serial cable. A&D scales generally require a straight 1:1 cable, not a crossed (null modem) cable. If you happen to find a cable that “looks like it may work”, check that it is wired correctly (using a continuity tester, you cannot tell how a cable is wired by looking at it from the outside unless you have superpowers).

It’s extremely rare for the RS-232 port on an A&D scale to be defective. We’ve only seen this happen once so far. Before you assume that your scale is defective, please make sure that you’ve excluded all other possible causes.

Additional information is also available from A&D:

If you are unable to record any data from your scale with RsWeight even after carefully following the instructions in this article and in the linked documents, please contact your weighing instruments dealer or A&D.

Please understand that we cannot offer free support if you have not bought your A&D scale or balance from us.