(Revised) Communication Manual
(Revised) Communication Manual
(Revised) Communication Manual
En Ver. 1.01
1. Introduction …………………………………………………………………………………………………. 3
1-1. Applicable models ……………………………………………………………………………. 3
1-2. Features of the communication function………………………………………………….………. 3
2. Interface specifications………………………………………………………………………………………. 4
2-1. RS-232C ……………………………………………………………………………………………….. 4
2-2. USB ……………………………………………………………………………………………………. 5
3. Connection diagrams………………………………………,,………………………………………………. 6
3-1. Connecting the balance to the printer ……………………………………………………………. 6
3-2. Connecting the balance to the external display unit……………………………………………. 6
3-3. Connecting the balance to a PC or a PLC………………………………………………………… 7
4. Connecting to the printer …………………………………………………………………………………. 10
5. Connecting to the external display unit ………………………………,……………………………….. 11
6.Connecting to a PC or a PLC ………………………………………………,…………………………….. 12
6-1. Quick USB mode ………………………………………………………………………………. 12
6-2. Virtual COM mode ……………………………………………………,…………………………… 12
6-3. RS-232C ……………………………………………………………………………………………… 13
6-4. Data transmission software WinCT……………………………………………………….……… 13
7. Data output………………………………………………………………………,………………………….. 14
7-1. Data output mode…………………………………………………………………………………… 14
7-2. Weighing data format …………………………………………………………………………… 16
7-3. Output examples of weighing data format …………………………………………………….. 19
7-4. Other data formats ………………………………………………………………………… 20
8. Commands …………………………………………………………………………………………… 21
8-1. Control commands ………………………………………………………………………………… 21
8-2. The <AK> code and error codes ………………………………………………………………. 24
8-3. Command usage examples ….…………………………………………………………………….. 25
9. Error codes ………………………………………………………………………………………………… 30
9-1. Error codes list ………………………………………………………………………………….. 30
10. The UFC function……………………………………………………………..…………………………... 32
10-1.UFC program commands …………………………………………….…………………………… 32
10-2. Examples of creating UFC program commands……………………………………………… 34
11. Internal settings ………………………………………………………………………………………… 35
11-1. How to set…………………………………………………………………………………………… 35
11-2. List of items(communication entries only) ……………………………………………….. 37
This communication manual is a supplementary instruction manual for connecting the balance to
peripheral devices such as PCs and printers through the use of its communication function.
□ GF-A Series
GF-1603A, GF-1003A, GF-603A, GF-403A, GF-303A, GF-203A
GF-10002A, GF-6002A, GF-4002A, GF-3002A, GF-2002A
GF-10001A, GF-6001A
□ A USB interface is provided as standard and you can select between a quick USB for inputting
the weighing result directly into the PC software or bidirectional communication using a virtual
COM port.
□ By using the GXA-03: RS-232 C interface isolation type, which is a specialized option, an
RS-232C interface can be added.
2-1. RS-232C
Connector: D-Sub9-pin(male)
Method of transmission: EIA RS-232C
Format of transmission: Asynchronous, two-way, half-duplex transmission
Data transmission rate: 5 times per second(ca. 5.21Hz), 10times per second(ca. 10.42Hz)、
20 times per second(ca. 20.83Hz)
Linked with the setting value of the internal setting’s display rewrite cycle
Signal format Baud rate 600, 1200, 2400, 4800, 9600, 19200, 38400 bps
Data bits 7 or 8 bits
Parity EVEN、ODD (Data length 7 bits)
NONE (Data length 8 bits)
Stop bits 1 bit
Code ASCII
Format of 1 character
1 -5V ~ -15V
St 0 1 2 3 4 5 6 P Sp
0 +5V ~ +15V
LSB MSB
Start bit Data bits Stop bit
D-Sub9, pin arrangement
Parity bit
Pin No. Signal Direction Meaning, remarks
name
1 - - N.C. (same potential
with SG)
2 RXD Output Transmitted data
3 TXD Input Received data
4 - - N.C.
5 SG - Signal ground
6 DSR Output Data Set Ready
7 RTS Input Request to Send
8 CTS Output Clear to Send
9 - Output N.C. (12V Output) 9 8 7 6
Connection diagram(when connecting to a PC)
Balance(DCE) PC(DTE)
RXD 5 4 3 2 1
RXD
TXD
TXD
RTS
RTS
CTS
CTS Inch screw #4-40UNC
DSR
DSR
SG
SG
Connector: miniB(female)
Standard: USB 2.0
Device class: HID(Human interface device):Quick USB
CDC(Communication device class):Virtual COM
5 4 3 2 1
It is possible to connect the balance to peripheral devices, PCs, PLCs, etc. by using the RS-232C
connector and the USB miniB connector which are provided as standard with the balance.
To print the weighing result measured with the balance on paper, connect a specialized balance
printer (e.g. AD-8127 Compact Printer) to the device.
□ Connect the balance with the printer using the RS-232C cable.
For settings when connecting the balance to the printer, refer to section 4, “Connecting to the
printer”.
RS-232C
Balance Printer
When confirming the weighing values or operating the balance with keys remotely, connect the
specialized external display unit to the balance. The specialized external display unit consists of the
external display unit AD-8920A (display only) and the external controller AD-8922A.
□ Connect the balance to the external display unit using the RS - 232C cable.
For settings when connecting the balance and the external display unit, refer to section
5, ”Connecting to the external display unit".
RS-232C
RS-232C RS-232C
When converting the weighing values of the balance into electronic data or when remotely
controlling the balance, connect it to a PC or a PLC.
Balance PC
RS-232C
Balance PLC
USB
RS-232C
PC
Balance
Printer
□ When connecting the balance to a PC and to the external display unit, connect the balance to the
PC with a USB cable and connect the balance to the printer with an RS-232C cable.
USB
RS-232C
PC
Balance
RS-232C
(Insulated type)
RS-232C
(Standard)
PLC
Balance + GXA-03
Printer
RS-232C
(Insulated type)
RS-232C
(Standard)
PLC
Balance + GXA-03
When connecting the printer to the balance for printing measured values, configure the printer and
the balance as follows according to these usage examples.
When connecting the external display unit to the balance, configure the external display unit and
the balance as follows according to these usage examples.
The quick USB mode is a function used to connect the balance with the PC using a USB cable to
directly input the output data of the balance into PC software such as Excel or Word. Windows XP
or later is supported.
Since the balance uses a standard Windows driver (HID), no installation of a special driver is
necessary and communication is possible just by connecting the balance to a PC.
Caution
□ Quick USB is a one-way communication from the balance to the PC. It is not possible to send
control commands from the PC to the balance.
□ Turn off the PC’s screen saver and stand-by modes.
About internal settings
□ With the internal setting of (Quick USB ALL) all data is output including the header
and units of the weighing data according to the output data format set in the internal setting
(USB data format).
□ With the internal setting of (Quick USB NU)only the weighing data values are
output.
Operating instructions (when sending weighing data using the balance's PRINT key)
1. Set the internal setting of the balance to (Quick USB ALL) or to (Quick USB NU).
2. Connect the balance to a PC with the supplied USB cable.
3. When connecting for the first time, the PC will automatically start installing the driver.
4. Start up PC software (Excel, etc.) for transmitting the weighing data.
5. Set the keyboard input mode to half-width characters[A1]. In case of full-width setting activated
the data will not be input correctly.
6. Move the cursor to the place you want to input the weighing data.
7. When you press the PRINT key on the balance, weighing data will be transmitted from the
balance and input at the location of the cursor.
8. Disconnect the USB cable when finished.
Virtual COM mode is a function used to connect the balance with the supplied USB cable and create
a COM port on the PC side for bidirectional communication. Windows XP or later is supported.
Except for Windows 10, when using for the first time, you need to install a special driver on the PC.
For details on how to install the driver, please refer to "Installing the driver for the GX-A / GF-A
series USB interface "Virtual COM mode" on our website (http://www.aandd.co.jp).
About internal settings
□ When using Virtual COM mode, please put the balance’s internal setting to
( bidirectional USB virtual COM).
The RS-232C interface of the balance is the DCE (Data Communication Equipment) that can be
connected to a PC. The RS-232C cable used for connection is the straight type. If there is no
RS-232C connector on the PC, please connect in USB Virtual COM mode.
When a PC is connected through a USB connection in virtual COM mode or with a RS-232C cable,
weighing data can be easily received by the PC with the use of the WinCT data communication
software for Windows. WinCT can be downloaded from our website (http://www.aandd.co.jp). Please
refer to "WinCT setup procedures" and "WinCT operation manual" on our website
(http://www.aandd.co.jp) for installation and setup.
RsCom
□ You can control the balance by sending a command to it.
□ Received data can be displayed and saved as a text file (.txt).
□ By executing the software multiple times, you can communicate with multiple balances.
□ It can be executed simultaneously with other applications. (Does not exclusively occupy the PC)
□ GLP output data can also be received from the balance.
RsKey
□ Weighing data from the balance can be input directly into another applications.
□ If input by keyboard (e.g. with Word or Excel) is possible, the type of application does not matter.
□ GLP output data from the balance can also be input.
□ The PC can be made into an external display for the balance through the use of the test display
function.
RsWeight
□ Received data can be graphed in real time.
□ Parameters of received data such as maximum value, minimum value, average value, standard
deviation, coefficient of variation, etc. can be calculated and displayed.
Caution
□ Depending on the display rewrite cycle and the baud rate, all data may not be transmitted
unless the baud rate is increased.
As for the balance’s weighing data output, for USB it can be changed by the internal setting U-tP
(USB data format) and for RS-232C – by the internal setting (data format).
S T , + 0 0 1 2 3 . 4 5 _ _ g CR LF
WT, +1234.56 g
W T _ _ _ _ + 1 2 3 . 4 5 _ _ g CR LF
+ _ _ _ 1 2 3 . 4 5 _ g _ _ CR LF
S _ _ _ _ _ 1 2 3 . 4 5 _ g CR LF
+ 0 0 1 2 3 . 4 5 CR LF
Data Terminator
S T , + 0 0 1 2 3 . 4 5 , _ _ g CR LF
□ When other data is added to the weighing value, all data will be displayed in one line.
The display sample will be as follows if the ID number, data number, date and time are added.
SAMPLE-0123-4,No,012,2017/07/01,12:34:56,ST,+00123.45, g
S T TAB + 0 0 1 2 3 . 4 5 TAB _ _ g CR LF
When stable
A&D S T , + 0 3 1 4 2 . 0 6 _ _ g CR LF
DP W T _ _ _ + 3 1 4 2 . 0 6 _ _ g CR LF
KF + _ _ 3 1 4 2 . 0 5 _ g _ _ CR LF
MT S _ _ _ _ 3 1 4 2 . 0 6 _ g CR LF
NU + 0 3 1 4 2 . 0 6 CR LF
When unstable
A&D U S , - 0 0 2 9 5 . 8 7 _ _ g CR LF
DP U S _ _ _ - 2 9 5 . 8 7 _ _ g CR LF
KF - _ _ _ 2 9 5 . 8 7 _ _ _ _ CR LF
MT S D _ _ _ - 2 9 5 . 8 7 _ g CR LF
NU - 0 0 2 9 5 . 8 7 CR LF
When overloaded
(plus)
A&D O L , + 9 9 9 9 9 9 9 E + 1 9 CR LF
DP _ _ _ _ _ _ _ _ E _ _ _ _ _ _ _ CR LF
KF _ _ _ _ _ _ H _ _ _ _ _ _ _ CR LF
MT S I + CR LF
NU + 9 9 9 9 9 9 9 9 CR LF
When overloaded
(minus)
A&D O L , - 9 9 9 9 9 9 9 E + 1 9 CR LF
DP _ _ _ _ _ _ _ - E _ _ _ _ _ _ _ CR LF
KF _ _ _ _ _ _ L _ _ _ _ _ _ _ CR LF
MT S I - CR LF
NU - 9 9 9 9 9 9 9 9 CR LF
In addition to weighing data, other data can be added. Switch each internal setting on / off as
necessary.
N o . 0 0 1 CR LF
Data Terminator
number
S A M P L E - 0 1 2 3 - 4 CR LF
ID number Terminator
2 0 1 7 / 1 2 / 3 1 CR LF
Date Terminator
1 2 : 3 4 : 5 6 CR LF
Time Terminator
By sending a specified command from a PC or a PLC to the balance, you can control the balance
such as by requesting weighing data, manipulating various keys and changing the setting value. To
send a command to the balance, add a terminator (<CR> <LF> or <CR> in the internal
setting ) to the command character string.
When the internal setting (AK、error code on)is set、the balance always responds to
reception of all commands sent from a PC or a PLC. Communication reliability is improved by
checking the responding code.
When the internal setting (AK、error code on)is set, the balance responds with the
following.
□ When sending a command requesting various data to the balance, if the balance cannot
transmit the requested data, it sends an error code (EC, Exx). If the balance can output the
requested data, the requested data will be sent.
□ When sending a controlling command to the balance, if the balance cannot execute the command,
it sends an error code (EC, Exx). If the balance can execute the command, it sends the <AK>
code.
<AK> code is the ASCII 06h code.
□ The commands below are processed by the balance, so it will send the <AK> command not only
when a command is received, but also at the end of processing. If the process does not end
normally, the balance sends an error code (EC, Exx), in which case the error is canceled with
the CAL command.
ON command Display on
P command Display on / off(However, only when already on)
R、Z、RZ commands Re-zero(Semi-automatic zero point setting)
T、TR commands Tare the balance
ZR command Zero(Setting the zero point)
CAL command Calibration with built-in weight(GX-A Series)
Calibration with a separate weight(GF-A Series)
EXC command Calibration with a separate weight(GX-A Series)
In this example in order to force an output of the <AK> code the internal setting (AK、
error code on)is set. <AK> code is the ASCII 06h code.
ON command
Display off, stand by
O N CR LF
AK CR LF Command received
AK CR LF Command completed
Zero display
R command
Before execution
R CR LF
AK CR LF Command received
AK CR LF Command completed
Zero display
CAL command
Before execution
C A L CR LF
AK CR LF Command received
Executing(processing)
AK CR LF Command completed
Zero display
□ For an example of the CAL command for the GF-A series, see the example of the EXC command.
R command
Before execution
R CR LF
AK CR LF Command received
E C , E 1 1 CR LF
Zero display
EXC command
Before execution
E X C CR LF
AK CR LF Command received
PRT command
Waiting for the zero setting
P R T CR LF
AK CR LF Command received
AK CR LF Command completed
AK CR LF Command completed
AK CR LF Command completed
Zero display
R command
Before execution
R CR LF
AK CR LF Command received
AK CR LF Command completed
Zero display
AK CR LF Command completed
Zero display
S command
Measured value of sample
S CR LF
S T , + 0 1 0 0 0
Net
?PT command . 0 0 _ _ g CR LF
value
? P T CR LF
P T , + 0 0 1 2 3
Tare
. 4 5 _ _ g CR LF
value
Waiting for
re-zero stability
(processing)
Container weight
value Displayed
with the negative
sign
Filling
When 500.00g of
sample is filled
By using the UFC (Universal Flex Coms) function, it is possible to arbitrarily output contents of
your choice when outputting the weighing data. You can also output a character string when
printing a barcode with a label printer or the like.
In order to use the UFC function, it must be set to internal setting (UFC function on).
To select the output format to use, send the program command from the PC and store it in the
balance. The stored output format is saved even when the balance is turned off.
□ Program commands are combined in comma-delimited or space-separated form, but they can be
omitted to reduce the number of characters. However, the comma after the PF command cannot
be omitted.
□ Spaces ($ SP), <CR> ($ CR), and <LF> ($ LF) can be repeated with numbers by adding '* +
numbers (up to 2 characters)' after the command.
Example: To output 12 spaces: $ SP * 12
To output 9 <CR>’s : $ CR * 9
□ When sending a program command of two or more lines, adding '&' at the end of one line the
balance will judge the next line as the continuation of the program command.
□ The balance sends an error code if there is a problem after receiving a program command and
sends an <AK> code if there is no problem. <AK> code is ASCII 06h code.
Terminator
By changing internal settings of the balance, you can customize balance usage. The contents of the
settings are saved even when the AC adapter is unplugged and they are effective until set again. In
the internal settings menu structure each setting entry is placed in its classification item and one
setting value is registered for each setting entry.
Press and hold while the weighing value is being displayed to enter the
internal settings menu. (the classification item menu)
Then move between items in the internal settings menu.
Change the setting value (by +1). When it exceeds the maximum set
value, it returns to 0.
Enter the settings menu from the classification items menu.
Input the value and move to the next classification item.
In the settings menu push to cancel the input value and move to the
next classification item.
In the classification menu push to complete internal settings and
return to the value indication screen.
Keep pressing(Procedure 1)
Classification item
Setting item
(Procedure3)
Press several times(Procedure 4)
(Procedure7)
Press once(Procedure 5)
(Procedure 8)
Completion、weighing display
Microsoft, Windows, Excel, Word are trademarks of the Microsoft Corporation registered in the
United States and other countries.