Академический Документы
Профессиональный Документы
Культура Документы
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.
Preface ............................................................. 1
- 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
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.
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.
J240
1 2 3
J234 J239
J235 J230 1 2 3
J236 J231
J237 J232
J238 J233
1 2 3 1 2
Fig.1
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
Fig.2b
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
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.
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.
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.
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.
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 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.
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.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.
Example:
+ = 2B
0 = 30
0 = 30
1 = 32
2 = 31
3 = 30
4 = 30
2 = 32
$ = 24
$ = 24
! = 21
! = 21
! = 21
! = 21
! = 21
! = 21
3 - 10 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen
After the transmission of data, the DK800 will disconnect the transmission.
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)
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".
3 - 12 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen
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).
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)
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
Programmer's manual 3 - 15
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen
3 - 16 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen
! = 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.
! = 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
! = 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)
> = 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)
! = 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"
! = 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)
> = 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
! = 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.
! = 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
! = 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)
! = 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
! = 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)
! = 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
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 _
! = 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.
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.
! = 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)
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
The functions "writing / reading unit configuration" are not available in the
Profibus-DP-version !
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
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.
! = 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
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
3 - 28 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen
Start
ready to dose ? no
(e.g. weigher
closed )
yes
DK800: !S + nominal value
DK800: !T + tolerance
a
Fig.5a
Programmer's manual 3 - 29
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen
tol.-report no
from DK800 ?
yes
operator request: tol. ok ?
no
tol. accepted ?
no ready-report
from DK800 ?
yes
DK800: *I... (read act. val. / status)
Fig.5b
3 - 30 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen
Index
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
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
3 - 32 Programmer's manual
MESOMATIC Automation und Messtechnik GmbH D-71394 Kernen
Output ................................................... 12 22
Overload ................................................. 11 13
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
Programmer's manual 3 - 33