Komunikacija We2108
Komunikacija We2108
doc / Page 1 of 50
WE2108
BA.WE2108-PC82.0e
ba_we2108_pc82_0e_000823.doc / Page 2 of 50
Contents
1 Introduction .................................................................................................................... 3
1.1 Mode of operation......................................................................................................... 3
1.2 Setting up the computer interface................................................................................. 3
2 Course of the communication....................................................................................... 5
2.1 Format of the commands .............................................................................................. 5
2.2 Format of the answers .................................................................................................. 6
2.3 Example of a command string ...................................................................................... 7
2.4 Time sequence of processing....................................................................................... 7
2.5 Access to legal-for-trade data....................................................................................... 8
3 Command set.................................................................................................................. 9
4 Measuring ..................................................................................................................... 11
5 Calibration commands................................................................................................. 19
5.1 Overview..................................................................................................................... 19
5.2 Description of the calibration commands .................................................................... 21
5.3 Examples .................................................................................................................... 24
5.4 Transferring characteristic parameters ....................................................................... 25
5.5 Gravitation correction.................................................................................................. 27
5.5.1 Mode of operation ............................................................................................................... 28
5.5.2 Application examples .......................................................................................................... 28
5.5.3 Error rectification ................................................................................................................. 30
6 Parameter access......................................................................................................... 31
7 Special functions.......................................................................................................... 35
8 Configuration of the interface ..................................................................................... 38
8.1 Hardware description.................................................................................................. 38
8.1.1 Connection (RS232 version)............................................................................................... 38
8.1.2 Mode of operation ............................................................................................................... 38
8.1.3 Baud rate setting ................................................................................................................. 39
8.1.4 Processing time of the commands...................................................................................... 40
8.2 Address setting ........................................................................................................... 41
8.2.1 Commands.......................................................................................................................... 41
8.2.2 Output buffer ....................................................................................................................... 42
8.2.3 Addressing a unit with unknown address............................................................................ 42
9 Bus operation of several WE2108............................................................................... 43
9.1 Connection to the RS485 bus..................................................................................... 43
9.2 Commands for bus operation ..................................................................................... 44
9.3 Setting up bus mode................................................................................................... 46
9.4 Bus-Scan .................................................................................................................... 47
9.5 Examples .................................................................................................................... 48
Appendix: ............................................................................................................................. 49
Address assignment for RDP / WRP............................................................................................. 49
Example: Setting the limit channel 1 ............................................................................................. 50
ba_we2108_pc82_0e_000823.doc / Page 3 of 50
1 Introduction
1.1 Mode of operation
The WE2108 can be remotely controlled by a computer or a PLC through the serial interface. The
commands and queries allow the following functions:
• Query of the displayed measured value
• Controlling scale operation (taring, gross/net switch-over, zeroing)
• Setting the user characteristic (either calibration with calibration weights or entering known
values)
• Reading the entire parameter set out from a preset WE2108 (filters, limits, print protocol
etc.). These parameters can then be copied in further units.
The computer interface works bidirectionally, commands (to the WE2108) and answers (to the
opposite unit) are transferred as string of ASCII characters (measured value output optionally also
binary).
When a printer is used on the WE2108, the operating mode of the interface must be changed over in
the menu and a simultaneous computer interface is then not possible.
If the PC interface cannot be set to these values, then the WE2108 can be changed over in the menu
corresponding to the following table. The change is stored non-volatilely and also applies after
switching off or power interruption.
A change is also possible by software after establishment of communication (see BDR command,
Section 8.1.3).
If the WE2108 no longer reacts to commands, the basic state can be produced initially with the
following steps:
The technical data of the interface are explained in more detail in Section 8. The RS485 version of the
WE2108 is also suitable for configuration of bus operation, refer to Chapter 9.
ba_we2108_pc82_0e_000823.doc / Page 5 of 50
Example:
ASF4; sets the parameter ASF of the WE2108 to the code 4
(filter cutoff frequency 3Hz)
ASF?; outputs the current value of ASF without influencing
the measuring process in the WE2108.
Other characters at arbitrary position within the command are ignored. For example, the entry
A§SF#7 is interpreted as command ASF7; . In the case of numerical entries, preceding zeros are
suppressed, texts must be included in " " .
In the case of a change of the baud rate or interruption of the interface cable, undefined characters
which are interpreted after the next end character as (faulty) command are received. Therefore in this
case an end character should be sent initially to the WE2108 and the answer ignored. This process
sets command processing to a defined state.
ba_we2108_pc82_0e_000823.doc / Page 6 of 50
The end characters CR and LF are set ex works. Deviating characters (ASCII code), which
then are output as end character with all answers, can also be set by the user in the ioSEt
menu. CR (0D hex) and LF (0A hex) are stated as end characters in the examples of this
Manual. A start character which is sent before each answer (factory setting 0 = deactivated)
can also be stated in the same menu.
Remarks:
• Incomplete command abbreviations, individual characters and the end character without
preceding command are also considered as unknown command.
• The command RES delivers no answer. However, pseudo characters or errors (framing
error) can be generated at the interface by restarting the electronics.
• In the broadcast mode (with S98 activated) no answers are output.
• The Select command (Sxx) itself delivers no answer, but can cause the output of the
previously stored answer.
• The command BDR delivers the answer in the new baud rate.
• The number of the characters output as answer differs according to command, but does
not dependent on the current value of the queried parameter. The user software can either
be set to the fixed length or can read all characters up to the end character. This does not
apply for the binary output after MSV?; , see COF command!
ba_we2108_pc82_0e_000823.doc / Page 7 of 50
The password can be set anew at any time without knowledge of the previous password. Therefore
the password protection acts only against inadvertent overwriting of parameters, but not against
misuse. However, every change of a legal-for-trade-parameter is detectable by the status of the
calibration counter:
• If legal-for-trade mode is set (i.e. parameter "trade" = 1 (OIML) or 2 (NTEP)), each change
of a legal-for-trade-parameter results in an increment of the counter. This process cannot
be prevented by the user.
• The counter reading can be read in the inFo menu ("Chec" parameter) or by the query
TDD?; .
• In the industrial mode ("Trade" = 0), the calibration counter remains unchanged.
• Switching over from industrial mode to legal-for-trade and vice versa also increments the
calibration counter.
After configuration of a scale, the counter is therefore incremented by several steps. If this is not
wanted, this order should be complied with:
Switch off legal-for-trade mode
Perform parameter changes
Activate legal-for-trade mode
The counter is then incremented by 2.
Note:
The WE2108 offers the possibility of blocking all parameter changes by a control input (e.g.
with a key switch). In this case the password entries also remain without effect. Set the
parameter F_InP to set up the block (see Reference Manual Section 6.3 and 4.2, "Menu
operation").
ba_we2108_pc82_0e_000823.doc / Page 9 of 50
3 Command set
The commands can be subdivided into:
• Commands for the measuring mode (MSV, COF, ASF, ICR, CDL, TAR, TAS, TAV)
• Commands for adjusting and scaling (LDW, LWT, LVA, LGC)
• Commands for parameter management (TDD, DPW, SPW, RDP, WRP)
• Special commands (IDN, PST, ESR, ADC, RES, SZA, SFA, SZU)
• Interface commands (BDR, ADR, Sxx, STR)
4 Measuring
All commands which act directly on a measured value belong to measuring, these are:
• MSV Measured value output
• COF Output format
• ASF Filter setting
• ICR Measuring rate setting
• CDL Zeroing
• TAR Taring
• TAV Set tare memory
• TAS Gross / net switch-over
• LIV Limit value setting
Note: MSV and COF concern only the output of the measured value through the interface. All other
commands act in the same way on the display value in the display and on the output value.
- MSV –
(Measured Signal Value)
Query: MSV?;
Answer: outputs the current measured value
Parameter: -
Range: ±1.35 * scale nominal value (ASCII / binary)
Factory setting: --
Password protection: no
Parameter backup: not possible
The output measured value is related to the user characteristic and can be a gross or net value (see
command TAS). It is equal to the display value of the WE2108, but can be sent in different formats.
The output format for the measured value must be set previously through the command COF. The
length of the answer (number of characters) depends upon the set format, but not upon the measured
value.
The last generated measured value is stored in the WE2108 and is output on every MSV; command.
In the case of fast query, this can also be the same value two times, although the weight is just
changing.
ba_we2108_pc82_0e_000823.doc / Page 12 of 50
- COF –
(Configurate Output Format)
Query: COF?;
Binary or ASCII formats can be set for the measured value, in addition the unit address and/or
measured value status information can be output. The formats that can be set with COF are listed in
the following tables. The end characters (here: CR and LF) can be set in the menu (ioSEt / E_Ch1,
E_Ch2).
- 01500,25,000 cr lf
End character
3 bytes status, optional
2 bytes address (00...31), optional
8 bytes measured value (pos. sign = blank)
ASCII formats:
COF Byte No.
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
1 s ° ° m m m m m , a a CR LF
5 s ° ° m m m m m , a a CR LF
3 s ° ° m m m m m CR LF
9 s ° ° m m m m m , a a , st st st CR LF
COF11 (net):
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
G ° s m m . m m m ° u u ° T s t t . t t t CR LF
COF11 (gross):
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
N ° s m m . m m m ° u u ° ° ° ° ° ° ° ° ° CR LF
ba_we2108_pc82_0e_000823.doc / Page 13 of 50
The following applies for the formats cof 10 and cof 11:
• The position of the decimal point corresponds to the LCD display and is determined by the
point parameter (Func menu).
• The unit is output only at standstill (otherwise blank character).
• These formats are not permitted in time-critical applications (e.g. weigh feeders)!
Binary formats:
A long integer or integer value (signed) is output.
The order of the bytes can be selected, i.e. MSB first / last. Only measured values up to 32767 can be
output in the formats 2 and 6!
Note:
Arbitrary values between 0 and 255 can occur in the binary output. Therefore the ASCII codes for
carriage return (0x0D), line feed (0x0A) and "NUL" (0x0), which are frequently used for end detection,
can also be contained. The receiving software must therefore be set up for the fixed byte number of
the answer and may not search through the answer bytes for end characters.
- ASF –
(Amplifier Signal Filter)
- ICR –
(Internal Conversion Rate)
The WE2108 uses a multistage filter chain for measured value smoothing:
• An analogue third order filter (cutoff frequency approx. 50 Hz)
• Fast digital filter; cutoff frequency and output rate selectable through ASF
• Moving mean value formation without sampling rate reduction (selectable through ICR,
sampling rate 28...50Hz according to ASF)
Thus the required filter effect and output rate can be set through the two commands (ASF, ICR).
A low cutoff frequency means a good filter effect, but also a longer transient period when the weight
changes. The smallest filter setting at which the standstill is still guaranteed at constant weight is
optimum.
The stated transient periods refer to measured value acquisition by the WE2108. The total transient
period depends in addition upon the mechanical design and the dead load of the scale and the weight
to be weighed.
The output rate is not changed by ICR. High values of ICR result in a slower change of the weight
display after a load step change.
ba_we2108_pc82_0e_000823.doc / Page 16 of 50
- TAR –
(Tare)
Performance of taring
Command: TAR;
Parameter: --
Password protection: no
Parameter backup: --
The TAR command acts like pressing the tare key. The current measured value is tared, if the
standstill criterion is fulfilled. After successful taring, the unit switches over to "net measured value",
this can be checked with TAS?;. The current value is filed in the tare memory and is used for
calculating all following net values.
- TAS –
(Tare Set)
Gross/net switch-over
Command: TAS(x);
Parameter: 1
Range: 0...1
Factory setting: 1 (gross)
Password protection: no
Parameter backup: --
Query: TAS?;
Meaning of the parameter:
0 = Net. Scale display goes into net mode, on query with MSV?; the net value is output
1 = Gross. Scale display goes into gross mode, on query with MSV?; the gross value is output
- TAV –
(Tare Value)
Query: TAV?;
Remarks:
• All following net values are marked with the symbol "PT" (manual tare) independently of
the set taring function (Func menu / F_tAr).
• In the "Manual tare" taring function (F_tAr = 1), the value entered with TAV is stored and
replaces the previous manual tare value.
• After characteristic entries with the commands LDW, LWT (or SZA, SFA), the tare memory
is set to 0.
• The query TAV?; delivers the tare value which is momentarily used for calculating the net
value. This can be a manual tare value or the value of the last taring.
• The tare value is scaled like the display and can also be entered optionally with decimal
point. The following notations are equivalent (example: display with 2 places after the
decimal point 000.00):
TAV2500;
TAV25.0;
TAV25.000;
TAV24.999;
- CDL –
(Clear dead load)
The command CDL acts like pressing the zero key on the unit. Zeroing is performed if the gross value
lies in the allowed zeroing range and the standstill criterion is fulfilled.
ba_we2108_pc82_0e_000823.doc / Page 18 of 50
- LIV –
(Limit Value) available from software P82 on
Command: LIV(0...7),(xx);
Parameter: 2
Range: see tables
Factory setting: 0
Password protection: no
Parameter backup: with command TDD1
Query: LIV?(0...7);
The meaning of these settings is described in detail in the WE2108 operating instructions.
ba_we2108_pc82_0e_000823.doc / Page 19 of 50
5 Calibration commands
5.1 Overview
The procedure is analogous to the entries in the CAL menu. For calibration, the input signals
(between ±2.7mV / V) and the associated display value must be stored non-volatilely for the different
points of the characteristic.
Further information on partial load calibration, linearization and calculation of calibration values is
provided in the operating instructions of the WE2108.
Interal digit
Factory
200000 characteristic
140000 II
20000
I
Load
0,2 1,4 2 in mV / V
Display digit
6000
0
Load
0,2 1,4 in mV / V
The following commands serve for setting the user characteristic through the interface:
• CAP
• LDW
• LWT
• LVA
• LGC
There are two types of calibration depending upon the behaviour of the scale construction:
• Calibration of the scale at two points of the characteristic. The display changes
proportionally to the input signal between these values.
• If in two-point calibration too large measured value deviations occur at medium loads, a
linearized characteristic with three or four points can be entered. A linearity error with a
turning point (positive and negative deviations from the straight line) can be corrected with
the aid of a 3rd order polynomial.
Remarks:
• If the unit should be linearized, the total user characteristic is entered with the LVA
commands. No calibration with the LDW / LWT commands is required previously.
• A possibly performed calibration with LDW / LWT is overwritten by the LVA(1..7)
commands.
• If a LDW / LWT calibration is performed anew after linearization, then the linearization
points are deleted and LVA0 set to 0 (proportional function without linearization).
• The entry with the LVA commands serves for the configuration of linearized scales
referenced to known values. Earlier values which were inadvertently deleted can also be
restored.
• Automatic measurement of the internal values is possible only with the commands LDW /
LWT. The measured values must be determined initially in mV/V for calibrating with
calibration weights and with linearization.
ba_we2108_pc82_0e_000823.doc / Page 21 of 50
- CAP –
(Capacity) available from software P82 on
Query: CAP?(1..2);
Remarks:
• The correct setting of CAP2 is significant for overflow indication, standstill monitoring, zero
setting range etc.
• The stored display values of the scale characteristic (LVA2/4/6) remain unchanged.
Therefore the displayed weighing value is not altered after changing CAP1 / CAP2.
• An error message ( Err65 ) may occur as the new nominal value and the stored display
values do not go well together (LVA2 = 20...120% of CAP2). Instead of this, Err62 appears
when linearization is activated.
• If only the nominal scale value is subject to change (e.g. 60.00 Å 60.000), the previous
scale characteristic may be retained (LVA1/3/5/7). In this case, the display values
(LVA2/4/6) have to be changed in the same proportion as the nominal scale value (note:
when entering CAP in the "Func"-menu, this is performed automatically).
- LDW –
(Loadcell Dead Load Weight)
Query: LDW?;
Answer: stored value, 7-digit with sign
Parameter: 1
Range: 0...270.000
Factory setting: 0
The command results in measurement and temporary storage of the internal value with the scale
unloaded. The value is offset only after the LWT command.
- LWT –
(Loadcell Weight)
Query: LWT?;
Answer: stored value, 7-digit with sign
Parameter: 1
Range: 0...270.000
Factory setting: 200000
The command works analogously to the command LDW. The WE2108 calculates a new characteristic
from LWT and the previously determined value of LDW.
When calibrating with LDW / LWT, the parameter LVA2 must also be tested or set, since it is not reset
by LWT (see example).
- LVA –
(Linearization Value)
Query: LVA?(0...7);
ba_we2108_pc82_0e_000823.doc / Page 23 of 50
Remarks:
• The percentages are related to the nominal load of the scale.
• The internal values 0...270000 represent the measuring range 0...2.7 mV/V.
• The used values must be assigned in ascending order, e.g. LVA6 > LVA4 (with LVA0 = 2).
• With LVA0 = 0 (calibration with two points) a partial load calibration is also possible (LVA2
= 20%...120% of the scale nominal load). The setting is equivalent with calibration by LDW
/ LWT.
• The display values (LVA2/4/6) are entered related to the nominal load, but without comma,
(see examples).
ba_we2108_pc82_0e_000823.doc / Page 24 of 50
5.3 Examples
Calibration with calibration weights (zero and end value / partial load):
SPW"..."; Enter password
LVA2,5000 Value of the used calibration weight
ASF(...); Set filter so that there is a stable display
With unloaded scale wait for standstill
LDW; Acquire (and temporarily store) measured value
Load scale with calibration weight, wait for standstill
LWT; Acquire and store measured value
ASF(...); Set corresponding to the application
TDD1; Store ASF nonvolatilely
The procedure with and without partial load calibration does not differ. Partial load calibration means
that the calibration weight deviates from the scale nominal load.
Note:
The commands LDW and LWT are performed only at standstill. Otherwise the answer ?CRLF is
output and the value is not stored. If no standstill is reached, a very sensitive characteristic has been
set possibly by an earlier calibration. The WE2108 should then be set to a standard characteristic with
the following commands:
After the setting, for instance, the value 3000 is displayed if the electronics measure 1.2 mV / V (given by the
value pair LVA2 and LVA3).
ba_we2108_pc82_0e_000823.doc / Page 25 of 50
Only one user characteristic is always stored in the non-volatile memory of the WE2108,
independently of the method of calibration. The parameters of this characteristic can be output with
one of the following methods:
• Reading with LVA?;
• Reading in the menu
• Printing out the parameter lists
Values which have been stored by measuring in the menu can also be read through the interface, for
instance.
The numerical formats for the different entry types are compared in the following table. When entering
and reading the differences of the different methods should be observed:
• All formats use a fixed decimal point after the first place. In the LVA command this is not
also entered.
• In the menu the values are displayed with one figure less because of the limited display. In
this way there is a rounding error and lower accuracy in the characteristic calculation.
Scaling:
Format max. 6 places 5 places 6 places
Decimal point no decimal point after 1st place after 1st place
Nominal value 2.0 mV / V 200000 2.0000 2.00000
Maximum value 2.7 mV / V 270000 2.7000 2.70000
Example 123456 1.2346 1.23456
Example 060000 0.6000 0.60000
ba_we2108_pc82_0e_000823.doc / Page 26 of 50
Example:
Converting the zero value
Printout corresponds to
Adjustment
LIN : 0 LVA0
LOAd0 : 0 -- (no load, fixed)
LOAd1 : 6000 LVA2
LOAd2 : 0 LVA4
LOAd3 : 0 LVA6
CAL-0 : 0,30000 LVA1
CAL-1 : 1,56000 LVA3
CAL-2 : 0 LVA5
CAL-3 : 0 LVA7
ba_we2108_pc82_0e_000823.doc / Page 27 of 50
- LGC –
(Local gravity correction)
LGC0
Command: LGC0;
Function: Resetting the correction. After this command
the gravitation value of Darmstadt is stored for the
calibration and installation site.
LGC1
Command: LGC1,yy;
Function: Entry / query of altimeter in multiples
of 100m (e.g. 12 = 1200 m above sea level)
(corresponds to parameter ALT)
Parameter: 1
Range: 0..90
Factory setting: 1
LGC2
Command: LGC2,yy;
Function: Entry / query of the latitude
(corresponds to parameter LAT)
Parameter: 1
Range: 0..91
Factory setting: 50
Procedure:
1. Entry of the data of the calibration site with LGC1 / LGC2
2. Calibration with calibration weight, LDW, LWT
3. Entry of the data of the installation site with LGC1 / LGC2
4. TDD1
ba_we2108_pc82_0e_000823.doc / Page 29 of 50
Procedure:
1. Entry of the data of the calibration site with LGC1 / LGC2
2. Provisional calibration with weights, LDW, LWT. This is required for activating the geographical correction.
The accurate weight value is not relevant here.
3. Calibrate scale at all weight values (3 or 4), (entry with LVA or weight calibration with menu)
4. Entry of the data of the installation site with LGC1 / LGC2
5. TDD1
Procedure:
1. Resetting the geographical correction with LGC0. In this way the values for Darmstadt are set, which are
also the basis for calibration of the load cells.
2. Measuring the bias load, entry with LVA1;
3. Calculating the span and entry of the internal value LVA3. Refer to Section 5.4.1 of the Operating Manual.
4. Entry of the data of the installation site with LGC1 / LGC2
5. TDD1;
In this method only the span is corrected. A slight error arises for the zero point at the new installation site,
which can be compensated for by the switch-on zero function ("Auto_Z").
ba_we2108_pc82_0e_000823.doc / Page 30 of 50
After mV/V calibration with HBM load cells, installation site deviating from values for
Darmstadt:
LGC0;
LGC1,xx; xx = Altitude of the installation site/100
LGC2,xx; xx = Latitude of the installation site
TDD1;
Scale was calibrated in Darmstadt or the same use zone (see Section 5.5), installation site
deviating from values for Darmstadt:
Proceed as according to mV/V calibration (see above)
Calibration site and installation site deviating from values for Darmstadt:
LVA?0; Read out and note all used characteristic values (see Section 5.2, LVA)
LVA?1;
LVA?.....
LGC1,xx; xx = Altitude of the calibration site/100
LGC2,xx; xx = Latitude of the calibration site
LDW; Scale unloaded
LWT; Scale loaded (>20% nominal value, accuracy immaterial)
LVA0,yyyy; Enter noted characteristic values again (see Section 5.2, LVA)
LVA.....
LGC1,xx; xx = Altitude of the installation site/100
LGC2,xx; xx = Latitude of the installation site
TDD1;
6 Parameter access
Overview:
• DPW Determining a new password
• SPW Parameter enable with password
• TDD Storing / resetting the parameters
• RDP Direct parameter access (for service / experienced users)
• WRP Direct parameter access (for service / experienced users)
- DPW –
(Define Password)
Defining a password
Command: DPW("passwrd")
Parameter: 1
Range: 1...7 letters or numbers (ASCII characters)
Factory setting: "WE8"
Password protection: no
Parameter backup: automatic
Query: not intended
The user can enter an arbitrary, max. 7-digit password with this command. All ASCII characters which
the WE2108 processes (see Section 2) are permitted. The entry must be in quotation marks ("...").
- SPW –
(Set Password)
Write enable for password-protected user parameters
Command: SPW("passwrd");
Parameter: 1
Range: 1...7 letters or numbers (ASCII characters)
Factory setting: --
Answer: 0CRLF with correct password
?CRLF with incorrect password
Password protection: --
Parameter backup: not possible
Query: not intended
The command SPW with the correctly entered password authorizes entry of certain commands. There
is no distinction between uppercase and lowercase letters in the password entry. No password is
required for queries.
The following commands are password-protected: LDW, LWT, LVA, LGC, TDD0, TDD1, WRP.
ba_we2108_pc82_0e_000823.doc / Page 32 of 50
- TDD –
(Transmit Device Data)
Description:
TDD0;
The command results in a basic setting of the unit given in the ROM. The parameters are
set and non-volatilely stored according to the following table. The settings of the interface
are retained.
Password protection: yes
TDD1;
Parameter changes by WRP and some commands are initially stored only temporarily.
They must be stored nonvolatilely by the TDD1 command, this also activates the settings
in the running scale operation.
Password protection: The extent of the data stored by TDD1 depends
upon whether the password is set.
TDD2;
The parameters listed in the following table are copied from the EEPROM into the RAM.
After switching on or a reset command this occurs automatically.
Password protection: no
Query:
Format: TDD?;
Answer: Reading of the calibration counter
Remarks:
• If changes have not yet been stored (either automatically or by TDD1), the values from the
EEPROM can be restored by the command TDD2.
• The extent of the data stored with TDD1 depends upon the access authorization which
exists on execution of the command. Only the free parameters are stored without a
password (limits, filters, interface parameters).
• With set password TDD1 also stores the scale settings. With legal-for-trade mode
(setting Trade > 0) this causes the calibration counter to be incremented.
• Certain commands (e.g. LWT) store the associated parameters automatically. TDD1 is
then not required (this is noted for the individual command descriptions). The following
applies for password-protected parameters which are not stored automatically (e.g. LVA..):
TDD1 stores the change only if the password is still set!
ba_we2108_pc82_0e_000823.doc / Page 33 of 50
Current
RAM
user settings
TDD0 TDD1
TDD2
TDD0
ROM EEPROM
- RDP –
(Read Parameter)
Read parameter memory
Command: not intended
Query: RDP?(x);
Parameter: 1
Range: 0...255
Factory setting: ---
Password protection: ---
Parameter backup: ---
The query command reads byte by byte directly from the parameter memory. RDP and WRP enable
access to parameters which otherwise are accessible only by menu. These commands are useful in
the production of several scales with the same settings.
- WRP –
(Write Parameter)
Writing in the parameter memory (RAM)
Command: WRP(x),(y);
(writes byte y at address x)
Parameter: 2
Range: 0...219,0...255
Factory setting: ---
Password protection: depending upon the address
Parameter backup: with command TDD1
Query: not intended
Application examples:
• Certain parameters can be accessed directly by individual user software. The address
assignment of the parameters is stated in the appendix for this purpose.
• The input and output is in the ASCII format (3 characters / byte).
• Parameters with a setting range of more than 255 are composed of several bytes. Since the
commands RDP and WRP work in the byte format, a direct relationship between the answers
and weight values for instance does not exist. The values must be composed by the external
program (the LSB is located on lower address, see appendix example).Instead of this, the
commands LIV, CAP, and CTR should be used from software P82 on.
• The complete parameter set can also be transferred to any number of new scales without
knowledge of the address assignment if all settings are made on a "Master" scale (possibly by
menu). For this purpose a copying loop (software of the user) must read out with RDP the
parameters of the master byte by byte and write them with WRP in the new WE2108.
• Write-protected parameters can also be changed through WRP only with password. If
authorization is lacking, the command is not executed and the answer ?CRLF is output.
• Changes by WRP act basically only on the RAM memory. TDD1 must be entered subsequently
for backing up in the EEPROM.
• Without password TDD1 stores only the free parameters (limits, filters, manual tare value,
interface parameters). If the password is set, the scale settings (calibration, zero run-on etc.)
are also stored. In this case the calibration counter is incremented if legal-for-trade mode is set.
• If a parameter is set with WRP and then read with RDP, then the result is always the newly
written value, even if this has not yet been activated and stored by TDD1. To read the values
from the EEPROM, the changed values must be overwritten again with TDD2.
ba_we2108_pc82_0e_000823.doc / Page 35 of 50
7 Special functions
• RES Reset
• IDN Unit identification
• PST Entry of printer text
• CTR Reference quantity for counting scale
• ESR Error query
- RES –
(Restart)
Unit start
Command: RES;
Parameter: --
Range: --
Factory setting: --
Password protection: no
Parameter backup: --
The command RES causes a unit start as after switching on the supply voltage (restart of the
software). The command generates no answer, but error messages can be generated by transient
levels at the interface. All parameters are set to the values stored in the EEPROM.
- IDN –
(Identification)
Query: IDN?;
Answer:
Output of the unit information (31 characters) in the order: Identification string,
serial number, software version
e.g. "WE2108 ","0001234", P81CRLF
The number of the output characters is fixed. The identification string is always output with 15
characters, the serial number with 7 characters.
The identification string may have a maximum of 15 characters, it must be entered as string in
quotation marks ("..."). If less than the maximum allowed number of characters is entered, the entry is
automatically filled up with blank characters up to the maximum allowed number. The serial number
(7 characters) and the software version are entered in the factory and cannot be changed
subsequently.
ba_we2108_pc82_0e_000823.doc / Page 36 of 50
- PST –
(Printer String)
Query: PST?;
Answer: stored line, 20 characters
(only 15 are used for printing)
In certain printing protocols (depending upon F_Prt, Print menu) this text line is output at the weight
printout. The printer line must be entered as string in quotation marks ("..."). If less than the maximum
allowed number of characters is entered, the entry is automatically filled up with blank characters up
to the maximum allowed number.
Note: the same function is also implemented as "STD"-command (for compatibility purposes).
- CTR –
(Counting Scale Reference) available from software P82 on
Query: CTR?;
ba_we2108_pc82_0e_000823.doc / Page 37 of 50
- ESR –
(Event Status Register)
Query: ESR?;
Parameter: 1
Range: 0..99
Factory setting: 0
Password protection: no
Parameter backup: --
Faulty entries through the interface are acknowledged by the WE2108 with ?CRLF (see Section 2.2).
In the scale mode or on parameter entry further errors which are independent of the type of operation
(keyboard or computer command) can occur. These errors are identified by two-digit code numbers
and displayed for 3 seconds in the display (e.g. Err12 ).
This error status can also be queried through the interface with the ESR command. In this case it is
immaterial whether the error was triggered by a preceding command or by manual operation. The
query ESR?; then delivers only an error code if a message ("Err12" ) is displayed in the display at the
time of the query. The answer is then the same as the error number (here: 12CRLF), otherwise it is
0CRLF.
The query can either be made at regular time intervals or following commands the execution of which
can lead to errors.
Examples:
Checking the taring:
TAR; Å Answer 0CRLF
Waiting approx. 500 ms
ESR?;
Å Answer 0CRLF (taring performed)
or Å Answer 11CRLF (no standstill detected)
The meaning of all error codes (1..99) is described in the WE2108 operating instructions.
Note:
The status information of the MSV? command (output in certain COF formats) also delivers the error code in
the case of errors. However, if there are no errors, the outputs of ESR and MSV status differ.
ba_we2108_pc82_0e_000823.doc / Page 38 of 50
1 character
The time between stop bit and start of the next character is arbitrary, since this is synchronized by the
new start bit.
The number of the characters depends upon the command (in MSV?; also upon the selected output
format COF) and can be 2 to 33 characters.
ba_we2108_pc82_0e_000823.doc / Page 39 of 50
- BDR –
(Baud Rate)
Entry of a code number for the required baud rate and the protocol.
Command: BDR(x);
Parameter: 1
Range: 0...7
Factory setting: 7 = 9600 baud, even parity
Password protection: no
Parameter backup: automatic
Query: BDR?;
Answer: output of the set baud rate code
Caution:
• The answer (0CRLF) to the BDR command is already given in the new setting (baud rate,
parity). After changed baud rate communication is no longer possible initially, since the
computer must also be changed over to the new configuration. Therefore the answer is not
received correctly as a rule (framing / parity error at the PC interface).
• After BDR; the control program must provide for a waiting time (approx. 500ms) and then
communicate in the new baud rate. With fast transmission of several commands, further
commands possibly stand in the input buffer before the BDR command is executed.
However, these are deleted at the baud rate switch-over. Command chains such as the
following are therefore not permitted:
TDD0;ASF4;BDR5;ADR10; (ADR10 is not executed)
The transmission time for a command can be calculated with this data. For this purpose determine the
number of the characters in the command and multiply them with the transmission time. Moreover the
WE2108 has a processing time for each command. This also varies on execution several times of the
same command, since the processing clock in the WE2108 is independent of the time of reception.
Guidelines times for 9600 baud are given in the following table.
Remarks column:
1) Statement of the time up to the answer. Execution by the software then
occurs and depends upon whether standstill is detected.
2) Answer in new baud rate
3) No answer
ba_we2108_pc82_0e_000823.doc / Page 41 of 50
- S98 –
"Broadcast command"
After this command every WE2108 executes the following commands, independently of the set
address (the interface setting at WE2108 and control computer must be the same). However, no
answer is output, the transmission line remains at idle level.
- S31 –
(Select)
• If an answer still stands in the output buffer of the WE2108, it is output after the S31
command.
• If the WE2108 is not set to address 31, commands are neither executed nor answered
after S31.
• The general description of the Select command (for the operation of several units on one
bus) is given in Section 9.2.
Command: S98;
S31;
Password protection: no
Parameter backup: not possible
Example:
S98; (broadcast command)
ASF7; Å no answer
ICR?; Å no answer
S31; Å 12CRLF (answer to ICR?;)
This procedure can be used, for instance, in the baud rate change.
Prerequisite:
• The interface configurations of PC and WE2108 must agree. If this is also unknown, the
above stated command string must be output with each setting (baud / parity) until a
correct answer appears.
• The WE2108 can generally be addressed only by PC if the parameter F_Ser is set to 2 in
the ioSEt menu (condition on delivery).
ba_we2108_pc82_0e_000823.doc / Page 43 of 50
BUS RS 485
bus converter
Ta
Tb
Ra
Rb
G ND
500 Ohm G ND
Tb
S TR = 0 S TR = 1
Tb
Ta
Ta
W E2108 W E2108
The HBM interface converter SC232/422A can be used for the PC-side conversion of RS232 (COM
interface) to RS485.
Since the RS-485 is a differential bus interface, the levels are also stated as differential voltage
between the lines (and not ground-related). The following applies as idle level on the RS-485 master
line:
• TB - TA > 0.35 V (given by the terminating resistors at the bus end)
• RB - RA > 0.35 V (given by the master terminating resistors)
The maximum common mode range (raising both lines by the same potential) is +/- 7V. Common
mode signals arise if the reference grounds of the connected units have different potential, e.g. due to
large currents in the supply cable. If required, the potential equalization between the bus subscribers
should be produced through a separate ground wire (not the cable shield). Shielded cables must be
used for EMC reasons for the bus lines (in the HBM product range, e.g. 6 x 0.14m²).
- STR –
(Set Termination Resistors)
Query: STR?;
Switches the termination resistors for the bus line on in the WE2108 concerned, functional description
see above.
ba_we2108_pc82_0e_000823.doc / Page 45 of 50
- ADR –
(Address)
Query: ADR?;
After a change of the address with the ADR command, the WE2108 concerned is no longer
active. It must be selected as required with the command Sxx (xx = new address).
The serial number can also be stated optionally as 2nd parameter (to be read in the InFo menu or
with command IDN?;). The new unit address is then entered only for the WE2108 with the stated
serial number. This enables allocation of addresses (initialization of the bus mode) on a bus with
several WE2108 which have the same initial address. The addressed unit outputs 0CRLF, units with
deviating serial number give ?CRLF as answer simultaneously. This leads to a bus conflict, therefore
S98 must be entered previously to suppress the answers.
Example:
S98;
ADR25,"007" CRLF
Å The We2108 with the F number 7 is set to address 25.
S25;
Å Answer 0CRLF
- S.. –
(Select)
The Select command consists of the ASCII character "S" and two numbers for the address. This
command determines which WE2108 on a bus should communicate with the master. The unit with the
address xx is selected by the command Sxx and reacts to all following commands. This applies until
• another Select command is sent
• the unit is switched off
• another address is set with the command ADR
ba_we2108_pc82_0e_000823.doc / Page 46 of 50
Basic state
The address of the WE2108 is stored non-volatilely (changing with ADR command). If after switching
on a WE2108 a Select command is not sent as first, the following condition applies initially:
• A unit in which the address 31 is set executes commands and sends answers (condition
as after S31).
• Units with deviating address execute commands, but send no answer (condition as after
S98)
• After sending a Select command, this determines the further behaviour.
Output buffer
After a S98 command, each WE2108 executes following commands, but outputs no answer on the
interface. The answer is stored in the output buffer. On execution of further commands, the buffer is
overwritten with the latest answer in each case. If the WE2108 is selected again (with Sxx, xx = unit
address), it outputs the stored answer. This therefore does not belong to the command Sxx, but to a
previously executed command.
9.4 Bus-Scan
With the aid of the Bus-Scan described below, the address allocation of the bus can be determined.
This is recommended if the address allocation is not known or problems occur because of addresses
allocated double.
A WE2108 with the output address answers with ‘?CRLF’, since it does not know the command "X;".
If no answer comes after a time of approx. 100ms, then there is no WE2108 at this address. The
output of the semicolon before Sxx; clears the reception buffer of the WE2108, to create a defined
starting condition. If the master receives characters other than ? or reports a framing / parity error,
there can be a bus fault or multiple allocation of the address. The addresses should then be
reallocated.
If only a few WE2108 with known addresses are connected, the unallocated addresses can be left
out.
The timeout setting for the interface driver of the master is decisive for the speed of the Bus-Scan.
The command string (; Sxx; X;) requires max. 100ms for processing (with 9600 Bd).
ba_we2108_pc82_0e_000823.doc / Page 48 of 50
All connected units are set to BDR 7 by this procedure (also in the case of address conflict). To
determine the address allocation, a Bus-Scan is then required.
• The output of the semicolon before the S98; command is absolutely necessary, since because of
the bus mode with different baud rates, undefined characters can be stored in the reception buffer
of the WE2108. These are rejected by the reception of the semicolon. Possibly a ? is given in the
output buffer, but this is overwritten with the answer to the next command.
9.5 Examples
The command string for a simple measured value query of several units is:
S00;
MSV?; the WE2108 with the address 00 answers with the measured value
S01;
MSV?; the WE2108 with the address 01 answers with the measured value etc.
• The master may send a new Select command only if the measured value has been
received completely. Otherwise the new Select command causes the immediate abortion
of the output for the previously selected WE2108.
Appendix:
Address assignment for RDP / WRP
Menu parameter Meaning Start address Bytes Password
P_TAr Preset tare value 0 4
Count Reference quantity 88 4
P1_Fu Limit 1 function 4 1
P1_Lo Limit output 1 logic 5 1
P1_On Switch-on value 1 8 4
P1_OF Switch-off value 1 12 4
P2_Fu Limit 2 function 6 1
P2_Lo Limit output 2 logic 7 1
P2_On Switch-on value 2 16 4
P2_OF Switch-off value 2 20 4
F_InP Inclination switch etc. 101 1 x
Fin 1 Input 1 function 74 1
Fin 2 Input 2 function 75 1
F_Fil Filter <like ASF command> 93 1
Icr <like ICR command> 94 1
LocPA Protection of the calibration parameters 95 1 x
F_Tar Taring function 96 1 x
unit Unit of measure 97 1 x
AutoZ Switch-on zero 98 1 x
ZtrAC Zero tracking 99 1 x
StiLL Standstill monitoring 100 1 x
trAdE Legal-for-trade mode / scale standard 108 1 x
Point Places after decimal point 109 1 x
tYPE Scale type 110 1 x
CAP 1 1) Scale nominal value range 1 112 4 x
CAP 2 1) Scale nominal value range 2 116 4 x
res 1 Scale interval 1 111 1 x
res 2 Scale interval 2 120 1 x
F_SEr Function of the interface 77 1
bAud Baud rate 76 1
--- <like STR command> 42 1
--- <like ADR command> 40 1
--- <like COF command> 41 1
St_Ch Start character 78 1
E_Ch1 End character 1 79 1
E_Ch2 End character 2 80 1
F_Prt Print function 81 1
SPACE Number of spaces 82 1
LnEF1 Blank lines before printing 83 1
LnEF2 Blank lines after printing 92 1
A_nb Article number for printout 84 4
--- Printer string 20 characters 52 20
--- IDN string 24 15
LIGht Display lighting 72 1
OFF_t Time for automatic switch-off 73 1
1)
If no two-range or two-division scale is set, the same value must be entered for CAP-1 and
CAP-2! It is recommended to use the CAP-command instead (from Software P82 on).
ba_we2108_pc82_0e_000823.doc / Page 50 of 50