Вы находитесь на странице: 1из 37

Instruction manual

DK 800
Version 01.01

Programmer's manual

MESOMATIC
Automation und Messtechnik GmbH
Siemensstr. 36
D-71394 Kernen i.R.
Tel. (0)7151 / 94902-0
Fax (0)7151 / 43946
Copyright  1994 - 2001
by
Mesomatic GmbH
D-71394 Kernen i.R.

date of issue 25.11.2002


Table of contents

Preface ............................................................. 1

1. Data entry ....................................................... 1

2. The serial interface ............................................. 2


2.1. Selection and configuration of interface ..................... 2
2.1.1. The RS232 interface ...................................... 2
2.1.2. The RS485 interface ...................................... 4
2.1.3. The RS422 interface ...................................... 6
2.2. Serial communication ......................................... 7
2.2.1. Commands ................................................. 7
2.2.1.1. Setting zero......................................... 7
2.2.1.2. Net (Taring)......................................... 8
2.2.1.3. Gross................................................ 8
2.2.1.4. Temporarily increasing resolution.................... 8
2.2.1.5. Start of a dosing cycle.............................. 8
2.2.1.6. Interrupting dosing cycle............................ 8
2.2.1.7. Tolerance acknowledgement............................ 9
2.2.1.8. Clear dosage actual-value memory..................... 9
2.2.1.9. Premature end of dosing.............................. 9
2.2.1.10. Clear displayed text................................ 9
2.2.1.11. Reset.............................................. 10
2.2.2. Calculation of the check-sum ............................ 10
2.2.3. Reading data ............................................ 11
2.2.3.1. Actual value and unit status........................ 11
2.2.3.2. Reading coded actual gross/net value and device status12
2.2.3.3. Actual-gross value and unit status.................. 12
2.2.3.4. Actual value (quick check).......................... 13
2.2.3.5. C/F value........................................... 13
2.2.3.6. AF value............................................ 14
2.2.3.7. Reading the nominal value........................... 14
2.2.3.8. Reading the printout serial number.................. 14
2.2.3.9. Reading some data together.......................... 14
2.2.3.10. Reading balance parameters......................... 15
2.2.3.11. Transmission of actual value in NOVA DP format..... 16
2.2.4. Writing data ............................................ 17
2.2.4.1. Nominal dosage value................................ 17
2.2.4.2. C/F value (coarse/fine)............................. 17
2.2.4.3. AF value (afterflow)................................ 18
2.2.4.4. Nominal-dosing value, C/F value and AF value........ 18
2.2.4.5. Tolerance threshold................................. 18
2.2.4.6. Max. AF value....................................... 19
2.2.4.7. + Tolerance, - tolerance and max. AF value.......... 19
2.2.4.8. Max. dosing time (dosing time monitoring)........... 20
2.2.4.9. Waiting time prior to taring........................ 20
2.2.4.10. Max. dos. tme, wait. tme p. t. tar. & p. t. reg.... 20
2.2.4.11. Dosing speed, coarse............................... 21
2.2.4.12. Dosing speed, fine................................. 21
2.2.4.13. Dos. speed, coarse a. fine a. perc. share of ramp.. 21
2.2.4.14. Threshold level for limit switch................... 22
2.2.4.15. Issue to control output............................ 22
2.2.4.16. Display text....................................... 23
2.2.4.17. Control functions (Keyboard lock / Auto-calibr.)... 23

- I -
2.2.4.18. Unit test.......................................... 24
2.2.5. Writing / reading unit configuration .................... 25
2.2.5.1. Writing the unit configuration...................... 25
2.2.5.2. Reading unit configuration.......................... 26
2.2.6. Summary of serial functions ............................. 27

3. Communications procedures for the dosage sequence ............... 29

Index .............................................................. 31
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

Preface
This part of the instruction manual is a guide for programmers. For basic infor-
mation see part 1 user manual and part 2 line up and service manual.

General note: If two function-names are separated by a "/", the name in front of
the "/" is used in the german unit-version, the name after the "/" is used in the
english unit-version.

1. Data entry
Pressing the "F" key puts the unit into the "Enter data" mode. According to the
software implemented, up to 149 different parameters can be entered. The para-
meters (functions) with the numbers 1...49 are accessible by the operator at all
times and are described in part 1 (User manual). The input of sensitive data
(configurations- and calibration function 50...149) are guarded and are described
in part 2 (line-up and service manual).

C a u t i o n ! I m p o r t a n t !
It is only possible to leave the data-entry mode by means of the
"F"-key (and S1)!
If any combination of the keys "0" & "+" & "-" (reset) is pressed
while functions are being entered, or if the power supply is cut off
from the unit, the new data will be stored in the unit but the DK800
will not have been able to calculate the check-number. The next time
it is switched on, the data will therefore not tally with the check-
number and the DK800 will report the error "ERR.03". If this error
report is acknowledged, all data will be erased and the DK800 will
be back in its basic setting.

Programmer's manual 3-1


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2. The serial interface


Data is exchanged between the master computer and the DK800 (slave(s)) via a
serial interface.
The settings of the type of serial interface, baud rate, parity bit etc. is
described in part 2 (line up and service manual) chapter "Data transfer".

2.1. Selection and configuration of interface


The unit has one or two serial interfaces.

The 1st ser. interface can be produced, as required, as a RS232, a full-duplex


RS485, a RS422, or a Profibus-DP interface. The RS-interfaces are described in
this manual. The Profibus-DP interface is described in a separate manual, named
"Addition to the Instruction manual, Profibus-DP interface"

The 2nd ser. interface is used to connect printers and includes a accumulator-
buffered real-time clock with calendar. The 2nd ser. interface is described in an
other separate manual, named "Addition to the Instruction manual, DK 800 with a
2nd serial interface".

The interfaces are not included as standard on the DK800, but are available as
optional extras.

The selection of the required interface is made by means of the keyboard on the
front panel in conjunction with the mounting/demounting of the communication card
and a jumper configuration inside the unit which is set in the factory. The
jumper configuration can be modified by the customer after opening the unit.
Versions of the unit with an RS422/485 interface can later be converted into
RS232 after opening the unit. If the DK800 is fitted with only one RS232
interface, this cannot be converted into an RS422/485 interface.

2.1.1. The RS232 interface


The serial RS232 interface is connected electrically with the potential of the
DK800 main-unit. If jumpers are connected as shown in Fig.1, the RS232 interface
is activated.

J240
1 2 3

J234 J239
J235 J230 1 2 3
J236 J231
J237 J232
J238 J233
1 2 3 1 2

Fig.1

3-2 Programmer's manual


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

If, for instance the DK800 should be operated with a PC, it should be connected
as shown in Fig.2a. The cable should be shielded in industrial surroundings and
if it is longer than 2 meters.

Terminal flange

RxD 2 3 3 TxD

TxD 3 2 2 RxD

RTS 7 4 8 CTS

CTS 8 5 7 RTS

Gnd 5 7 5 Gnd

DCD 1 8 DK800 X4
9pol. Min.D.
DTR 4 20

DSR 6 6

RI 9 22
PC 9 pol. 25 pol.
COM1/2 Min.D. Min.D.

Fig.2a

The RS232 interface can likewise be used for connecting the DK800 to an
officially calibrated remote printer. The connecting cable for the printer series
DPN-2235/2335 is described in Fig.2b.

Terminal flange

TxD 2 2 RxD

RxD 3 3 TxD

RTS 4 8 CTS

7 RTS

Gnd 7 5 Gnd

Printer 25 pol. DK800 X4


Min.D. 9 pol. Min.D.

Fig.2b

Programmer's manual 3-3


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.1.2. The RS485 interface


The wires of the serial full duplex RS485 interface are not referred to a poten-
tial ("opto-decoupled"). If the jumpers are fitted as shown in Fig.3, the RS485-
interface is activated.

J240
1 2 3

J234 J239
J235 J230 1 2 3
J236 J231
J237 J232
J238 J233
1 2 3 1 2

