HBM WE2107 User manual

I1820-1.3 en
WE2107
Communication commands
Operating Manual

d

3
WE2107 - Communication commands
I1820-1.3 en HBM
Contents
Safety information 4. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
1 Introduction and appropriate use 5. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2 Command set for the WE2107 6. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.1 Complete menu structure and commands 7. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.2 Command format 14. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3 Responses to commands 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.1 Responses to input 15. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.2 Responses to parameter queries 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.3.3 Responses to incorrect or unknown commands 16. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.4 Output types for measured values 17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.5 Password protection parameters 17. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
2.6 Command overview (alphabetical order) 18. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3 Individual command descriptions 20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.1 Interface commands (asynchronous, serial) 20. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.2 Factory default curve 29. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.3 Scale characteristic curve and output scaling 36. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.4 Settings for linearization 50. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.5 Settings for measuring mode 53. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.6 Commands for measuring mode 59. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.7 Special functions 71. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.8 Commands for legal for trade applications 83. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.9 Commands for setup the control of an external display 86. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.10 Commands for setup the print function 96. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.11 Commands for set up the real time clock 105. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.12 Commands for setup the buttons, digital inputs 109. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
3.13 Commands for setup the filling control / limitswitches 118. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4 Communication examples 139. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.1 Making settings for bus mode 139. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.2 Connecting WE's to the bus 139. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.3 Setting the data output 140. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.4 Setting the baud rate 141. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.5 Determining bus occupation (Bus Scan) 143. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.6 Measurement query in bus mode 144. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
4.7 Setting a parameter in all the connected WE's 145. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Index 146. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

WE2107 - Communication commands
4
I1820-1.3 enHBM
Safety information
See operating instructions Part 1
All the factory settings are stored at the factory so that they are safe from power failure and
cannot be deleted or overwritten. They can be reset at any time by using the command TDD0.
For more information, see "Individual Command Descriptions".
The factory set production number must not be changed.
Residual risks are indicated in these mounting instructions by the following symbols:
Symbol: CAUTION
Meaning: Possible dangerous situation
Warns of a potentially dangerous situation in which failure to comply with safety requirements
could result in damage to property or some form of physical injury.
Symbols for operating instructions and useful information:
Symbol: NOTE
Means that important information about the product or its handling is being given.

