G&G GmbH | Interface RS 232C
12.3 Remote control instructions
Via the RS232 data interface, the computer can control the balance with subsequent commands.
If the transmit / device setting is 27 (27=1B
hex
, default setting), the remote control commands are sent to
the balance by ASCII code:
1BH+70H (ACSII Code p): sending data (Print)
1BH+71H (ACSII Code q): calibration function is active (CAL - Key)
1BH+72H (ACSII Code r): Counting function is active
1BH+73H (ACSII Code s): Weighing unit selection
1BH+74H (ACSII Code t): Taring (TARE - Key)
12.4 RS232 Pinout (9-pin D-Sub)
DE-9 plug pin-out (9-pin., male), as it is usually
available at DTE
DE-9 socket pin-out (9-pin., female), as it is
usually available at DCE
DTE - data terminal equipment (Terminals resp. computer)
DCE - data circuit-terminating equipment (Balance)
Carries data from DCE to DTE.
Carries data from DTE to DCE.
Application Example:
If the setting is C3---2, C4---27 (default setting), the codes shown in VB as following:
MSComm1.Settings = "600,n,8,1"
MSComm1.Output = Chr(&H1B) + Chr(&H70) ’sent a print commando
’or MSComm1.Output = Chr(27) + Chr(112)
’or MSComm1.Output =Chr(27) +"p"
Do
DoEvents
Loop Until MSComm1.InBufferCount = 14
a = MSComm1.Input
Print a
Software and additional manuals can be downloaded at https://gandg.de