Fig.3

The unit has termination- and pull-up-resistors to terminate the data lines. The
resistors can be switched in, via jumpers as shown in Fig.4a.
3
Tx-
100E

J230
2 Tx+
Cable with paired and
-U shielded wires must be
used for the interface
6k8
cable, with an outer
J232 7 woven shield,
e.g. CYPiCY !
Rx-
100E

J231
8
Rx+
6k8 X4
J233
9 pol.
+U
Min.D.

Fig.4a

3-4 Programmer's manual


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

Fig.4b

You have to make a distinction between units at the end of the cable and units,
which lie in between the ends of the cable. In the two units at the end of the
cable, the 100Ω resistors must be connected to the transmitter and receiver with
the jumpers J230 and J231, and the 6.8kΩ pull-up resistors must also be connected
with the jumpers J232 and J233.
If there is no DK800 connected to the end of the cable, but a PC or PLC, you have
to take care, that the PLC / PC is equipped with terminating resistors.

Programmer's manual 3-5


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

In units, which lie in between the ends of the cable (intermediate units), the
100Ω resistors must definitely be disconnected. It will depend on the mode of
operation, whether the pull-up resistors need to be activated on the intermediate
units (length of wires, slope steepness, transmission speed, etc.). Please take
care, that the substitutional resistor of all pull-ups (including those at the
ends of the cable) should not be below 1kΩ.
The connection of the cable-shield and how to assign the pair of wires, is shown
in Fig.4b.

2.1.3. The RS422 interface


The hardware of the RS422 interface is completely identical with the one of the
full-duplex RS485, except for the fact, that the transmitter of the RS422 inter-
face cannot change into high-impedance state, but it is always active and remains
in space state in the idle mode. Therefore the jumpers for selecting the inter-
face have to be fitted as shown in Fig.3 (like for the RS485). Fig.4a also
applies. As there is everytime only 1 unit at the end of cable in RS422
operation, the 100Ω termination resistors have to be connected with the jumpers
J230 and J231. The pull-ups are not absolutely necessary.

3-6 Programmer's manual


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2. Serial communication


The transmission parameters (Baud rate, parity, etc) are set by means of the key-
board on the front of the unit.
Every unit has a unit identification code, which can be entered in
fct. "COM.NR."/"COM.NO.". The identification code is formed of the unit number
(COM.NR./COM.NO.), and is an ASCII character in the range from 61Hex=97Dec='a' to
74Hex=116Dec='t', that is to say a lower case letter. Therefore unit no. 1 has
the identification code 'a', unit no. 2 'b' a.s.o. The identification code 'y'
and 'z' (see chapter "Reset") have a special function.
In order to build up a connection to the DK800, the identification code is sent
from the master computer to which the unit replies with its own identification
code. The connection is installed now, and the master sends now either a request
for an actual value or an command.
Entering the unit no. "0", or in fct. "I.U.MODE"/"TR.MODE" an automatic
transmission is chosen, means working without exchange of identification code.
The selection is possible, when only 1 DK800 is connected to the master computer.
If an officially calibrated remote printer is being operated together with the
DK800, the unit number must be set at 0.

The character NUL (00H) will be ignored by serial reception. Thus problems can be
avoided with equipment, which can send the data word-organised and not byte-
organised.

2.2.1. Commands
If an identification code > 0 is selected, commanding works as follows:
The command will be transmitted after interchanging of the identification code.
If the identification code no. 0 is selected, the command will be transmitted
immediately, an identification no. transmission is not necessary.
Commands consist of an '!'=21Hex=33Dec, followed by the actual command character.
When the DK800 receives a command, it checks whether it is possible to execute
it. If so, it answers with ACK=06Hex=Ctrl-F (acknowledgement) and executes the
command. If the command cannot be executed, it answers with NAK=15Hex=Ctrl-U
(negative acknowledgement).
After ACK or NAK has been sent back, the DK800 disconnects the communication.
The basic timing is as follows:
1. DK800 receives the command (or data).
2. It checks whether the command is executable.
3. It answers with a ACK- or NAK-character.
4. It starts the execution of the command.

2.2.1.1. Setting zero


The display is set to zero in the range of ±2% of the calibrated display range by
means of the command:
!0 (21Hex & 30Hex)

Reply: ACK = The actual weight has been set to zero, to an accuracy of 0,25e.
NAK = The display cannot be set to zero, e.g. because the actual
weight is to great, or the weigher is in motion.

Programmer's manual 3-7


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.1.2. Net (Taring)


Taring is carried out to the command:
!N (21Hex & 4EHex)

Reply: ACK = The DK800 displays the net weight.


NAK = Taring is not possible, e.g. the weigher is in motion.

Taring can be executed a number of times in sequence without the unit switching
back to "gross" mode.
The command !N is not accepted during a dosing cycle.

2.2.1.3. Gross
The gross command cancels taring (net weight display). The command is:
!B (21Hex & 42Hex)

Reply: ACK = The DK800 displays the gross weight.


NAK = The DK800 cannot switch over, e.g. because the 1/10 d resolution
has been activated.

The !B-command is not accepted during the dosing cycle.

2.2.1.4. Temporarily increasing resolution


The resolution of the DK800 can be increased tenfold for 5 seconds at a time. The
command is:
!H (21Hex & 48Hex)

Reply: ACK = The DK800 switches over to the higher resolution.


NAK = The DK800 cannot switch over.

2.2.1.5. Start of a dosing cycle


Once the nominal values had been transmitted, the dosing cycle may be started by
means of the command:
!D (21Hex & 44Hex)

Reply: ACK = The dosing cycle starts.


NAK = The dosing cycle cannot be started.

The !D-command is only accepted, if dosing is released with


fct. "DOSIER"/"DOSING".

2.2.1.6. Interrupting dosing cycle


To interrupt the dosing cycle without a reset of the whole unit, the following
command can be used:
!C (21Hex & 43Hex)

Reply: ACK = The DK800 interrupts the dosing cycle running at the moment.
NAK = The dosing cycle cannot be interrupted.

If the !C-command is accepted, the dosing cycle is interrupted at once and the
dosing outputs switched off. Taring is cancelled, and the actual value is not
stored into the memory.

3-8 Programmer's manual


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.1.7. Tolerance acknowledgement


If "+ TOL!" or "- TOL!" is shown in the display or signalled to output A10, to
show that a tolerance has been exceeded, this can be acknowledged with the com-
mand:
!Q (21Hex & 51Hex)

Reply: ACK = The tolerance-exceeded signal has been acknowledged.


NAK = The tolerance-exceeded signal has not been acknowledged.

2.2.1.8. Clear dosage actual-value memory


Once a dosing cycle has been completed, the DK800 will display "FERTIG"/"READY",
output A11 will be activated, and the actual dosage weight will be stored into
the memory. If the master computer now requests the actual value, the value
stored in the memory will be transmitted and not the current actual value. The
command:
!I (21Hex & 49Hex)
must be issued to cancel the "FERTIG"/"READY" message and the actual value in the
memory.

Reply: ACK = The command will be executed.


NAK = The command will not be executed.

