Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
"PK", “LK”,
“ST 200”
Version: 3.1
Valid for:
REA-JET PK version 6.0 and higher
REA-JET LK version 3.1 and higher
REA-JET ST200 version 3.1 and higher
Table of contents
6 MODE 1: ....................................................................................................................... 7
Configurable parameters..................................................................................................................................................7
Configurable parameters..................................................................................................................................................9
1 Conventional denominations
In this User's Manual the denomination "Terminal" will stand either for the PK, LK (Piezo printer) system,
or for the ST 200 system.
Control functions and parameters which are not valid for both systems are marked accordingly.
Furthermore, the denomination "Host" will stand either for the Host computers respectively for the units
which are connected.
The REA-JET systems can be equipped with a serial interface in order to be able to communicate with a Host
system or with units such as scales, measuring systems, etc.
The interface can be configured in different modes for the communication with Hosts or other units (scales,
measuring systems, etc.).
Mode 1 is the direct assignment of variables or text selection by name. This mod is mainly destined for the
connection of units like scales, measuring systems, etc. In this mode the systems do not need to deal with
transmission protocols.
The units will just have to send the data string to be printed (weight, measuring value) to the terminal.
As for the communication with Host systems, Mode 2 (ASCII - Telegram communication) will mainly be
used.
3 Configurable acknowledgments
Independently of the transmission mode the terminals can be configured for the following
acknowledgments:
1. None
2. Echo
3. <ACK> / <NAK>
4. <ACK> <CR> <LF> / <NAK> <CR> <LF>
If the interface is used without acknowledgment (none), there is no possibility to check whether a telegram
has been received properly.
If the interface is used with echo, each character which has been received will immediately be transmitted
again on the interface. The sender of a telegram can then check the transmission since it will automatically
get back each character which has been sent. If telegrams are sent to the terminals, the Host will be
responsible of evaluating the echo and of possibly repeating the transmission. In order to avoid the system
being blocked by wrong telegrams, we recommend to have a transmission repeated at most 3 times and then
to have an error message be generated.
If characters which are received are defective (Framing, Parity or Overrun error), these will not be sent back
by the terminal.
If the terminal sends telegrams, it will also be waiting for the echo on the interface. If the telegram which
has been sent will not have been received completely within 500 ms after the transmission has been
completed, the transmission will be repeated. A transmission will be repeated up to 3 times.
If the interface is used with ACK/NAK and with ACK/NAK acknowledgment followed by a CR/LF
sequence, each telegram received has to be acknowledged.
An ACK or NAK confirmation will be carried out only on the basis of telegram framing and check sums
which are valid. The contents of the telegrams will not be checked at this stage.
If the reception is correct the receiver will have to acknowledge with
<ACK> [<CR><LF>]
Upon reception the terminals will send an ACK in the following cases:
• If the transmission contained a check sum, all characters, the telegram framing and the check sum were
OK.
• If the transmission contained no check sum, all characters and the telegram framing were OK.
• If variables have been assigned, all characters were OK and the transmission termination string has been
received.
A NAK [<CR><LF>] will be sent by the terminals only if a transmission error (Framing, Parity or Overrun
error) has occurred on the receiver's side, or - if the transmission mode has been set to "with check sum" - a
defective check sum has been received.
If the sender gets a NAK or no answer after a 500 ms time out, it will repeat the telegram. A telegram will
be repeated up to 3 times. If no ACK is received after the telegram has been repeated for 3 times, the
telegram will be rejected and an error message will be generated.
4 Configurable handshakes
The terminal can be stopped when it is sending data. Even if a handshake has been activated, the terminal
will never stop the Host since the terminal is able to process immediately any data quantity which is allowed
according to the specification.
The terminals may be set to the following handshakes over the menu:
1. No
The terminal will not react to any handshake signal. It cannot be stopped as long as it sends data.
3. Software
The terminal checks the digits which are received on the serial interface. If it receives
XOFF = DC3 = 13Hex it will be blocked as described for the hardware handshake. The terminal will
begin to send again data only after it has received XON = DC1 = 11Hex.
After power on, the terminal assumes that a XON status is given; it will therefore send data as long as it
will not have received a XOFF signal.
This character set is used in all REA-JET printers. The character set is based on MS-DOS code page 850.
The graphical characters are replaced with eastern European characters. Characters which differ from code
page 850 are marked gray.
001 101 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
0 0 @ P ` p Ç É á č š ð Ó 0
1 ! 1 A Q a q ü æ í Č Š Ð ß ± 1
2
↕ “ 2 B R b r é Æ ó ě ž Ê Ô 2
3 # 3 C S c s â ô ú Ě Ž ˾ Ò 3
4 $ 4 D T d t ä ö ñ ů ȶ õ 4
5 % 5 E U e u à ò Ñ Á Ů ı§ Õ 5
6
— & 6 F V f v å û ª  ã Í÷ µ 6
7
↕ ‘ 7 G W g w ç ù º À à Î≈ Þ 7
8
↑ ( 8 H X h x ê ÿ ¿ © ť Ï° þ 8
9
↓ ) 9 I Y i y ë Ö ⌐ ň Ť ŁĆ Ú 9
A
→ * : J Z j z è Ü ¬ Ň Ą łć Û A
B
← + ; K [ Ä k { ä ï ø ½ ř ą ŃŚ Ù B
C , < L \ Ö l | ö î £ ¼ Ř Ę ńś ý C
D
↔ - = M ] Ü m } ü ì Ø ¡ ¢ ę Ź Ý D
E . > N ^ n ~ ß Ä × « ¥ Ì ź E
F @ 2 / ? O _ o ∆ Å ƒ » Ÿ ¤ ś ´ Ŝ F
00 10 20 30 40 50 60 70 80 90 A0 B0 C0 D0 E0 F0
1 = The characters from 00 Hex to 1E Hex are used in the ST200 only, they can not be printed.
2 = Character 1f Hex is used in the print head driver KT1b to substitute the unprintable character 40 Hex.
The LC system only can print characters from 20 Hex to 7F Hex. The characters 5B Hex to 5D Hex and 7B
Hex to 7E Hex are used for the special German characters.
6 Mode 1:
This mode has been created in order to be able to receive information from simple data recording units such
as scales, measuring units, etc. The transmitted data can be stored in a variable or used as a text name.
In this communication mode one or several contents of variables (texts) can be assigned. After transmission
a designed texts will be assigned to the print heads.
The simplest way to send text to the terminal is to send the printable text terminated by a transmission end
character (for example CR).
VARIABLE_1<Transmission end character>
If several variables are transmitted, they must be separated by a text end character:
VARIABLE_1<Text end character>VARIABLE_2[<Text end character>]<Transmission end character>
The text end character following the last variable does not absolutely need to be sent.
In order to fix the beginning of a transmission you may send a start character.
<Start character>VARIABLE_1[<Text end character>VARIABLE_2]<Transmission end character>
Only once the transmission end character has been received, the data will be transmitted into the variables.
As long as no text end character has been sent, the transmission can be started again with a start character.
If no character has been received for more than 500 ms, the receive buffer will be cleared and the
transmission can start again at any time.
Configurable parameters
Start character The start character means the character which will initiate the transmission.
You may enter a character between 1 and 255 (01Hex and FF Hex). 0
means no starting character used. The character will cause the transmission
to be reset and the characters being possibly available in the buffer to be
cleared. The start character will not be printed.
If no start character has been set, the transmission will begin with the first
character which is received.
If your unit is able to send a start character in front of the text, you should
make use of that opportunity since the start character guarantees a defined
start of the transmission.
Text end character The text end character shows at which time the transmission of a variable is
completed. If further characters, except for the text end character, will
follow, these characters will be assigned to the next variable. Values
between 1 and 255 (01 Hex to FF Hex) can be entered as a text end
character. If 0 is entered, no text end character will be configured. The text
end character will not be printed. Once the last variable has been
transmitted, the text end character must not absolutely be transmitted. The
last variable may be completed directly with the transmission end character.
Transmission end Once the transmission end character has been received, the transmission is
character completed. The texts which have been preset will be assigned to the print
heads. A value between 1 and 255 (01 Hex to FF Hex) can be entered as a
transmission end character. The transmission end character will not be
printed. A transmission end character has to be specified.
Start variable No At this stage you will have to enter the number of the variable to which the
first text has to be assigned. If more than one variable is transmitted, the
texts will each time be assigned to the next higher-order variable.
Text No. Head 1: At this stage you will have to define which texts will have to be assigned to
Text No. Head 2: the printheads once the transmission end character has been received. If you
........ enter 0, no text will be assigned to the corresponding print head. The
variables
Text No. Head n: which are transmitted should be contained in the texts which are
transmitted. The setting can be defined for all print heads which are
available.
In this mode a name string can be transmitted to the terminal. The transmitted string is taken as a text name.
One or more text names can be transmitted in on telegram. The text with the transmitted name is searched in
the actual library and assigned to the appropriate print head. The names must match exactly. Any differences
between small and capital letters will be ignored.
Configurable parameters
Start character:
Text end character:
Transmission end character: Those parameters are as described in chapter 6.1 on page 7.
Assignment: Here you can specify whether you want to have text assignment or line
text assignment. If line text assignment is selected, only one name can be
transmitted.
Head 1: In those fields the position of the text names in the telegram must be
Head 2: specified. If zero is inputted for a print head no text will be assigned to the
…… print head.
Head n: In Line text mode those fields are not used.
The described acknowledgment modes can be used for both mode 1 communication modes.
Echo: The terminals will send back over the serial interface each character they have properly
received.
ACK/NAK: and ACK/NAK CR/LF. If this acknowledgment mode is activated, the terminals will send
an ACK once the transmission end character has been received.
If a defective character (Framing, Parity or Overrun error) is received, the terminal will send
a NAK.
Error messages cannot be sent over the serial interface in this transmission mode.
Only such error messages will be generated which cannot be turned off. All settings in the "Interface" menu
will be ignored.
If one of the following errors occurs, the print heads to which a text has to be assigned after the
transmission, will be assigned an empty text. Printing is therefore stopped!
The following configuration has been set for the next example:
Variable number 1 gets the content "200,00 kg". Text number 10 will afterwards be assigned to print head
number 1.
The following configuration has been set for the next example:
The following configuration has been set for the next example:
Parameter Value Comment
Start character 02 Dec 2 = STX will be transmitted as start character.
Text end character 03 Dec Variables will be separated by 3 = ETX.
Transmission end 04 Dec The transmission will be completed by 4 = EOT.
character
Start variable 12 Dec. The first text transmitted will be assigned to Variable number
12.
o
Text N Head 1 01 Dec Text number 1 will be assigned to print head number 1 after
transmission.
Text No Head 2 04 Dec Text number 4 will be assigned to print head number 2 after
transmission.
The following configuration has been set for the next example:
Parameter Value Comment
Start character 02 Dec 2 = STX will be transmitted as start character.
Text end character 03 Dec Variables will be separated by 3 = ETX.
Transmission end 04 Dec The transmission will be completed by 4 = EOT.
character
Start variable 12 Dec. The first text transmitted will be assigned to Variable number
12.
o
Text N Head 1 01 Dec Text number 1 will be assigned to print head number 1 after
transmission.
Text No Head 2 04 Dec Text number 4 will be assigned to print head number 2 after
transmission.
In this mode the data exchange between the terminals and a Host computer is carried out in form of
telegrams. Each telegram consists of a frame (start and termination string), a command character and
command parameters which depend on the corresponding command.
<STX> = 02 Hex
<Telegram counter> = ASCII number from "0" to "9". Each time a telegram is transmitted the telegram
counter will be increased by one. The receiver realizes over the telegram
counter that a telegram has already been received. If a station receives a
telegram twice with the same number, the receipt must be acknowledged,
however, the telegram must not be evaluated. The error may occur in case the
acknowledgment of a telegram is not or unproperly received. After a reset the
terminals will begin counting from "0". They will afterwards continue counting
up to "9" and begin again with "1".
"0","1","2",...."9","1","2",...."9","1",......
<Command> = An ASCII byte (please refer to the command table).
[Command parameter] = Additional parameter. The number and the content depend on the command.
Only ASCII characters > 20 Hex or specified control characters may be used as
command parameters.
<Termination string> = Depends on the chosen mode, whether the transmission will be terminated with
or without check sum.
In principle you may select whether the transmission has to be carried out "with check sum" or "without
check sum".
<ETX>
<ETX>< BCC>
Both transmission forms can be configured in such a way that the sequence <CR><LF> will have to be sent
at the end of each transmission.
This possibility has been created since some terminal servers will send the data string only once they have
received that sequence.
If you have selected the transmission form "with check sum" the <Termination string> will have the
following format:
<ETX> pz [<CR><LF>]
<ETX> = 03 Hex
pz = Check sum. The check sum is the XOR'ing of all digits, from <STX> to
<ETX> inclusively. The check sum may contain values from 00H to FFH. The
check sum will be sent as two bytes. First the high-order nibble is sent, then the
low-order nibble. 30 Hex are added to each nibble.
0 - 9 = 30H - 39H = "0" - "9" ASCII
A - F = 3AH - 3FH = ":", ";", "<", "=", ">", "?" ASCII
Example:
pz = 0EH
The following bytes will be transmitted: 30H, 3EH = "0>"
<CR> = 0DH
<LF> = 0AH
If you have selected the transmission "with check sum", you should in any case select the <ACK><NAK>
mode of acknowledgment.
If you have selected the transmission form "without check sum" the <Termination string> will only consist
of:
<ETX>[<CR><LF>]
<ETX> = 03H
<CR> = 0DH
<LF> = 0AH
7.3 Commands
* = The command ESC has only been implemented for compatibility reasons with the input terminal ST100.
For new developments the command "Z" should be used.
<STX><Z>0<Termination string>
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
0 = Command (30 Hex)
<Termination string> = Termination string corresponding to the selected mode.
Example:
The terminal will respond to the configuration request with a configuration message.
The terminal will indicate its configuration with the configuration message.
<STX><Z>1vv.rrAAxxx/yy[XXX/YY][xxx/yy]<Termination string>
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
1 = Command (31 Hex)
vv.rr = Version number of the software in the format Version.Release (example: 02.01)
AA = Number of the printheads which are controlled by the system
xxx/yy = Printhead type of Head 1 (please refer to the table below)
[XXX/YY] = Printhead type of Head 2, if available (please refer to the table below)
[xxx.yy] = For each printhead which can be run with the system a printhead type will be
indicated.
The printhead type will be indicated as a 6 Byte ASCII string with slash (2F Hex).
The following printhead types are possible:
Example:
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
2 = Command (32 Hex)
<Printhead number> = Printhead number. Two byte ASCII from "01" to "99"
<Termination string> = Termination string corresponding to the selected mode.
Example:
The terminal will respond to the status request with a status message.
The following error messages are generated (please also refer to Chapter "Error messages"):
Wrong head number: You have tried to request the status of a printhead which is not available.
The status message is the response of the terminal to a status request. If the status message has been
configured automatically, this message will be sent automatically as soon as a status which is marked by "*"
will change.
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
3 = Command (33 Hex)
<Printhead number> = Printhead number. Two byte ASCII from "01" to "99"
<STATUS 1> = Status byte 1 (please refer to the table below)
<STATUS 2> = Status byte 2 (please refer to the table below)
<Termination string> = Termination string corresponding to the selected mode.
The single bits in the status bytes have the following meaning:
Status byte 1
PK Bit
ST 200 LK number Meaning 0= 1=
✓ ✓ 8 always 1
✓ ✓ 7 Printhead No printhead connected Printhead is connected
(the remaining parameters have
no meaning)
✓ 6 Heating element Heating OFF Heating ON
✓ ✓* 5 + Text assignment No text assigned Text is assigned
✓ ✓ 4 Basic parameters No basic parameters available Basic parameters
available
✓ 3 * + Print voltage Print voltage defective Print voltage OK
✓ 2 * + Temperature Temperature out of admissible Temperature OK
range
✓ 1 * + Ink No ink available (ink out) Ink available
The bits marked by "*" will generate an automatic status message on change, if this has been configured.
If the bits marked by "+" will be 0 at the time a print go signal is detected, printing will be rejected. If a print
message has been configured, an error message will be sent.
Status byte 2
PK/ Bit
ST 200 LK number Meaning 0= 1=
✔ ✔ 8 always 1
✔ ✔ 7 * Print stop Printing has been stopped on the Printing is enabled
terminal terminal
✔ 6 * Print stop Printing has been stopped by a Printing is enabled
counter counter
5 Ink Low Ink OK Ink low
4 Waste full Waste OK Waste bottle full
3 0
✔ 2 00 = ready for printing
1 01 = Bitmap generating running
10 = Print delay running (from now on new texts can be assigned).
11 = Printing process running
Example:
This function defines at which positions of the printing the terminal will have to send a print message to the
Host.
The print and status messages will be sent to the interface on which the configuration has been received.
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
4 = Command (34 Hex)
<Printhead number> = Printhead number. Two byte ASCII from "01" to "99"
<Configuration byte> = With this byte it is possible to code at which time during the printing
process automatic print messages have to be sent to the Host. If the bit is
cleared (0), no messages will be sent, if a bit is set (1), the respective messages
will be sent. It is furthermore possible to configure several messages. (see table
listed below)
<Termination string> = Termination string corresponding to the selected mode.
Configuration byte:
Example:
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong head number: You have tried to configure a printhead which is not available.
The terminal sends the print status to the Host by the print message.
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
5 = Command (35 Hex)
<Printhead number> = Printhead number. Two byte ASCII from "01" to "99"
<Configuration byte> = The content of the message is coded in this byte.
If Bit 7 is set, the printing could be carried out successfully up to now. If Bit 7
is cleared, an error occurred and the printing cannot be carried out. As for Bits
1 to 4, only one Bit can be set since own messages will be generated for each
printing period, if these are configured (see table below).
<STATUS 1> = Status byte 1 (for description please refer to "Status message")
<STATUS 2> = Status byte 2 (for description please refer to "Status message")
<Termination string> = Termination string corresponding to the selected mode.
Configuration byte:
The print message is send by the REA-JET systems automatically during print, if it has been turned on in the
menu or using the configuration of the print and status message.
Example:
The REA-JET system sends a print message after the bitmap generation:
The basic parameters of a printhead can be modified with this telegram. If certain values of the basic
parameters should not change, these can be left out by entering "x" in the corresponding positions.
The terminals send this message in response to a basic parameters request.
The exact description and the ranges of the various parameters may be obtained from the User's Manual of
the system you are using.
The telegram "Set / report basic parameters" has the following format:
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
6 = Command (36 Hex)
<Printhead number> = Printhead number. Two byte ASCII from "01" to "99"
R = Direction of the product
"R" = 52 Hex = Product is moving from the left to the right
"L" = 4C Hex = Product is moving from the right to the left
"x" = 78 Hex = Do not change direction
L = Print direction
"N" = 4E Hex = Normal
"K" = 4B Hex = Upside down
"x" = 78 Hex = Do not change direction
T = Encoder
"I" = 49 Hex = Internal
"E" = 45 Hex = External
"x" = 78 Hex = Do not change encoder type
hhh = Print height. Character height (in mm) to be printed, which is depending on
the respective printhead type. The printhead will have to be mechanically
positioned accordingly. Values ranging from "001" to "999" are allowed.
Enter "xxx" to leave the existing parameter unchanged.
dd = Print density (compression)
This parameter defines the compression of the dot spaces.
"00" = normal spacing to "99" = compressed representation.
The permissible range depends on the system you are using (for example KT
1A "00" to "09") and is contained in the User's Manual of your system.
Enter "xx" to leave the existing parameter unchanged.
aaaa = Sensor gap
Specification of the distance (in mm) between the product sensor and the
product to be printed.
Values ranging from "0000" to "9999" are allowed.
Enter "xxxx" to leave the existing parameter unchanged.
Example:
ASCII <STX> 0 6 01 L N x
Hex 02 30 36 30 31 4C 4E 78
Remark Telegram Command character: Printhead Product Print Encoder
counter set basic parameters № 1 movement direction no change
(“0” to “9”) right to left normal
00525 xx <ETX>...
30 30 35 32 35 78 78 03
Conveyor speed Dot size Termination
5,25 m/min no change
If a REA-JET system sends a basic parameter message, all parameters are set to the actual values. The
REA-JET systems will not send don’t care values (xx..).
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong head number: You have tried to configure a printhead which is not available.
Wrong telegram length: The length of the telegram does not correspond to the format as described
above. The basic parameters have not been evaluated.
Wrong content: A verification of the telegram showed that either non-admissible characters
have been used in one of the parameters, or that the parameter has been set
out of the permissible range. The telegram processing will be interrupted,
the basic parameters will not be assigned. The number of the wrong
parameter will be handed over.
The parameters are numbered consecutively in order:
"01" = Direction of the product, "02" = Print direction, ......"10" = Dot size.
This telegram requests the basic parameters of a printhead. The terminal responds with the message "Report
basic parameters".
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
7 = Command (37 Hex)
<Printhead number> = Printhead number. Two byte ASCII “01” to “99”
<Termination string> = Termination string corresponding to the selected mode.
Example:
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong head number: You have tried to request the basic parameters of a printhead which is not
available.
The telegram "Print disable / enable" will stop a printhead from printing or enable it to print.
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
8 = Command (38 Hex)
<Printhead number> = Printhead number. Two byte ASCII from "01" to "99"
S = Stop flag
"0" = All conditions for stopping the printhead from printing will be
cleared. Printing is enabled.
"1" = The stop condition "Print stop from terminal" will be set. Printing is
stopped.
<Termination string> = Termination string corresponding to the selected mode.
Example:
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong head number: You have tried to enable/disable printing of a printhead which is not
available.
Wrong content: The stop flag is not "0" or "1". The number of the wrong parameter will
always be "01".
The acknowledge (ACK) only confirms that the frame of the telegram was correct. The content of the
telegram is not checked at this stage. If an error in a content of a telegram is detected, an error message will
be generated.
<STX><Z>9<Command><Error><Parameter><Termination string>
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
9 = Command (39 Hex)
<Command> = Command which has been received and is responsible for the error
<Error> = Error number. Two byte
Generally applicable error numbers may be taken from the table below.
<Parameter> = Additional information in ASCII, depending on the error message.
<Termination string> = Termination string corresponding to the selected mode.
Error messages which cannot be turned off are always displayed on the screen. If the option "Send errors to
the serial interface" is turned on, the terminals will send these error messages to the serial interface as well.
Example:
Error message to the telegram “enable / disable printing” addressed to the unknown printhead number three.
ASCII <STX> 0 9 8 01
Hex 02 30 39 38 30 31
Remark Telegram counter Command Received command Error number 01 =
(“0” to “9”) character: which caused the wrong head number
error message error: 8
03 <ETX>...
30 33 03
additional info: Termination
head number 3 unknown
With this telegram a script line can be transmitted to the terminals. A Script is a simple programming
language to program the terminals. For a detailed documentation on the script language see the manual
“Working with script language on the REA-JET terminals ST200, LK, PK”
Script lines are transmitted to the single texts. If a script line is transmitted, the old contend of this line is
cleared and overwritten with the new content.
If a script line is transmitted to line number zero, the script is executed immediately. To execute a multi line
script you must first transmit all the lines and then start the script by sending a “go line number” command
to line zero.
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
; = Command (3B Hex)
<DC4> = Start assignment of variables (14 Hex)
ll = Line number in the single texts to put the script line in.
Two byte ASCII ("00"to "99")
<Script line> = Script commands.
<Termination string> = Termination string corresponding to the selected mode.
Example:
ASCII <STX> 0 ; 00
Hex 02 30 3B 30 30
Remark Telegram counter Command Store the script in line zero
(“0” to “9”) transmit script
line
p5 <ETX>...
70 35 03
Beep for 275ms (5 * 55ms) Termination
This telegram transmits the script command p5 (beep for 5 * 55ms) to line zero. And executes it.
The assignment of variables assigns contents for variables to the terminals. The terminals dispose of
99 variables (from 01 to 99). The variables can be used in any print-out.
This telegram assigns new contents to one or to several variables.
<STX><Z>A<DC4>vvttttt....<DC4>vvttttttttttt......<Termination string>
<STX><Z>A<DC2>KKNNN<DC2>KKNNN......<Termination string>
Assignments of variables and texts may be combined in any order in one telegram.
The combination of text- and variable assignment has the following structure:
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
A = Command (41 Hex)
<DC4> = Start assignment of variables (14 Hex)
vv = Variable number. Two byte ASCII ("01" to "99")
tttttttttt... = New content. Any ASCII string. All characters from 20 Hex to FF Hex can
be used, as long as they belong to the character set of the system you are using.
The text may be followed by either further assignments which will begin with
<DC4>, or by the termination string. If the text you enter is longer than the
variable, the text will be shortened according to the length of the variable and
an error message will be generated. The length of the whole telegram, start and
termination strings included, must not exceed 255 Bytes.
<DC2> = Start of the text assignment (12 Hex)
KK = Printhead number. Two byte ASCII ("01" to "99")
NNN = Number of the text to be assigned to the printhead. Three byte ASCII
("001" to "999")
<Termination string> = Termination string corresponding to the selected mode.
Example
Assign the text “hello” to variable number 1, the text “world” to variable number 2. Assign text number 1 to
printhead number 1 and text number 4 to printhead number 2
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong head number: If several printhead numbers are wrong in the telegram, an error message
will be generated for each printhead number.
Variable too long: If several variables are too long in the telegram, an error message will be
generated for each variable.
Text too long: If several text assignments are too long in the telegram, an error message
will be generated for each assignment.
Wrong content: No DC2 or DC4 was contained in the telegram.
<STX><Z>Bnnmmxx..<Termination string>
<STX> = 02 Hex
<Z> = Telegram counter, ASCII number from "0" to "9"
B = Command (42 Hex)
nn = Any number of variable numbers, the contents of which are to be sent to the
Host.
mm The numbers of the variables must be entered as a two character ASCII number
xx. from "01" to "99".
<Termination string> = Termination string corresponding to the selected mode.
Example:
All requested variables are sent back by the terminals in one telegram. If the number of digits exceeds 255,
the terminals will send several telegrams.
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong telegram length: The number of characters for the variable numbers is not dividable by 2.
With this telegram the date and time of the controller and the printheads can be set or requested.
The telegram set date and time has the following format:
<STX> = 02 Hex
<Z> = Telegram counter ASCII-character number "0" to "9"
C = Command (43 Hex)
f = Flag. The flag controls, which clock to set. Since the PK system only has one
clock the flags “0”, “1”, “2” and “9” are identical.
„0“ = 30 Hex = set date and time on the ST200 and all connected printheads.
„1“ = 31 Hex = set date and time on the ST200 and printhead 1.
„2“ = 32 Hex = set date and time on the ST200 and printhead 2.
„9“ = 39 Hex = set date and time on the ST200 only.
“A” = 41 Hex = request date and time. This telegram does not require date and
time information. The controller answers this request with the same
telegram. The flag is set to “9”.
YYYY = Year four digit number „0001“ – „9999“.
MM Month two digit number „01“ – „12“.
DD Day two digit number "01" – „31".
hh = Hour two digit number in 24 hour format „00“ – „24“.
mm = Minute two digit number „00“ – „59“
ss = Second two digit number „00“ – „59“.
<Termination string> = Termination string corresponding to the selected mode.
Example:
Set date and time to December 3rd 2000 14:30:00 (2:30 PM)
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong telegram length: The number of characters is not as specified.
Wrong contents: Date and/or time are out of range.
This command can activate or release a print go signal. The command has the same effect than the photocell.
On the ST200 the telegram addresses directly the printheads. On the PK / LK systems the telegram
addresses the sensor inputs. A print go to a sensor input starts printing on all printheads assigned to sensor
input.
<STX> = 02 Hex
<Z> = Telegram counter ASCII-character number "0" to "9"
D = Command (44 Hex)
kk = Printhead or sensor number. two digit ASCII “00” to “99”
If “00” is set, print go is activated on all connected printheads or sensor inputs.
u = Subcommand:
„0“ = 30 Hex = Release print go.
„1“ = 31 Hex = Set print go for one print.
„2“ = 32 Hex = Set print go. Print go will remain, until .it is released by a
release command. This command only has effect, if continuos
printing is activated.
<Termination string> = Termination string corresponding to the selected mode.
Example:
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong telegram length: The number of characters is not as specified.
Wrong head number: You have tried to address printhead which is not available.
Wrong contents: Date and/or time are out of range.
With this command a purge function can be activated on the printhead. The command is differently handled
by the ST200 and the PK / LK systems.
REA-JET ST200: This command provokes the same function than the purge button on the backside of the
printhead.
REA-JET PK / LK: The printing of a black area is initiated. The REA-JET system switches over to internal
clock and prints with an intermediate print frequency. After purging, the parameters are
switched back to the original values.
<STX> = 02 Hex
<Z> = Telegram counter ASCII-number from "0" to "9".
E = Command character (45 Hex).
KK = Printhead number. Two digits ASCII from „01“ to „99“. If „00“ is used, the
purge function is initiated on all connected printheads.
U = Sub command
„0“ = 30 Hex = Stop purging .
„1“ = 31 Hex = Start purging for all nozzles.
„2“ = 32 Hex = Start purging for the upper half of nozzles.
„3“ = 39 Hex = Start purging for the lower half of nozzles.
<Termination string> = Termination string corresponding to the selected mode.
Example:
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages"):
Wrong telegram length: The number of characters is not as specified.
Wrong head number: You have tried to address printhead which is not available.
Wrong contents: Date and/or time are out of range.
<STX> = 02 Hex
<Z> = Telegram counter ASCII-number from "0" to "9".
H = Command character (48 Hex).
KK = Printhead number. Two digits ASCII from „01“ to „99“.
<Termination string> = Termination string corresponding to the selected mode.
With this telegram, the device parameter can be set. The terminals send this telegram upon a “Request
device parameter” telegram.
With this telegram, all parameters have to be send. Unsent parameters will be set to their default values.
<STX> = 02 Hex
<Z> = Telegram counter ASCII-number from "0" to "9".
I = Command character (49 Hex).
KK = Printhead number. Two digits ASCII from „01“ to „99“.
PPP = any number of device parameters.
<Termination string> = Termination string corresponding to the selected mode.
Device parameters:
The device parameters are transmitted in the format: <code letter><value> the parameters are delimited by a
space character. If a code letter is transmitted without value, it is set to the default value.
Not transmitted parameters are also set to the default value.
Kommand
Letter Parameter Possible values, comment value
ST200
Example:
<STX>0I01_q_v20,5<ETX>> (Blank characters are shown as “_”)
This telegram will set Clock source to internal and conveyer speed to 20.5m/min. All other parameters are
set to their default value.
With this telegram, all unsent parameters will stay at the current values.
The telegram set partial device parameter has the following format:
<STX> = 02 Hex
<Z> = Telegram counter ASCII-number from "0" to "9".
J = Command character (4A Hex).
KK = Printhead number. Two digits ASCII from „01“ to „99“.
PPP = any number of device parameters.
<Termination string> = Termination string corresponding to the selected mode.
Device parameters:
The device parameters are transmitted in the format: <code letter><value> the parameters are delimited by a
space character. If a code letter is transmitted without value, it is set to the default value.
The code letters and their allowed values are described in section: 7.3.18 on page 40.
Example:
<STX>0I01_qE_t15<ETX> (Blank characters are shown as “_”)
This telegram will set Clock source to external and encoder resolution to 15 pulses/mm. All other
parameters are left at their current values.
The direct text assignment is a possibility to send, over the REA-JET terminal ST 200, texts as well as
formatting characteristics to the controller drivers KT 1A. The terminal will not check whether the texts
which are sent are correct, it will just transmit them to the drivers. A description of the texts and text fields
is contained in the User's Manual "Data communication to the REA-JET printhead driver KT 1A" in the
version which is valid for the driver you are using.
<STX><Z>ZkkRLddrrrrttttttt....<Termination string>
or
<STX><ESC>Kttttttt....<Termination string>
<STX> = 02 Hex
<Z> = Telegramm counter, ASCII number from "0" to "9"
Z = Command (5A Hex)
kk = Printhead number. Two byte ASCII "01" to "99"
R = Direction of the product
"R" = 52 Hex = Product is moving from the left to the right
"L" = 4C Hex = Product is moving from the right to the left
"x" = 78 Hex = Take the direction from the basic parameters
L = Print direction
"N" = 4E Hex = Normal
"K" = 4B Hex = Upside down
"x" = 78 Hex = Take the direction from the basic parameters
dd = Print density (compression)
This parameter defines the compression of the dot spaces.
"00" = normal spacing to "99" = compressed representation.
The permissible range depends on the system you are using (for example KT
1A "00" to "09") and is contained in the User's Manual of your system.
Enter "xx" to take the value from the basic parameters.
rrrr = Sensor gap
This parameter defines at which distance (in mm) from the product sensor
printing has to start.
Values ranging from "0000" to "9999" are allowed.
Enter "xxxx" to take the value from the basic parameters.
ttttttt.. = One or several print texts or print fields which have to be transmitted to the
printheads. Each text block must be completed with "@" = 40H. See the
documentation “Data communication to the REA-JET printhead driver KT1” for
details
<Termination string> = Termination string corresponding to the selected mode.
Example:
<02>1Z01RN02xxxxA0AS´REA-JET@B0AS´Testdruck@<03>
REA-JET
Testdruck
ASCII <STX> 1 Z 01 R N
Hex 02 31 5A 30 31 52 4E
Remark Telegram counter Command Printhead Right to Direction:
(“0” to “”9”) character: №1 left Normal
Direct text
assignment
or
<STX> = 02 Hex
<ESC> = Command (1B Hex). Instead of the command "Z" it is also possible to use an
"ESC" (1B Hex) as a command. In the command <ESC> the printhead number
has to be transmitted only as a one character number. The telegram counter is
dropped. This option has been implemented for compatibility reasons with the
input terminal ST 100. For new developments the command "Z" should be used
in any case, since the command <ESC> will possibly no longer be supported in
a future version without notice.
K = Printhead number ("0" = 30H or "1" = 31H)
ttttttt.. = One or several print texts or print fields which have to be transmitted to the
printheads. Each text block must be completed with "@" = 40H. See the
documentation “Data communication to the REA-JET printhead driver KT1” for
details
<Termination string> = Termination string corresponding to the selected mode.
Example:
<02><ESC>1A0AS´REA-JET@B0AS´Testdruck@<03>
REA-JET
Testdruck
The following error messages are generated (please refer to Chapter 7.3.10 "Error messages")
Wrong printhead number: You have tried to send a text to a printhead which is not available.
Wrong content: A verification of the telegram showed that either non-admissible characters
have been used in one of the parameters, or that the parameter has been set
out of the permissible range. The telegram processing will be interrupted,
the texts will not be assigned. The number of the wrong parameter will be
handed over.
The parameters are numbered consecutively in order:
"01" = Direction of the product, "02" = Print direction, ......"04" = Sensor
gap.
Text too long: You have tried to assign a text which is too long to a printhead.
These examples show a communication between a Host computer and the REA Piezo printer PK.
In these examples you will find the representation of a transmission without check sum.
The product sensor will send a signal and the PK system will begin to print.
5. The PK system will send the print message to the Host after the print processing
PK sends to Host
<02>1501<C4><FF><C2><03>
C4 = This is a print message at the end of the processing.
Printing was until now successful.
FF = All parameters are OK
C2 = Print is not stopped
Print delay running.