5
WE2107 - Communication commands
I1820-1.3 en HBM
1 Introduction and appropriate use
The WE2107 digital weighing electronics are weighing electronics for non‐automatic
weighing instrument (NAWI). They include all the requisite weighing functions for this
application:
DDigital filtering
DAdjusting the factory characteristic curve
DAdjusting the scale characteristic curve
DLinearization
DOne, two or three ‐range display
DOutput scaling of the measured values
DRange monitoring of the display values (OIML, NTEP)
DZero setting ("2 %)
DTare
DGross/net selection
DStandstill recognition
DZero on start‐up
DAutomatic zero tracking
DCalibration switch with calibration counter
DGravitational acceleration correction via a settable factor
DNonvolatile parameter storage
DParameter password protection
A command set for filling and dosing extend the field of applications.
The digital serial interface for remote control is a RS‐232 interface or RS‐485 (2wire)
interface. With RS‐485 up to 32 bus members can be connected to the bus system.
The abbreviation WE is also used for the WE2107 weighing electronics in the following text.

WE2107 - Communication commands
6
I1820-1.3 enHBM
2 Command set for the WE2107
Commands can be roughly divided into: ODER
The WE commands can be split into the following groups:
DInterface commands
(ADR,BDR, COF,S...)
DFactory characteristic curve and earth acceleration correction
(SZA, SFA, ACA, ACU )
DScale adjustment and output formatting
(CWT, LDW, LWT, NOV, RSN, MRA, MRB, MIV, MDT, ENU, DPT)
DSettings for linearization
(LIN, LIM )
DSettings for measuring mode
(ASF, FMD, ZSE, ZTR )
DCommands for measuring mode
(MSV?, TAR, TAS, TAV, CDL)
DSpecial functions
(TDD, RES, DPW, SPW, IDN?, ERR?, AOV?, SOV?)
DCommands for legal for trade application
(LFT, TCR?)
DCommands for the control of an external display
(FUB, EDP, EDS, ED1, ED2, EDC)
DCommands for printing setup
(ESC, PES, PID, PLB, PLE, PRT, PST, SHC)
DCommands for real time clock
(TDT, TME, TMM)
Commands for setup buttons, digital inputs
(BFL, BFS, FIN, MAL, TDL)
DCommands for filling control, limit switches
(SFU, RUN, BRK, TAD, EPT, RFT, MFT, MDT, FRS, LIV, SUM, NDS, CSN)

7
WE2107 - Communication commands
I1820-1.3 en HBM
2.1 Complete menu structure and commands
This chapter describes the relationship between the parameter menu and the implemented
commands (see also manual part 1).
Access
level
Main menu level
.1.
second menu
level
.2.
third menu level
.1. .2.
Command
0InFO
VAL
CALC TCR?
tArE TAV?
ZEro ‐
totAL SUM?
FILL FRS?
Sv_nb IDN?
F_nb IDN?
Error
Adc AOV?
SEnS SOV?
Error ERR?
1Print
rESLt
Prt SHC(0...6)
PAr
ALL SHC7

WE2107 - Communication commands
8
I1820-1.3 enHBM
Access
level
Main menu level
.1.
second menu
level
.2.
third menu level
.1. .2.
Command
2SEtPt
LS_1 LIV1
InPut LIV1,(P2)
LEvEL LIV1,(P3)
OFF_L LIV1,(P5)
On_L LIV1,(P4)
LS_2 LIV2
InPut LIV2,(P2)
LEvEL LIV2,(P3)
OFF_L LIV2,(P5)
On_L LIV2,(P4)
LS_3 LIV3
InPut LIV3,(P2)
LEvEL LIV3,(P3)
OFF_L LIV3,(P5)
On_L LIV3,(P4)
LS_4 LIV4
InPut LIV4,(P2)
LEvEL LIV4,(P3)
OFF_L LIV4,(P5)
On_L LIV4,(P4)
FILL
doS_t MFT,
EtY_t EPT
rES_t RFT
tAr_t TAD

WE2107 - Communication commands
10
I1820-1.3 enHBM
Access
level
Main menu level
.1.
second menu
level
.2.
third menu level
.1. .2.
command
3Prt_S ‐
time TME
modE TMM
dAtE TDT
dAY ‐
nonth ‐
YEAr ‐
InIt ‐
ESC11 ESC
ESC12 ESC
ESC13 ESC
ESC14 ESC
ESC15 ESC
ESC21 ESC
ESC22 ESC
ESC23 ESC
ESC24 ESC
ESC25 ESC
IdEnt nbr PID
Prot ‐
E_Ch PES
E_Ln1 PLB
E_Ln2 PLE
3InPut ‐
InP_1 FIN
InP_2 FIN
i_dLY TDL

WE2107 - Communication commands
12
I1820-1.3 enHBM
Access
level
Main menu level
.1.
second menu
level
.2.
third menu level
.1. .2.
Command
0SCALE ‐
Funct SFU
AccES MAL
LEGAL LFT
4AdJ ‐
SEtUP ‐
Unit ENU
AZEro ZSE
ZtrAc ZTR
StiLL MDT
RES RSN
Point DPT
CAP NOV
rAnG1 MRA
rAnG2 MRB
CAL CWT
EA_CL ACA
EA_CU ACU
InPut ‐
Zero LDW
SPAn LWT
MEAS ‐
Zero ‐
SPAn ‐

WE2107 - Communication commands
14
I1820-1.3 enHBM
2.2 Command format
General advice:
Commands can be entered in upper or lower case letters, they are not case‐sensitive, so
either format can be used for input.
Each command entry must be concluded by a delimiter. This can either be a line feed (LF) or
a semi‐colon (;).
If an end label is all that is sent to the WE2107, the WE2107 input buffer is cleared.
The data provided in round brackets () for the commands are mandatory and must be
entered. Parameters in pointed brackets <> are optional and do not have to be provided.
The brackets themselves are not part of the input.
Text must be enclosed in quotes " ".
Responses are given in ASCII characters and terminate with LF. Output in binary characters
is the exception here (see command MSV or COF).
Each command comprises the command shortform, one or more parameters and the end
mark.
Responses consist of ASCII characters and close with CRLF. An exception to this is binary
character output (see MSV and COF commands).
Each command consists of the command shortform, one or more parameters and the
delimiter.
Command shortform Parameter End label
Input ABC X,Y LF or ;
Output ABC? X,Y LF or ;
LF: line feed (lf = 0a hex)
Example: MSV?;
After this command, a measured value is output.
All the ASCII characters ≤20H(blank) can appear between the command short form, the
parameters and the end mark.
For commands and parameters the following characters are allowed:
' ' '+' '‐' '.' ',' '"' '0' ...'9' 'A'...'Z' 'a'...'z'
For a input string (command PST) the input range is : 0x1fhex < char < 0x7fhex . In this case
the string is enclosed with " ...string...".
NOTE
If the master has send a command string (query), than the master has to wait for the answer
before it send the next query.
If the master has send a command string (input), than the master has to wait for at least
10 msec. before it send the next query or command.

15
WE2107 - Communication commands
I1820-1.3 en HBM
2.3 Responses to commands
NOTE
Note on the reaction times of the WE:
The reaction times specified for the WE in the command description do not include the time
taken to transfer the command to the WE and the time taken to transfer the response from
the WE.
2.3.1 Responses to input
The WE works in an RS‐485 2‐wire bus configuration. No responses are given to input,
regardless of whether the input is valid or invalid. After making an entry, use a query to
verify the input.
Example:
ASF3; //Setting the filter to level 3
If the master has send a command string (input), than the master has to wait for at least
10 msec. before it send the next query or command.
ASF?; //query the last input command
If the master has send a command string (query), than the master has to wait for the answer
before it send the next query or command.
NOTE
If the parameter is a legal for trade parameter, and the legal for trade mode is switched
on, than this parameter will not be changed.

WE2107 - Communication commands
16
I1820-1.3 enHBM
2.3.2 Responses to parameter queries
A parameter query is entered by using the command with a question mark attached.
A parameter query is always answered in ASCII format. The end label is a line feed
(LF = 0A hex).
The output length of a query is always constant for every command.
Example:
Query: ASF;
Response: 03 crlf
If the master has send a command string (query), than the master has to wait for the answer
before it send the next query or command.
2.3.3 Responses to incorrect or unknown commands
The WE does not respond if a command is incorrect or unknown

17
WE2107 - Communication commands
I1820-1.3 en HBM
2.4 Output types for measured values
The response to measurement queries (MSV?) depends on the output format (COF) that is
set (binary or ASCII output). Data output works with fixed output lengths (see command
COF):
Example:
Format command WE2107 response No. bytes
COF0; MSV? Yy CR LF (y‐ binary) 4
COF2; MSV? Yyyy CR LF (y‐binary) 6
LF: line feed (lf = 0a hex), CR: carriage return ( = 0d hex)
The end mark of the data output is always a line feed. However, this character must not be
filtered out as an end mark during binary output, as these characters may also be included in
the binary code of the measured value. Which is why only the byte count is helpful with
binary output.
2.5 Password protection parameters
WE password protection includes the important settings for the scale curve and its identifica
tion. Commands with password protection are only activated after the password has been
entered. Unless the password is entered via the command SPW, this command input will not
be executed. A query is always possible.

WE2107 - Communication commands
18
I1820-1.3 enHBM
2.6 Command overview (alphabetical order)
Command PW LFT Function Page
ACA X X Earth acceleration factor (adjustment) 34
ACU X X Earth acceleration factor (usage) 35
ADR Device address 22
AOV? ADC overflow counter 81
ASF Filter selection 54
BDR Baud rate and parity bit 23
BFL XButton function (long) 113
BFS XButton function (short) 111
BRK; Stop dosing / filling 134
CDL; Set to zero 66
COF Output format for data output ( MSV?) 24
CSN; Clear total weight and counters 138
CWT X X Calibration weight 41
DPT X X Decimal point 46
DPW Password definition 72
ED1 XEnd character 1 (external display) 93
ED2 XEnd character 2 (external display) 94
EDC XCheck sum (external display) 95
EDP XProtocol external display 88
EDS XStart character external display 92
ENU X X Unit of measurement 44
EPT Emptying time (dosing function) 133
ERR? Error memory 78
ESC XESC sequences (printer) 98
FIN XFunction digital inputs 1,2 115
FMD XFilter mode 56
FRS? Filling result 135
FUB Function UART2 (printer / external display) 87
IDN? XElectronics identification with serial number 75
LDW X X Scale characteristic curve, zero point 38
LFT X X Legal for trade 84
LIM X X Linearization, measured values 51
LIN X X Linearization, output values 52
LIV XLimit switches 127
LWT X X Scale characteristic curve, full scale 39
LFT Legal for trade parameters
PW Password protection via commands DPW/SPW

19
WE2107 - Communication commands
I1820-1.3 en HBM
Command PW LFT Function Page
MAL XParameter menu access level 110
MFT XMaximum filling / dosing time 132
MRA X X Multi‐range switch point 1 48
MRB X X Multi‐range switch point 2 49
MIV? Data output (internal resolution for adjustment) 64
MSV? Data output 60
MDT X X Motion detection 47
NDS? Dosing counter 136
NOV X X Nominal output value 43
PES XNumber of empty spaces in each row (printing) 100
PID XPrint identification (counter) 101
PLB XNumber of empty lines before printing values 99
PLE XNumber of empty lines after printing values 103
PRT XPrint protocol 97
PST XPrinter strings 102
RES; Reset electronic 74
RFT Residual flow time (filling) 131
RSN X X Display resolution 45
RUN; Start dosing 129
S... Selecting electronic in bus mode (Select) 27
SFA X X Factory default curve full scale (nominal (rated)
value)
32
SFU XScale function 126
SHC Start hard copy 104
SOV? Sensor overflow counter 82
SPW Write enable for all password‐protected para
meters
73
SZA X X Factory default curve zero point 31
SUM? Total weight 137
TAD Tare delay time (filling function) 130
TAR; Taring 67
TAS Gross / Net selection 70
TAV Tare value 68
TCR? Legal for trade counter 85
TDD Read/Save setting in EEPROM 76
TDL Delay time digital tilt input 117
TDT XDate (printing) 106
TME X Time (printing) 107
TMM XTime mode (printing) 108
ZSE X X Zero on start‐up 58
ZTR X X Automatic zero tracking 57
LFT Legal for trade parameters
PW Password protection via commands DPW/SPW

WE2107 - Communication commands
20
I1820-1.3 enHBM
3 Individual command descriptions
3.1 Interface commands (asynchronous, serial)
To establish communication between the WE and the computer, the interface has to be confi
gured. The following commands are available in the WE to set up the interface and to select
the transfer format:
DCommunication address for bus mode ADR
DBaud rate setting BDR
DOutput format for measurement data (ASCII / binary) COF
DSelect command for a bus user via the communication address (Select) S...
Characteristic data of the serial interface:
Start bit: 1
Word length:8 bits
Parity: none / even
Stop bit: 1
Baud rate: 1200 …38400 baud
The asynchronous interface of the WE is a serial interface, i.e. there is serial transfer of data,
bit by bit and asynchronously. Asynchronously means that transmission works without a
clock signal.
A start bit is set in front of each data byte. This is followed by the bits of the word (D0...D7), a
parity bit for transfer checking and a stop bit.
Start Parity Stop
1 bit Word length = 8 data bits 1 bit 1 bit
1 character
Fig. 1: Composition of a character
Other manuals for WE2107
1
Table of contents
Other HBM Scale manuals