If the DK800 is fitted with the hardware option Time/Date, the time + date of the
registration period is stored together with the actual dosage weight. The stored
time- and date-value can be read by the serial interface (see "Addition to the
Instruction manual, DK 800 with a 2nd serial interface") and is cancelled by the
!I-command.

2.2.1.9. Premature end of dosing


If the actual value does not reach the nominal dosage value, the dosing process
can be terminated by using the !J-command.
If the DK800 recognises the !J-command, the coarse-/fine-dosing stops
immediately, the tolerance check and the afterflow calculation is skipped and the
"wait-time before registration" is started.

Command: !J (21Hex & 4AHex)


Reply: ACK = The command will be executed.
NAK = The command will not be executed.

2.2.1.10. Clear displayed text


A text displayed with the !K-Command, can be erased with the command:
!L (21Hex & 4CHex)
after erasing, the gross weight will be displayed.
Reply: ACK = The displayed text has been erased.
NAK = The displayed text has not been erased.

Programmer's manual 3-9


MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.1.11. Reset
To bring an individual unit back to the reset stand, the command
!R (21Hex & 52Hex)
can be used.
Reply: ACK = The DK800 carries out a reset.
NAK = A reset is not possible.

There is also the possibility of issuing a reset command to all the units simul-
taneously (in RS485 operation). This is done by transmitting the identification
signal 'z'=7AHex. This general reset is not acknowledged by ACK or NAK.

If only the serial transmission is to be synchronised or terminated, e.g. as a


result of communication faults, this can be done by sending out the command
'y'=79Hex.

2.2.2. Calculation of the check-sum


The check-sum is formed of the ASCII characters between STX and ETB (excluding
these two characters) being added together byte by byte, without carrying over.
This results in a 1-byte value of xy. Two 1-byte figures (x0, 0y) are formed of
this value. 0x is converted to x0 (shifted four times), and 3x by adding 30h to
it. 30h is added to 0y to obtain 3y.

Example:

(STX) [v] iiiiii n ss [ee aaaa] [pp] (ETB)


02h + 002100 2 $$ !! !!!! 8> 17h

The ASCII characters are now added together.

+ = 2B
0 = 30
0 = 30
1 = 32
2 = 31
3 = 30
4 = 30
2 = 32
$ = 24
$ = 24
! = 21
! = 21
! = 21
! = 21
! = 21
! = 21

(2)8E → 8E ⇒ 80 → 08 +30 → 38 → '8'


⇒ 0E +30 → 3E → '>'

The check sum is thus '8>' (38Hex & 3EHex).

3 - 10 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.3. Reading data


After exchanging the identification code, a command for "data output" can be
sent. The DK800 replies with the STX, data, check-sum and ETB.

After the transmission of data, the DK800 will disconnect the transmission.

If a 21(2) or 22(4) is contained in fct. "I.U.MODE"/"TR.MODE", no exchange of


identification code takes place, but only the data between (STX) and (ETB) will
be transmitted.
If unit no. 0 is entered in fct. "COM.NR."/"COM.NO.", no exchange of identifi-
cation code takes place, too.

2.2.3.1. Actual value and unit status


The actual-value format described below only applies if one of the format identi-
fication numbers 1 ... 7 has been entered in the Function "I.FORMT"/"TR.FORMT".
Format 8 is provided for the operation of an officially calibrated remote
printer.
Format 16 (NOVA DP) is provided for large-format and remote displays, and is
described in the section on "Actual-value transfer in NOVA DP format".

To request for the actual value, proceed as follows:


After exchanging the identification code the master must send now
'?' (3FHex=63Dec) or
*I (2AHex & 49Hex).
Both commands are equal, and only for compatibility reasons they exist twice.
The DK800 replies with the actual value in the following format:
(STX) [v] iiiiii n ss [ee aaaa] [pp] (ETB)

(STX) = Start of text (02Hex=Ctrl-B)


v = Arithmetic sign ('+'=2BHex or ' '=20Hex or '-'=2DHex)
The arithmetic sign is only sent if a 1 is contained in
fct. "I.FORMT"/"TR.FORMT". If this has not been selected,
negative weight values are transmitted as 000000 (zero).
To comply with DIN/EN 45501, the arithmetical sign has to be
"+", "-", or " ", in order to show the status "zero within
0.25e" as a blank. If "?" is shown as the weight, "?" will also
be shown as the arithmetical sign.
iiiiii = weight value, 6 digits
If the unit cannot determine the actual value, e.g. if there is
an overload or when taring, "??????" will be transmitted.
n = No. of digits behind the decimal point.
n=30Hex → iiiiii
n=31Hex → iiiii.i
n=32Hex → iiii.ii
etc.
ss = Unit status
1.Byte: 27 = 0 / 26 = 0 / 25 = 1
24 = overload
23 = empty
22 = 1/10d
21 = motion (∼)
20 = minimum load
2.Byte: 27 = 0 / 26 = 0 / 25 = 1
24 = net (tared)
23 = weight value is actual dosage value
22 = tolerance exceeded (up/down)
21 = internal keyboard is locked by serial command
20 = 0 (currently no function)
ee = Status of inputs E7...E0
The status of the inputs and outputs is only transmitted if a 2
is contained in fct. "I.FORMT"/"TR.FORMT".
1.Byte: 27 = 0 / 26 = 0 / 25 = 1 / 24 = 0
23 = Input E7
22 = Input E6
21 = Input E5

Programmer's manual 3 - 11
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

20 = Input E4
2.Byte: 27 = 0 / 2 6 = 0 / 2 5 = 1 / 2 4 = 0
23 = Input E3
22 = Input E2
21 = Input E1
20 = Input E0
aaaa = Status of outputs A15...A0
The status of the inputs and outputs is only transmitted if a 2
is contained in fct. "I.FORMT"/"TR.FORMT".
1.Byte: 27 = 0 / 26 = 0 / 25 = 1 / 24 = 0
23 = Output A15
22 = Output A14
21 = Output A13
20 = Output A12
2.Byte: 27 = 0 / 26 = 0 / 25 = 1 / 24 = 0
23 = Output A11
22 = Output A10
21 = Output A9
20 = Output A8
3.Byte: 27 = 0 / 26 = 0 / 25 = 1 / 24 = 0
23 = Output A7
22 = Output A6
21 = Output A5
20 = Output A4
4.Byte: 27 = 0 / 26 = 0 / 25 = 1 / 24 = 0
23 = Output A3
22 = Output A2
21 = Output A1
20 = Output A0
pp = Check sum
The check sum is only transmitted if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.3.2. Reading coded actual gross/net value and device status


The actual value method described below serves the purpose of reading the actual
value in an encrypted format for the officially calibrated further processing by
an SPS control, which itself has an official calibration approval.
The encryption method is deposited with the German Federal Institute of Weights
and Measures (Physikalisch-Technische Bundesanstalt, PTB), Braunschweig, and will
only be disclosed on presentation of the SPS control’s approval certificate.

The data format described here can only be requested from master if the format
code number 5 or 7 is entered in function "I.FORMT".

After exchanging answerback codes, the master sends:


*C (2AHex & 43Hex)
The DK800 answers with an actual value in the following format:
(STX) [v] cccccccc pp ss [pp] (ETB)

2.2.3.3. Actual-gross value and unit status


The actual value-format, which is described here, is only valid, if in fct.
"I.FORMT"/"TR.FORMT", format-no. 1...7 is entered.

To read the actual-gross value, proceed as follows:


After the identification-codes have been exchanged, the master sends:
*B (2AHex & 42Hex)
The DK800 replies with the actual-gross value in accordance to the following
format:
(STX) [v] iiiiii n ss [ee aaaa] [pp] (ETB)

3 - 12 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

This format is identical to the format described in chapter "Actual-value and


unit-status", however the gross-weight is always sent, independent on, whether
the unit displays the gross- or net-weight. The 24 bit in the 2.status-byte
indicates, whether the display displays gross- or net-weight.

2.2.3.4. Actual value (quick check)


In order to be able to read off the actual value as brought up to date by the
average rate of the analogue output, proceed as follows:
After the identification signals have been exchanged, the master transmits:
*H (2AHex & 48Hex)
The DK800 answers with the actual value, without status, in the following format:
(STX) [v] iiiiii n [pp] (ETB).

(STX) = Start of Text (02Hex=Ctrl-B)


v = Arithmetical sign ('+'=2BHex or ' '=20Hex or '-' = 2DHex)
The arithmetical sign is only transmitted if a 1 is contained in
the Function "I.FORMT"/"TR.FORMT". If an alternative with no
arithmetical sign is selected, negative values will be trans-
mitted as 000000 (zero).
The arithmetical sign under this command has only "+" and "-" as
possible conditions. If "?" is shown as the weight, "?" will
also be shown as the arithmetical sign.
iiiiii = Weight value, 6-figure. The intervals are always 1.
If the unit is unable to calculate the actual value, e.g. if
there is an overload or during taring, "??????" will be trans-
mitted.
n = number of decimal places
n=30Hex iiiiii
n=31Hex iiiii.i
n=32Hex iiii.ii
etc.
pp = check sum
The check sum is only transmitted if a 4 is contained in the
Function "I.FORMT"/"TR.FORMT". The section on "Calculating the
check sum" explains this in detail.
(ETB) = End of Transmission Block (17Hex=Ctrl-W).

When a quick check is being made of the actual value, the analogue output
absolutely must be activated in the Function "AN.AUSG"/"AN.OUTP.". The data will
then be issued automatically at intervals of 1. The data will now be brought up
to date at the same pace as the calculation of averages at the analogue output
(which is quicker).

2.2.3.5. C/F value


The coarse-fine point is modified automatically by the afterflow-correction. The
new coarse-fine point can be transmitted with the following command:
*G (2AHex & 47Hex)
The DK800 replies with the G/F / C/F value in the following format:
(STX) ggggg [pp] (ETB)

(STX) = Start of Text (02Hex=Ctrl-B)


ggggg = G/F / C/F value, 5 digits
No decimal point is expected, and the evaluation of the figures
is identical with the actual value.
pp = Check-sum
The check-sum is only transmitted if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check-sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

Programmer's manual 3 - 13
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.3.6. AF value
The entered afterflow-correction is also modified by the real afterflow. The new
afterflow-value can be retransmitted with the following command:
*V (2AHex & 56Hex)
The DK800 replies
(STX) ggggg [pp] (ETB)

(STX) = Start of Text (02Hex=Ctrl-B)


ggggg = NL/AF value, 5 digits
No decimal point is expected, and the evaluation of the figures
is identical with the actual value.
pp = Check-sum
The check sum is only transmitted if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.3.7. Reading the nominal value


The nominal value can be read back with the following command:
*N (2AHex & 4EHex)
The DK800 replies
(STX) nnnnn [pp] (ETB)

(STX) = Start of Text (02Hex=Ctrl-B)


nnnnn = nominal value, 5 digits
No decimal point is expected, and the evaluation of the figures
is identical with the actual value.
pp = Check-sum
The check sum is only transmitted if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.3.8. Reading the printout serial number


The 6-digit serial number which will appear on the print-out can be read by using
the *L-command. If the serial number is read after the print event, the readed
no. is by the value of 1 greater than the printed number.
The printout serial no. can be read with the following command:
*L (2AHex & 4CHex)
The DK800 replies
(STX) nnnnnn [pp] (ETB)

(STX) = Start of Text (02Hex=Ctrl-B)


nnnnnn = serial no., 6 digits
pp = Check-sum
The check sum is only transmitted if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.3.9. Reading some data together


The format, which is described here, is only valid, if in fct.
"I.FORMT"/"TR.FORMT", format-no. 1...7 is entered.

The command to read actual value, unit status, input/output, C/F value and AF
value together, is:
*S (2AHex & 53Hex)
The DK800 replies:
(STX) [v] iiiiii n ss [ee aaaa] (GS) ggggg (GS) nnnnn (GS) [pp] (ETB)

3 - 14 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

(STX) = Start of Text (02Hex=Ctrl-B)


v = Arithmetical sign (see chapter "Actual value and unit status")
iiiiii = Actual value (see chapter "Actual value and unit status")
ss = Unit status (see chapter "Actual value and unit status")
ee = status of the inputs E7...E0 (see chapter "Actual value and unit
status")
aaaa = status of the outputs A15...A0 (see chapter "Actual value and
unit status")
(GS) = Group Separator (1DHex=Ctrl-])
ggggg = C/F value, 5 digits
No decimal point is expected, and the evaluation of the figures
is identical with the actual value.
(GS) = Group Separator (1DHex=Ctrl-])
nnnnn = AF value, 5 digits
No decimal point is expected, and the evaluation of the figures
is identical with the actual value.
(GS) = Group Separator (1DHex=Ctrl-])
pp = Check-sum
The check sum is only transmitted if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.3.10. Reading balance parameters


The command described below serves the purpose of reading certain balance
parameters, so that the master connected to the interface can automatically adapt
to the balance settings.

The command is:


*P (2AHex & 50Hex)
The DK800 answers in the following format:
(STX) zz (GS) ttttt (GS) mm (GS) aa (GS) ss (GS) ddd (GS) uuu (GS) [pp] (ETB)

(STX) = Start of Text (02Hex=Ctrl-B)


zzz = Figure Leap, as set in the "ZIF.SPR"/"RESOLU" function
(GS) = Group Separator (1DHex=Ctrl-])
ttttt = Number of Pieces, as set in the "TEILEZ"/"NO.O.DIG" function
(GS) = Group Separator (1DHex=Ctrl-])
mm = Average Value Rate of Display, as set in the
"MITT.-W"/"AV.CYCL" function
(GS) = Group Separator (1DHex=Ctrl-])
aa = Average Value Rate of the Analogue Output and/or Process Data
Channel, as set in the "A.MITT.W"/"A.AV.CYC" function
(GS) = Group Separator (1DHex=Ctrl-])
ss = Standstill Monitoring Period, as set in the
"SS.ZEIT"/"SS.TIME" function
(GS) = Group Separator (1DHex=Ctrl-])
ddd = Standstill Monitoring (Number of Pieces), as set in the
"SS.TEIL"/"SS.DIGT" function
(GS) = Group Separator (1DHex=Ctrl-])
uuu = Standstill Monitoring (Number of Pieces per Average Value
Cycle), as set in the "SS.T./M.Z"/"SS.D./A.C" function
(GS) = Group Separator (1DHex=Ctrl-])
pp = Check-sum
The check sum is only transmitted if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

Programmer's manual 3 - 15
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.3.11. Transmission of actual value in NOVA DP format


The NOVA DP actual-value format described below is activated by entering the
format identification number 16 in the Function "I.FORMT"/"TR.FORMT". The NOVA DP
format is mainly provided for large-size and remote displays operated from the
serial interface. Data is transferred without any exchange of identification
numbers in the following format:
(STX) m iiiiiii (ETX)

(STX) = Start of Text (02Hex=Ctrl-B)


m = Mode identification letter
1 (31Hex) = gross
2 (32Hex) = net
iiiiiii = Weight with "-" sign and decimal point.
All characters are transferred as printable ASCII characters.
The lower-value figure is transmitted last.
The weight is transmitted as a right-justified figure, the
preceding zeroes being replaced with blanks (20Hex=Space). The
zeroes to the left of the decimal point form an exception here.
The decimal point (2EHex) is transmitted. Dependent zeroes are
transferred at the digit intervals 10, 20, 50, 100, etc.
If values are negative, they will be precede by a minus sign
(2DHex) to the left of the figure with the highest value. No
plus sign is transmitted.
(ETX) = End of Text (13Hex=Ctrl-C)

3 - 16 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.4. Writing data


Data is transmitted in the same way as commands. After the unit has exchanged
identification code, data is transmitted. A data transmission begins with a
'!'=21Hex=33Dec or '>'=3EHex=62Dec, followed by a character, which defines the
nature of the data and the data contained between the characters STX and ETB. If
a 4 is contained in fct. "I.FORMT"/"TR.FORMT", a 2 digit check-sum will be
expected after the data (but before ETB). Chapter "Calculation of the check-sum"
explains how the check sum is calculated.
Once the DK800 data has received the data it will examine the check-sum if this
has been preselected. If the data and the check-sum are correct, it will issue
ACK=06Hex=Ctrl-F for confirmation, and the data will be stored. Otherwise,
NAK=15Hex=Ctrl-U will be issued.
After issuing ACK or NAK, the DK800 will disconnect the transmission.

2.2.4.1. Nominal dosage value


The nominal dosage value is issued in the following format:
!S (STX) ggggg [pp] (ETB)

! = 21Hex
S = 53Hex
(STX) = Start of Text (02Hex=Ctrl-B)
ggggg = Nominal value, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA".
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

The required dosage value can be transmitted again after the start of dosing,
e.g. in order to make a slight correction to a moisture reading. However, this
can only be done during the time before the coarse / fine dosing becomes active.

2.2.4.2. C/F value (coarse/fine)


The G/F / C/F value is issued in the following format:
!G (STX) ggggg [pp] (ETB)

! = 21Hex
G = 47Hex
(STX) = Start of Text (02Hex=Ctrl-B)
ggggg = G/F / C/F value, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

Programmer's manual 3 - 17
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.4.3. AF value (afterflow)


The NL/AF value is issued in the following format:
!V (STX) ggggg [pp] (ETB)

! = 21Hex
V = 56Hex
(STX) = Start of Text (02Hex=Ctrl-B)
ggggg = NL/AF value, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.4.4.Nominal-dosing value, C/F value and AF value


The data for nominal value, G/F / C/F value and NL/AF value is issued in the
following format:
>S (STX) sssss (GS) ggggg (GS) nnnnn (GS) [pp] (ETB)

> = 3EHex
S = 53Hex
(STX) = Start of Text
sssss = nominal value, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
(GS) = Group Separator (1DHex=Ctrl-])
ggggg = G/F / C/F value, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
(GS) = Group Separator (1DHex=Ctrl-])
nnnnn = NL/AF value, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
(GS) = Group Separator (1DHex=Ctrl-])
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

The parameters have to be transmitted before dosing starts. If the nominal-dosing


value should be transmitted again, after dosing has started, e.g. to correct the
amount a little bit after a moisture measurement, use the "!S"-command.

2.2.4.5. Tolerance threshold


The tolerance threshold is issued in the following format:
!T (STX) ggggg [pp] (ETB)

! = 21Hex
T = 54Hex
(STX) = Start of Text (02Hex=Ctrl-B)
ggggg = Tolerance threshold, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

3 - 18 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

The issued value is entered in both, the memory for the + tolerance, and the
memory for the - tolerance. If different values for + and - tolerance should be
issued, use the ">T ..."-command (see chapter "+ tolerance, - tolerance and AF
value"

2.2.4.6. Max. AF value


The maximum NL/AF limit value for automatic afterflow correction is issued in the
following format:
!M (STX) ggggg [pp] (ETB)

! = 21Hex
M = 4DHex
(STX) = Start of Text (02Hex=Ctrl-B)
ggggg = Max. NL/AF limit value, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT"
. Chapter "Calculation of the check-sum" explains how the check
sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.4.7. + Tolerance, - tolerance and max. AF value


The data for + tolerance, - tolerance and max AF is issued in the following
format:
>T (STX) ppppp (GS) mmmmm (GS) nnnnn (GS) [pp] (ETB)

> = 3EHex
T = 54Hex
(STX) = Start of Text (02Hex=Ctrl-B)
ppppp = + tolerance, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
(GS) = Group Separator (1DHex=Ctrl-])
mmmmm = - tolerance, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
(GS) = Group Separator (1DHex=Ctrl-])
nnnnn = max AF, 5 digits
No decimal point is issued; this is inserted in accordance with
the instructions in fct. "KOMMA"/"DEC.PT.".
(GS) = Group Separator (1DHex=Ctrl-])
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT"
. Chapter "Calculation of the check-sum" explains how the check
sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

With this command, it is possible to issue different values for the +/-
tolerance.

Programmer's manual 3 - 19
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.4.8. Max. dosing time (dosing time monitoring)


The time value for dosing time monitoring is issued in the following format:
!Z (STX) 0tttt [pp] (ETB)

! = 21Hex
Z = 5AHex
(STX) = Start of Text (02Hex=Ctrl-B)
0 = 30Hex
tttt = max. dosing time, 4 digits(in 100ms steps)
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

The dosing time monitoring will be cancelled by entering 0 into the time-value.

2.2.4.9. Waiting time prior to taring


The transfer of the time value for the waiting time prior to taring is made in
the following format:
!Y (STX) 00ttt [pp] (ETB)

! = 21Hex
Y = 59Hex
(STX) = Start of Text (02Hex=Ctrl-B)
00 = 2 characters, 30Hex
ttt = Waiting time prior to taring, 3-figure (in 100 ms steps, maximum
25.0 seconds)
pp = Check sum.
The check sum is only expected if a 4 is contained in the
Function "I.FORMT"/"TR.FORMT". The section on "Calculating the
check sum" explains this in detail.
(ETB) = End of Transmission Block (17Hex=Ctrl-W).

2.2.4.10. Max. dos. time, wait. time prior to taring and wait. time prior to
registration
The transfer of the max. dosing time, the waiting time prior to taring and the
waiting time prior to registration is made in the following format:
>Z (STX) 0mmmm (GS) 00ttt (GS) 00rrr (GS) [pp] (ETB)

> = 3EHex
Z = 5AHex
(STX) = Start of Text (02Hex=Ctrl-B)
0 = 30Hex
mmmm = max. dosing time, 4-figure (in 100ms steps)
(GS) = Group Separator (1DHex=Ctrl-])
00 = 2 x 30Hex
ttt = Waiting time prior to taring, 3-figure (in 100ms steps, maximum
25.0 seconds)
(GS) = Group Separator (1DHex=Ctrl-])
00 = 2 x 30Hex
rrr = Waiting time prior to taring, 3-figure (in 100ms steps, maximum
25.0 seconds)
(GS) = Group Separator (1DHex=Ctrl-])
pp = Check sum.
The check sum is only expected if a 4 is contained in the
Function "I.FORMT"/"TR.FORMT". The section on "Calculating the
check sum" explains this in detail.
(ETB) = End of Transmission Block (17Hex=Ctrl-W).

3 - 20 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.4.11. Dosing speed, coarse


If "DOSIER"/"DOSING" or "D.RAMPE"/"D.RAMP" has been selected in fct. "AN.MODE",
the analogue output is used for dosing speed. The value for dosing speed coarse
can be set with the following command:
!E (STX) 0ssss [pp] (ETB)

! = 21Hex
E = 45Hex
(STX) = Start of Text (02Hex=Ctrl-B)
0 = 30Hex
ssss = Dosing speed coarse, 4 digits (in 0,1% steps of 10V or 20mA)
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.4.12. Dosing speed, fine


If "DOSIER"/"DOSING" or "D.RAMPE"/"D.RAMP" has been selected in fct. "AN.MODE",
the analogue output is used for dosing speed. The value for dosing speed fine can
be set with the following command:
!F (STX) 0ssss [pp] (ETB)

! = 21Hex
F = 46Hex
(STX) = Start of Text (02Hex=Ctrl-B)
0 = 30Hex
ssss = Dosing speed fine, 4 digits (in 0,1% steps of 10V or 20mA)
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.4.13. Dosing speed, coarse and fine and percental share of ramp
The data for the setting of the analogue dosing speed is issued in the following
format:
>V (STX) 0gggg (GS) 0ffff (GS) 000rr (GS) [pp] (ETP)

> = 3EHex
V = 56Hex
(STX) = Start of Text (02Hex=Ctrl-B)
0 = 30Hex
gggg = Dosing speed coarse, 4 digits (in 0,1% steps of 10V or 20mA)
(GS) = Group Separator (1DHex=Ctrl-])
0 = 30Hex
ffff = Dosing speed fine, 4 digits (in 0,1% steps of 10V or 20mA)
(GS) = Group Separator (1DHex=Ctrl-])
000 = 3 x 30Hex
rr = percental share of ramp, 2 digits (in 1% steps)
(GS) = Group Separator (1DHex=Ctrl-])
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

Programmer's manual 3 - 21
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.4.14. Threshold level for limit switch


The threshold level for the limit switch (output A9) is transmitted in the
following format:
!W (STX) ggggg [pp] (ETB)

! = 21Hex
W = 57Hex
(STX) = Start of Text (02Hex=Ctrl-B)
ggggg = Threshold Level for Limit Switch, 5 figures
Decimal points are not transmitted, but automatically inserted
in the "KOMMA" function, as instructed.
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

2.2.4.15. Issue to control output


If "ST.AUSG"/"CTRL-O" has been selected with fct. "DATEN.A"/"DATA-O", the status
of the outputs A0...A7 can be set with the following command:
!O (STX) 000hl [pp] (ETB)

! = 21Hex
O = 4FHex
(STX) = Start of Text (02Hex=Ctrl-B)
000 = '000' (3 characters 30Hex)
h = Required status for output A7...A4
27 = 0 / 26 = 0 / 25 = 1 / 24 = 1
23 = output A7
22 = output A6
21 = output A5
20 = output A4
l = Required status for output A3...A0
27 = 0 / 26 = 0 / 25 = 1 / 24 = 1
23 = output A3
22 = output A2
21 = output A1
20 = output A0
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

3 - 22 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.4.16. Display text


On the DK800 - display 6 digits (letters, figures, special signs) can be
indicated. All signs marked with in the table below are not available.

0x 1x 2x 3x 4x 5x 6x 7x
x0 Space 0 P
x1 ! 1 A Q
x2 2 B R
x3 # 3 C S
x4 4 D T
x5 % 5 E U
x6 & 6 F V = This characters
x7 7 G W can't be
x8 ( 8 H X displayed !
x9 ) 9 I Y
xA * : J Z
xB + K
xC < L ↓
xD - = M
xE > N ↑
xF / ? O _

Tab.1 Character table

The transmission of the text starts with the following command:


!K (STX) dddddd [pp] (ETB)

! = 21Hex
K = 4BHex
(STX) = Start of Text (02Hex=Ctrl-B)
dddddd = 6 characters of text. To illuminate the decimal point of the
current digit, add a value of 80Hex (Bit 27 is set) to the ASCII
character according to Tab.1.
pp = Check-sum
The check sum will only be expected if a 4 is contained in
fct. "I.FORMT"/"TR.FORMT". Chapter "Calculation of the check-
sum" explains how the check sum is calculated.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

Displaying of the text will be finished either by the command !L, or by an inter-
nal display-event or by an operation on the front keyboard.

2.2.4.17. Control functions (Keyboard lock / Auto-calibr.)


The !U-command is used for control functions.

The keyboard lock/release of the DK800 can be effected by the following commands:
!U (STX) d [pp] (ETB)

! = 21Hex
U = 55Hex
(STX) = Start of Text (02Hex=Ctrl-B)
d = 0 (30Hex) → release keyboard
1 (31Hex) → lock keyboard
pp = Check sum
The check sum is only expected if a 4 is contained in the
Function "I.FORMT"/"TR.FORMT". The section on "Calculating the
check sum" explains this in detail.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

The keyboard lock function (caused by a serial command) is always cancelled after
the unit has been reset.

Programmer's manual 3 - 23
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

The status of the serial keyboard lock function can be checked in the 2nd Byte of
the unit status, the status of the lock-input (E1) in the 2nd Byte of the input
status.

Controlling of the auto-calibration timing can be done by the following command:


!U (STX) d [pp] (ETB)

! = 21Hex
U = 55Hex
(STX) = Start of Text (02Hex=Ctrl-B)
d = 2 (32Hex) → force zero- or gain-calibration, set tCalInter-
vall=100s
3 (33Hex) → force zero- and gain-calibration, set tCalInter-
vall=300s
pp = Check sum
The check sum is only expected if a 4 is contained in the
Function "I.FORMT"/"TR.FORMT". The section on "Calculating the
check sum" explains this in detail.
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

The timing of the auto-calibration can be influenced externally.


By sending the command "!U(STX)3[pp](ETB)" Zero- and Gain-Cal. is initiated and
tCalIntervall is set to 300s. After tCalIntervall is over, Zero- and Gain-Cal.
is initiated again. While falling under the empty output (falling weights,
emptying the weigher) Zero- and Gain-Cal. are initiated, too and
tCalIntervall is set to 300s.
By sending the command "!U(STX)2[pp](ETB)" Zero-Cal. will be initiated and
tCalIntervall will be set back to 100s.
The timing of the auto-calibration can also be affected by E3 input (see part 2,
"line up and service manual", chapter "Auto-Zero and Auto-Calibration").

2.2.4.18. Unit test


The command:
!A (STX) m abcd [pp] (ETB)
is reserved for the unit test in the manufacturer's works.

If m=1 (31Hex), the digital outputs (A0 ... A15) can be set.
Pre-condition: "DATEN.A"/"DATA-O" = "ST.AUSG"/"CTRL-O"
and all other outputs (e.g. empty / over-full) = Off.
a A15 ... 12, b A11... 8, c A7...4, d A3...0 (as with the command !0).

If m=2 (32Hex), a voltage (or current) can be issued on the D/A converter without
any dosing cycle.
Pre-conditions: AN.AUSG/AN.OUTP = 0-10V or 0/4-20 mA
AN.MODE/AN.MODE = DOSIER/DOSING
abcd = 1000 100.0% = 10V / 20 mA (identical with the command !E / !F).

If m=3, (33Hex), individual Bits of the outputs A0...A15 can be set separately or
reset. However, it should be noted that during setting / resetting conflicts can
arise with the normal operating programmes of the DK800.
Pre-conditions: None.
a = 0 (30Hex) → reset individual bit a = 1 (31Hex) → set individual bit
b = always 0 (30Hex) c = Bit no. 101 d = Bit no. 100

3 - 24 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.5. Writing / reading unit configuration


If an MS-DOS compatible PC is available, the whole configuration data can be
transferred to the PC by means of the Function "K.DAT.S"/"C.DTA.WR" or to the
DK800 by means of the Function "K.DAT.L"/"C.DTA.RD".
The PC programme runs under MS-DOS and requires a PC with:
MS-DOS, version 4.0 or higher
386 CPU or higher
serial (COM2) standard interface (RS232 or RS422/485).
A 3½" Diskette with the write/read programme "DKCONF" can be supplied free of
charge on request. The serial connecting cable required is shown in Fig. 2a.

The functions "writing / reading unit configuration" are not available in the
Profibus-DP-version !

2.2.5.1. Writing the unit configuration


After the Function "K.DAT.S"/"C.DTA.WR" has been selected, the "Net" key must be
pressed. "START?" will then appear in the display and the "+" and "-" keys will
flash. It is now possible either to break off by means of the "0" key or else to
press the "+" and "-" keys simultaneously. "WARTEN"/"WAIT" will appear in the
display, and the PC programme "DKCONF" will start (in "Read" mode). When the PC
programme has finished running, "K.DAT.S"/"C.DTA.WR" will appear again in the
DK800 display.

Instead of using the "DKCONF" PC programme, it is possible to communicate


directly with the DK800. When "WARTEN"/"WAIT" has appeared in the display, the
master gives the following commands:
*X (2AHex & 58Hex)
The DK800 replies in the following format:
(STX) vv..v rr..r tt (GS) 00 (STX) xx..x (GS) pp (STX) yy..y (GS) pp (ETB)

(STX) = Start of Text (02Hex=Ctrl-B)


vv..v = Version string, 2 to 11 printable ASCII characters
rr..r = Revision string, 2 to 11 printable ASCII characters
tt = Type-string, 2 to 5 printable ASCII-characters
(GS) = Group separator (1DHex=Ctrl-])
00 = 2 character, 30Hex
(STX) = Start of Text (02Hex=Ctrl-B)
xx..x = Configuration data, Part 1, 2 to 251 printable ASCII characters
(GS) = Group separator (1DHex=Ctrl-])
pp = Check sum for Part 1, this check sum cannot be switched off
(STX) = Start of Text (02Hex=Ctrl-B)
yy...y = Configuration data, Part 2, 2 to 251 printable ASCII characters
(GS) = Group separator (1DHex=Ctrl-])
pp = Check sum for Part 2, this check sum cannot be switched off
(ETB) = End of Transmission Block (17Hex=Ctrl-W)

Data xx...x and yy...y contain a memory illustration of the configuration data in
the internal format of the 87C196KD processor and are not always compatible
within the various versions and revisions of the unit. For this reason, the
version and revision strings must also be sent in order to allow the master to
identify the data.

Programmer's manual 3 - 25
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.5.2. Reading unit configuration


For the data to be read into the DK800, Switch 2 in the switch block on the rear
of the unit must be in the downward position as well as Switch 1.

After the Function "K.DAT.L"/"C.DTA.RD" has been selected, the "Net" key must be
pressed. "START?" will then appear in the display and the "+" and "-" keys will
flash. It is now possible either to break off by means of the "0" key or else to
press the "+" and "-" keys simultaneously. "WARTEN"/"WAIT" will appear in the
display, and the PC programme "DKCONF" will start (in "Write" mode). When the PC
programme has finished running, the DK800 will carry out a reset cycle in order
to adapt itself to the new configuration.

Instead of using the "DKCONF" PC programme, it is possible to communicate


directly with the DK800. When "WARTEN"/"WAIT" has appeared in the display, the
master gives the following commands:
!X (STX) vv..v rr..r tt (GS) 00 (STX) xx..x (GS) pp (STX) yy..y (GS) pp
(ETB)

! = 21Hex
X = 58Hex
vv..v = Version string, 2 to 11 printable ASCII characters
rr..r = Revision string, 2 to 11 printable ASCII characters
tt = Type-string, 2 to 5 printable ASCII-characters
(GS) = Group separator (1DHex=Ctrl-])
00 = 2 characters, 30Hex
(STX) = Start of Text (02Hex=Ctrl-B)
xx...x = Configuration data, Part 1, 2 to 251 printable ASCII characters
(GS) = Group separator (1DHex=Ctrl-])
pp = Check sum for Part 1, this check sum cannot be switched off
(STX) = Start of Text (02Hex=Ctrl-B)
yy...y = Configuration data, Part 2, 2 to 251 printable ASCII characters
(GS) = Group separator (1DHex=Ctrl-])
pp = Check sum for Part 2, this check sum cannot be switched off
(ETB) = End of Transmission Block (17Hex=Ctrl-W).

If the version and revision string does not tally with the software version and
revision installed in the DK800, it will refuse to read the subsequent data and
will issue the message NAK.
Data xx...x and yy...y container a memory illustration of the configuration data
in the internal format of the 87C196KD processor.
After the ETB characters have been received, the DK800 will carry out a reset
cycle to adapt itself to the new configuration.

3 - 26 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

2.2.6. Summary of serial functions


This summary does not include the exchange of unit identification code.

Commands and data → DK800


Master DK800 (Slave) Description
(STX)[v]iiiiiinss[eeaa Request actual value
?
aa][pp](ETB) (identical with *I)
!0 (ACK/NAK) Setting zero
!A (STX)mabcd[cc](ETB) (ACK/NAK) check I/O lines
!B (ACK/NAK) Gross
!C (ACK/NAK) Interrupt dosing cycle
!D (ACK/NAK) Start dosing cycle
!E (STX)0ssss[pp](ETB) (ACK/NAK) Dosing speed coarse
!F (STX)0ssss[pp](ETB) (ACK/NAK) Dosing speed fine
!G (STX)ggggg[pp](ETB) (ACK/NAK) write G/F / C/F value
!H (ACK/NAK) high resolution
!I (ACK/NAK) clear dosage actual value
!J (ACK/NAK) premature end of dosing
!K (STX)dddddd[pp](ETB) (ACK/NAK) Display 6 char's of text
!L (ACK/NAK) Clear displayed text
!M (STX)ggggg[pp](ETB) (ACK/NAK) Max. NL/AF (afterflow)
!N (ACK/NAK) Net (taring)
!O (STX)000hl[pp](ETB) (ACK/NAK) write to control output
Initiate print-out on 2nd
!P (ACK/NAK)
serial interface (optional)
!Q (ACK/NAK) Tolerance acknowledgement
!R (ACK/NAK) Reset
!S (STX)ggggg[pp](ETB) (ACK/NAK) Nominal value
!T (STX)ggggg[pp](ETB) (ACK/NAK) Tolerance
!U (STX)d[cc](ETB) (ACK/NAK) control functions
Schaltschwelle für
!W (STX)ggggg[pp](ETB) (ACK/NAK)
Grenzkontakt schreiben
!V (STX)ggggg[pp](ETB) (ACK/NAK) write NL/AF value (afterfl.)
config.-data (Master→DK)
!X (STX)xx..x[pp](ETB) (ACK/NAK) not available with Profibus-DP
interface
!Y (STX)00ttt[pp](ETB) (ACK/NAK) delay before taring
!Z (STX)0tttt[pp](ETB) (ACK/NAK) Max. dosing time
>S(STX)sssss(GS)ggggg(GS) Nominal value, G/F / C/F
(ACK/NAK)
nnnnn(GS)[pp](ETB) value and NL/AF value
>T(STX)ppppp(GS)mmmmm(GS) + tolerance, -tolerance and
(ACK/NAK)
nnnnn(GS)[pp](ETB) max. NL/AF
Dosing speed, coarse/fine
>V(STX)0gggg(GS)0ffff(GS)
(ACK/NAK) and percental share of ramp
000rr(GS)[pp](ETB)
Max. dosing speed, waiting
>Z(STX)0mmmm(GS)00ttt(GS)
(ACK/NAK) times prior to dosing and
00rrr(GS)[pp](ETB)
prior to registration

Programmer's manual 3 - 27
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

Data ← DK800
Master DK800 (Slave) Description
only for internal data-exchange with
*A (STX)01aaa[pp](ETB)
Profibus-DP interface
(STX)[v]iiiiiinss Request actual-gross value
*B
[eeaaaa][pp](ETB)
(STX)cccccccc ppss codierten Istwert
*C
[pp](ETB) (Brutto/Netto) anfordern
Read G/F / C/F value (coarse
*G (STX)rrrrr[pp](ETB)
/ fine)
(STX)[v]iiiiiin High-speed request for
*H
[pp](ETB) actual value
(STX)[v]iiiiiinss[eeaa Request actual value
*I
aa][pp](ETB) (identical with ?)
(CAN) or
only for internal data-exchange with
*K (STX)[v]iiiiiin
Profibus-DP interface
ssssssss[pp](ETB)
*L (STX)nnnnnn[pp](ETB) Read printout serial no.
*N (STX)sssss[pp](ETB) Read nominal value
(STX)zzz(GS)ttttt(GS)
*P mm(GS)aa(GS)ss(GS)ddd Waagen Parameter lesen
(GS)uuu(GS)[pp](ETB)
(STX)[v]iiiiiinss Read actual value, G/F / C/F
*S [eeaaaa](GS)ggggg(GS) value and NL/AF value
nnnnn(GS)[pp](ETB)
*V (STX)rrrrr[pp](ETB) Read NL/AF value
Config.-data (DK→Master)
*X (STX)xx..x[pp](ETB) not available with Profibus-DP
interface

Tab.2 Summary of serial functions

3 - 28 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

3. Communications procedures for the dosage sequence


The communications procedures described below are only an example. Individual
blocks can be left out, but the sequence should be maintained if at all possible,
especially in reading / erasing the actual value.

Start

ready to dose ? no
(e.g. weigher
closed )
yes
DK800: !S + nominal value

DK800: !V + afterflow reserve

DK800: !M + max. afterflow

DK800: !G + coarse/fine reserve

DK800: !T + tolerance

DK800: !E + dos. speed (coarse)

DK800: !F + dos. speed (fine)

DK800: !Y + wait.time prior to taring

DK800: !Z + max. dosing time

set component output

DK800: !D (start dosing)

a
Fig.5a

Programmer's manual 3 - 29
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

DK800: *I... (read act. val. / status)

visualise act. val. / status

tol.-report no
from DK800 ?

yes
operator request: tol. ok ?

no
tol. accepted ?

yes scrap batch

DK800: !Q (acknowledge tol.)

no ready-report
from DK800 ?

yes
DK800: *I... (read act. val. / status)

display act. value

DK800: !I (clear act. val. memory)

DK800: *V... (read back afterflow)

DK800: *G... (read back coarse/fine)

store act.val, afterfl., c/f

End (next comp. or end


of dos., open weigher)

Fig.5b

3 - 30 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

Index

Fig. 1 RS232 interface .................................. 2


Fig. 2a RS232 cable ..................................... 3
Fig. 2b printer cable ................................... 3
Fig. 3 RS485 interface .................................. 4
Fig. 4a RS485 interface termination ..................... 4
Fig. 4b RS485 interface termination ..................... 5
Fig. 5a Dosage sequence, communications procedures ...... 29
Fig. 5b Dosage sequence, communications procedures ...... 30
Tab. 1 Character table .................................. 23
Tab. 2 Summary of serial functions ...................... 28

Actual dosage weight ..................................... 9


Actual value and unit status, reading .................... 11
Actual value, (quick check) .............................. 13
Actual-gross value and unit status ....................... 12
AF value ................................................. 18
AF value (afterflow), writing ............................ 18
AF value, reading ........................................ 14
Analogue output .......................................... 13 21
Analogue output, calculation of averages ................. 13
Arithmetical sign ........................................ 11 13
Auto-calibration ......................................... 23
average rate (analogue output) ........................... 13

C/F value ................................................ 18


C/F value (coarse/fine), writing ......................... 17
C/F value, reading ....................................... 13
calculation of averages (analogue output) ................ 13
Calculation of the check-sum ............................. 10
Character NUL ............................................ 7
Check-sum ................................................ 10
Clear displayed text ..................................... 9
Clear dosage actual-value memory ......................... 9
Command !0 ............................................... 7
Command !A + (data) ...................................... 24
Command !B ............................................... 8
Command !C ............................................... 8
Command !D ............................................... 8
Command !E + (data) ...................................... 21
Command !F + (data) ...................................... 21
Command !G + (data) ...................................... 17
Command !H ............................................... 8
Command !I ............................................... 9
Command !J ............................................... 9
Command !K + (data) ...................................... 23
Command !L ............................................... 9
Command !M + (data) ...................................... 19
Command !N ............................................... 8
Command !O + (data) ...................................... 22
Command !Q ............................................... 9
Command !R ............................................... 10
Command !S + (data) ...................................... 17
Command !T + (data) ...................................... 18
Command !U + (data) ...................................... 23 24
Command !V + (data) ...................................... 18
Command !W + (data,...) ................................ 22
Command !X + (data) ...................................... 26
Command !Y + (data) ...................................... 20
Command !Z + (data) ...................................... 20
Command *A ............................................... 28
Command *B ............................................... 12
Command *C ............................................... 12
Command *G ............................................... 13
Command *H ............................................... 13
Command *I ............................................... 11
Command *K ............................................... 28
Command *L ............................................... 14

Programmer's manual 3 - 31
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

Command *N ............................................... 14
Command *P ............................................... 15
Command *S ............................................... 14
Command *V ............................................... 14
Command *X ............................................... 25
Command >S + (data,...) ................................ 18
Command >T + (data,...) ................................ 19
Command >V + (data,...) ................................ 21
Command >Z + (data,...) ................................ 20
Command ? ................................................ 11
Commands ................................................. 7
Communication faults ..................................... 10
Communications procedures for the dosage sequence ........ 29
configuration data ....................................... 25
Control functions (Keyboard lock / Auto-calibr.) ......... 23
correction of nominal value .............................. 17

Data entry ............................................... 1


Data Output .............................................. 22
decimal places ........................................... 13
Display text ............................................. 23
Dosage sequence, Communications procedures ............... 29
Dosing cycle ............................................. 8 9
Dosing speed, coarse ..................................... 21
Dosing speed, fine ....................................... 21
Dosing speed, percental share of ramp .................... 21
Dosing time monitoring ................................... 20

Error .................................................... 1
Error Message ............................................ 1

Fct. .................................................... 12
Fct. "AN.MODE" ........................................... 21
Fct. "C.DTA.RD" .......................................... 25
Fct. "C.DTA.WR" .......................................... 25
Fct. "COM.NO." ........................................... 7 11
Fct. "DATA-O" ............................................ 22
Fct. "DATEN.A" ........................................... 22
Fct. "DEC.PT." ........................................... 17 18 19
Fct. "DOSING" ............................................ 8
Fct. "KOMMA" ............................................. 17
Fct. "TR.FORMT" .......................................... 11 12 13 14 15 16
17 18 19 20 21 22
23 24
Fct. "TR.MODE" ........................................... 7 11
Fkt. .................................................... 12 22
Fkt. "AN.MODE" ........................................... 21
Fkt. "COM.NR." ........................................... 11
Fkt. "COM.Nr." ........................................... 7
Fkt. "DOSIER" ............................................ 8
Fkt. "I.FORMT" ........................................... 11 12 13 14 15 16
17 18 19 20 21 22
23 24
Fkt. "I.U.MODE" .......................................... 7 11
Fkt. "K.DAT.L" ........................................... 25
Fkt. "K.DAT.S" ........................................... 25
Fkt. "KOMMA" ............................................. 17 18 19

Gross .................................................... 8

Identification code ...................................... 7


Input .................................................... 11
Interrupting dosing cycle ................................ 8
intervals ................................................ 13
Issue to control output .................................. 22

Keyboard lock function ................................... 23


Keyboard, F Key, Measuring mode .......................... 1

max. AF value ............................................ 19

3 - 32 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen

Max. AF value, writing ................................... 19


Max. dosing time ......................................... 20
max. dosing time ......................................... 20

negative value ........................................... 13


Negative weight values ................................... 11
Net ...................................................... 8
Nominal dosage value ..................................... 17
Nominal dosage value, writing ............................ 17
nominal value, reading ................................... 14
Nominal-dosing value ..................................... 18
NOVA DP Data-format ...................................... 16

Output ................................................... 12 22
Overload ................................................. 11 13

Premature end of dosing .................................. 9


Profibus-DP interface .................................... 2 25 27 28
PTB ...................................................... 12
pull-up-resistor ......................................... 4

Reading balance parameters ............................... 15


Reading coded actual gross/net value and device status ... 12
Reading data ............................................. 11
Reading some data together ............................... 14
Reading the printout serial number ....................... 14
Reading unit configuration data (from the PC) ............ 26
Reset .................................................... 8 10 23 26
Resolution, 1/10 d Res. ................................ 8
RS232 interface .......................................... 2
RS422 interface .......................................... 2 6
RS485 interface .......................................... 2 4

Selection of interface ................................... 2


Serial communication ..................................... 7
Serial interface ......................................... 2
Setting zero ............................................. 7
Start of a dosing cycle .................................. 8
Status ................................................... 11
Summary of serial functions .............................. 27
Switch Block ............................................. 26

Taring ................................................... 8 11
Taring, Waiting time prior to t. ....................... 20
Temporarily increasing resolution ........................ 8
termination-resistor ..................................... 4
Threshold level for limit switch ......................... 22
tolerance + .............................................. 19
tolerance - .............................................. 19
Tolerance acknowledgement ................................ 9
Tolerance threshold, writing ............................. 18
Transmission of actual value in NOVA DP format ........... 16

Unit identification code ................................. 7


Unit test ................................................ 24

waiting time prior to registration ....................... 20


Waiting time prior to taring ............................. 20
waiting time prior to taring ............................. 20
Writing data ............................................. 17
Writing the unit configuration (to the PC) ............... 25

Programmer's manual 3 - 33

Вам также может понравиться