DATAPROCESS EUROPE S.p.A. Programming Manual Release 1.3 DATAPROCESS EUROPE S.p.A. Viale Dell’Artigianato, 19 Binasco (MI) Tel. 02- 900221 Fax 02- 900913 UV521UPG ST3xx ST4xx ST5xx – PROGRAMMING MANUAL - Pag.
DATAPROCESS EUROPE S.p.A. 1 Introduction................................................................................................................. 5 2 Technical specifications.............................................................................................. 5 3 Description of the Printer ........................................................................................... 5 4 Test label..........................................................................................
DATAPROCESS EUROPE S.p.A. 15.4 DLE-US-US-NAK ........................................................................................................16 16 Printable characters.................................................................................................. 16 17 The "/" command to programme the printer ......................................................... 21 17.1 // ..................................................................................................................
DATAPROCESS EUROPE S.p.A. 17.28 /Jhhss ............................................................................................................................ 38 17.29 /Kpdet........................................................................................................................... 38 17.30 /Ldlllltt ......................................................................................................................... 39 17.31 /Mwwwwhhhhttt .....................................
DATAPROCESS EUROPE S.p.A. 1 Introduction This document describes the programming commands for the ST302, ST312, ST314, ST403, ST406 printers. 2 Technical specifications St302 St312 St403 St406 St514 St516 Direct thermal Ther. transfer 8dot Direct thermal Ther. transfer 8dot Direct thermal Ther. transfer 8dot Direct thermal Ther. transfer 8dot Direct thermal Ther.
DATAPROCESS EUROPE S.p.A. conditions, with labels and ribbon correctly installed, a test label will be printed (unless deactivated in configuration). The PRINT indicator lights up during printing. Note: Printing of the test label can be deactivated with the / $&% command. 4 Test label The test label contains the following information: ST314 19 247 E1.4 00000 032 1 2 000 3 08:35:40 Ven 25-Apr-1997 4 >T314D10423792B583808100004390439 Ymax:297 mm.
DATAPROCESS EUROPE S.p.A. H G N K J V $&% Alignment of label (offset) Print area x and y coordinates origin Cutter parameters Print mode Print speed and image Paper feed speed and printhead energy Memory string and printer function selector 6. I counters used are printed in the last two lines of the test label as follows: HON: 0:00 #SWON: 0 #LP: 0 KP: 0.
DATAPROCESS EUROPE S.p.A. 5 Operating status ON LINE is the normal function: the green led is on and the printer is ready to receive data from the serial line. PRINT mode is when the printer is printing: the yellow PRINT led is on, data reception is suspended and the printer only accepts data for the variable fields.
DATAPROCESS EUROPE S.p.A. 7 Keys There are two keys on the control panel protected by a membrane: 7.1 Pause key Switches the printer from ON-LINE to OFF-LINE and vice versa. 7.2 Feed key Does not have any effect when pressed by itself with the printer ON-LINE but will print a copy of the last label printed or to issue a blank label when the printer is in OFF-LINE status. 8 Using the keys The two keys can also be used for other functions: abort, reset, macro recall, calibration) 8.1.
DATAPROCESS EUROPE S.p.A. If a macro contains the /W command, which determines the number of labels which will be printed, the printer will automatically print those labels after having recalled the macro. 8.1.4 Calibration This procedure is necessary for all printers, which have a firmware release prior to 2.0. It may also be necessary in some cases where the printer has release 2.0. The calibration is performed as follows: 1.
DATAPROCESS EUROPE S.p.A. area of the label is maximised whilst taking into consideration the pressure of the printhead on the rubber roller. Cases where the auto calibration is advisable: 9 Whenever the windows driver is used. Label rolls can be changed easily without having to change the settings of the printer. 9 When the user is not familiar with the Leptons printer and wants to use it quickly. 9 When label rolls are frequently replaced.
DATAPROCESS EUROPE S.p.A. only 2 metres with the Leptons parallel cable. The parallel cable is not a standard cable. A faster communication speed is achieved with the parallel connection and this is strongly recommended when the windows drivers are used together with the ST4xx series. 10.3 Network Used to connect a number of printers to the same PC. The network uses a NSA-047/N converter for each printer as well as one for the PC. The maximum number of printers and/or applicators in a network is 14.
DATAPROCESS EUROPE S.p.A. (approx. 680 labels) unless the buffer is emptied because the external device raises the CTS. If the cable on the serial is not connected the CTS does not have a clearly defined CTS level. The CTS line is controlled between each character and the transmission will immediately stop when the signal becomes negative. Note: the printer is normally ready to receive until the buffer is full even when it is printing.
DATAPROCESS EUROPE S.p.A. (ASCII Code 4). It will then activate the receiving buffer and will function as a normal printer with the only difference that any status information received, produced during the printing (or when a status request is processed), will be loaded in the transmission buffer and will not be transmitted until another activation sequence is received. If the transmission buffer is empty when the activation sequence is received, only the EOT will be transmitted.
DATAPROCESS EUROPE S.p.A. 13 Printer control commands The programming language for the ST3XX, ST4XX and ST5XX series of printers is proprietary to LEPTONS and is not compatible with other printers available on the market.
DATAPROCESS EUROPE S.p.A. 15 Commands with absolute priority The printer recognises sequences of 4 consecutive control characters, which represent commands which are immediately executed instead of being stored in the buffer for subsequent processing by the command interpreter. The sequences are the following: 15.1 VT-US-US-NAK (0B-1F-1F-15 hex, 11-31-31-21 dec) puts the printer into busy status, sets the TRS to negative and sends an XOFF.
DATAPROCESS EUROPE S.p.A. Position 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 Character ! " # $ % & ' ( ) * + , .
DATAPROCESS EUROPE S.p.A.
DATAPROCESS EUROPE S.p.A.
DATAPROCESS EUROPE S.p.A. each character in the n.th position the corresponding ASCII code. For this reason there are two different tables for DOS and Windows. Both of the tables are called MAPIBM and are sent to the printer by the LEPTONS LWDOS and WinLW programmes via the /Y command. FONTS There are two types of font – fonts that are stored in the EPROM of the printer and fonts that can be loaded from external sources and which will still be treated as being resident in the printer.
DATAPROCESS EUROPE S.p.A. 17 The "/" command to programme the printer All printer commands must start with the character “/” unless this has been replaced by another character. It is strongly recommended that this character is not changed unless exceptional circumstances require it. 17.1 // the “//” command is used to print the “/” character. Generally a command header immediately followed by another command header will treat it as a printable character. 17.
DATAPROCESS EUROPE S.p.A. 11 12 13 14 15 16 Prints with FEED key(only blank label) Prints test label on switch-on. Return message when ENQ recognised. Sends XOFF and sets the printer to busy when it prints or is OFF-LINE Messages of return and management FORM FEED Controls product photo sensor detector It is possible to use a space as instead of "0" and "1". In this case the function of that position remains the same as that before using the /$&% command.
DATAPROCESS EUROPE S.p.A. b speed, 1 digit (0=38400, 1=19200, 2=9600, 3=4800, 4=2400, 5=1200, 6=600, 7=300 baud); d Number of data bits, 1 digit (allowed: 7 or 8); p parity, 1 character (N=no, Z=zero, O=odd, E=even); s Stop bit , 1 digit (1 or 2). It is not necessary to memorise the command. Note: when the serial parameters are changed with this command it is necessary (in any old versions of firmware) to switch the printer off and then on again to implement the changes. 17.
DATAPROCESS EUROPE S.p.A. 17.12 /$>Paaabbbcccppprrr The /$>P command is used to change the sensitivity of the sensors for label gap, end paper and end ribbon. This parameter is indeed used by the printer it is disabled the autocalibration. In the contrary case the printing treadle of time in time the more suitable value.
DATAPROCESS EUROPE S.p.A. After correctly configuring the communication port (usually 9600,8N1), connect the printer to the serial port of the PC with the cable supplied with the LEPTONS LW-DOS or WinLw software package (this manual also contains the specifications for this cable) when the printer is switched on the following text will appear on the screen and which gives the configuration of the printer.
DATAPROCESS EUROPE S.p.A. 17.13 / $>Tiiihbbbyyyyffffmmmmnnnnttttpppp The /$>T command is used to set certain parameters regarding the identification of the printer and the memory configuration. It is advisable to not change this parameter. If this parameter is changed incorrectly it is possible that the printer will have some difficulties on switch on which can then not be easily resolved.
DATAPROCESS EUROPE S.p.A. 17.16 /*Dx solo ST4xx ST5xx This command is used to choose between single or double application with the AP406 applicator. x=0 x=1 x=2 x=3 Double Double Single Single application application application application Left/Right Right/Left Left Right 17.17 /*Txx solo ST4xx ST5xx The following command sets the delay time before the photo sensors on the applicator plate are read. The time starts from the moment the label has been printed and is expressed in seconds.
DATAPROCESS EUROPE S.p.A. 17.18 /*Oo The /*O command is used to rotate the print in relation to the label and must be followed by a single parameter which defines the orientation (values: from 0 to 3). Orientation of 0 maintains compatibility with the ST230, (default value). The label is printed in reverse if 2 is selected whereas 1 and 3 will rotate the printing by 90° in a clockwise or anticlockwise direction respectively.
DATAPROCESS EUROPE S.p.A. 6 7 yes Vexp=2 yes Vexp=2 no yes If the characters under the barcode are present, the fonts used for the print depend on the parameter used for the width of the bars: w=1 the small font will be used w=2 or w=3 gives the normal font w=4, 5, 6, 7 or 8 gives the large font. The horizontal expansion factor is set to 1 whereas the vertical expansion factor is: 1 for c=2, 3 2 for c=6, 7. 17.21 /Bthhhc..
DATAPROCESS EUROPE S.p.A. EAN8 Same rules as EAN13, but with 7 or 8 digits. UPCA Same rules as EAN13, but with 11 or 12 digits. The valid characters are the 26 CAPITAL letters of the alphabet /from A to CODE39 Z), the 10 numbers (from 0 to 9), the space and the following special characters - . $ / + % * @ . The asterisk (*) is used as delimiter of the sequence and must be put at the beginning and at the end. However the code can be printed even if the asterisk is missing.
DATAPROCESS EUROPE S.p.A. code where numerical and alphabetic characters coexist and where it is possible to assign to the numerical part a code as in SET C and to the alphabetic characters a code as per SET A. This maximises the compression of the barcode i.e. it becomes shorter. The following table gives the special characters: Extended ASCII Function codes 128 FNC 3 129 FNC 2 130 SHIFT 131 SET C 132 SET B 133 SET A 134 FNC 1 This is a variation of CODE128.
DATAPROCESS EUROPE S.p.A. 17.22 /C The /C command is used to empty the buffer of the printer. All the fields are removed and the parameters are reset to the following default values: font = normal source = EPROM (fixed spacing) horizontal expansion = 1 vertical expansion = 1 interline = 20 pitch = 12 horizontal position of cursor = 0 vertical position of cursor = 14 rotation = 0 mode = 0 (black) thickness of barcode = 2 ratio of barcode = 2 (2.
DATAPROCESS EUROPE S.p.A. h v horizontal expansion factor (values: from 1 to 9); vertical expansion factor (values: from 1 to 9). These selections are temporary and are lost when the printer is switched off. The following table shows the geometrical characteristics of the fonts from 0 to 6 which are compatible with those available on the ST230 printer (all values are in dots).
DATAPROCESS EUROPE S.p.A. N Courier Bold 8 pts 37 O Courier Bold 9 pts 43 P Courier Bold 12 pts 56 Q Courier Bold 16 pts 76 R Courier Bold 20 pts 92 S Courier Bold 24 pts 104 T Courier Bold 32 pts 150 Note: the expansion factors are assigned to the character independently of the orientation. There is a limit on the expansion determined by the paper width. The values from 1 to 8 are recognised correctly whereas 9 is treated as an 8. 17.
DATAPROCESS EUROPE S.p.A. With H0010 and the autocalibration the label will come set with the gap to 10 pass from the sensor. If the autocalibration is disabled H number represents the distance in pass between the gap and the sensor. The /H command must be followed by a 4 digit number, expressed in dots (values from 0000 to 9999). It defines the number of passes for the motor must still do after identifying the gap. 17.27 /Iv... /I0 /I1nv.. vmqqss /I2ssssnnc.. c /I3ssssthhhc..
DATAPROCESS EUROPE S.p.A. Control characters (e.g. CR or CR+LF) can be used as field separators to allow for shorter text sequences. In this way the printer will complete the string received up to the length of nn with blank characters. 17.27.4/I3ssssthhhc.. ce Is used to insert a “remote” barcode sent by an external computer every ssss labels printed (the other parameters t, h, c, e follow the same rules as the parameter /B).
DATAPROCESS EUROPE S.p.A. The printer waits for the variable fields from the computer and prints the label only when all the required characters (or bytes) have been received. The computer can also send the complete string of the necessary variable data for the printer for an entire batch of labels. Such data is buffered automatically by the printer and are recovered as necessary.
DATAPROCESS EUROPE S.p.A. /E00300060/F211/I5000105H:I:S /A223 /E00300080/I605HIDMY00010070000000000000Û /E00300170/I603HIS000110400000000Û /E00300250/I607*H.I.S*00013040*HH.MM.SS*Û /E00300310/I607o d O Y0001B040***************Û /E00300370/I607o d O Y0001b040***************Û /E02700080/I603HIS00014070000000Û /E02700170/I603HIS00015040000000Û /E03300250/I603HIS00019040000000Û /R1 /E05200080/I603HIS00024070000000Û /R0 /E00300444/I1300000101 /W0004 17.28 /Jhhss The /J command is used to set the shape ratio.
DATAPROCESS EUROPE S.p.A. The “d” parameter in the ST3xx series is used to activate the dispenser. If the dispenser is active, the next label will not be printed until the printed label has been removed. In the ST4xx series however, the "d" parameter is used to configure the applicator functions. Synchronism on the applicator – means that the printer, independently to the package presence sensor, will print the label which is to be applied. The applicator will collect the label and advance the plate.
DATAPROCESS EUROPE S.p.A. Note: the position of the cursor is updated to the opposite corner of the segment to make it easier for complex drawings in that the cursor does not have to be repositioned every time. 17.31 /Mwwwwhhhhttt The /M command is used to draw rectangular borders. The top left corner is in the position of the last command /E.
DATAPROCESS EUROPE S.p.A. s3= time interval between the end of printing and the moment at which the sensors start to be tested to detect any errors during the run of the piston plate. This time interval should be regulated to make sure that in the first part of its run, the plate does not signal an error when it passes close to the support frame of the applicator. s4= time interval between the complete re-entry of the plate (signalled by a sensor) and the printing of the next label.
DATAPROCESS EUROPE S.p.A. greater than the difference in signal (the noise) resulting from the optical discontinuity in the material – especially if there are pre-printed areas around the sensors. To have an indication of the transparency / reflective ness of the material, the correct sensor should be chosen and a test label printed with the command /U00. The material should first be correctly positioned under the sensor. 17.34 /Qbbbllllg..
DATAPROCESS EUROPE S.p.A. Colour 0 (black) is normally used where black objects must be printed on a white background. Colour 2 (inverted) is used when white articles must be printed on a black background : in this case the background must be created first (the /M command can be used to design a black box ). Colour 1 (white) is normally used in special cases to design white lines on a black background thereby avoiding problems which exist at the intersections if colour 2 is used. 17.
DATAPROCESS EUROPE S.p.A. than 8 characters it must be left justified with the remaining spaces blank. 17.38 /Vssffeppp The /V command is used to set the parameters which control the printing speed, the paper feed speed (speed on an unprinted area), and the energy directed to the printhead (printing intensity).
DATAPROCESS EUROPE S.p.A. 17.40 /Xiiippp The /X command is used to change the “interline” value and it is expressed in number of dots. The cursor will move down (in relation to the current orientation) with every LF command. The value of the “spacing” also expressed in number of dots, will move the cursor to the right (in respect to the selected orientation) every time a new character is designed in the bitmap.
DATAPROCESS EUROPE S.p.A. 18 Return Codes The printer can send information about its status to an external device. Such information can be sent automatically during the reception of data /status of the buffer), whilst it is processing data or printing (status of the printer) or on request (status of the sensors). The transmission of any communication can be inhibited with the command /$&%.
DATAPROCESS EUROPE S.p.A. 20 Status of the sensors Every time the control character ASCII ENQ (code 5) is processed, the printer will send a status communication which is made up by the capital letter "S" followed by 5 consecutive numerical characters and a sequence of CR/LF. This message informs the external device about the possibility of successfully starting a print session.
DATAPROCESS EUROPE S.p.A. The control character ACK (code 6) is sent every time a print command is processed (/Wnnnn, control character FF) indicating the start of a print session. An ACK or a NAK are sent whenever a block of data sent with /$>D is processed (irrespective of whether the checksum is correct or not). Every time a label is issued, the printer will send a value to indicate the start of the printing, the end and the result of the operation.
DATAPROCESS EUROPE S.p.A. the print of the label. Only new firmware relais. Printing the test label or copies with the FEED key does not generate any communication. 22 MACRO A “macro”, or a “macro command” consists of a sequence of commands and/or printable characters which follow the syntax described for the commands received from an external computer. The macro can be permanently stored in the FLASH memory and can be accessed through the /U command or the front panel.
DATAPROCESS EUROPE S.p.A. Parallel Centronics RS232 Applicator Interface Interface winder re- Input Photocell Relè exit Industrial Interface 23.1 Serial Ports ST3xx ST4xx ST5xx The printer is equipped with a female 9 pin type “D” connector which is located on the rear panel and through which it is possible to establish a bi-directional asynchronous communication with an external device (normally a PC or other compatible equipment).
DATAPROCESS EUROPE S.p.A. 23.2 Parallel Port – only for ST4xx ST5xx This is the female 25 pin type “D” located on the rear panel of the printer. The communication protocol is the standard Centronics and the port is currently only mono direction (communication with data only on input at the port).
DATAPROCESS EUROPE S.p.A. 1 2 3 4 5 6 7 8 9 READY - Common1 READY - Normally open1 READY – Normally closed2 READY - Common2 READY – Normally open2 SYNC – Normally closed SYNC - Common SYNC – Normally open READY – Normally closed1 The status normally open and normally closed refers to inactive signals. The READY signal is active when the printer is in “normal” working conditions i.e. it is ON-LINE or it is printing. It is inactive when the printer is OFF-LINE or simply switched off.
DATAPROCESS EUROPE S.p.A. The switch or the photocell are connected in this way if the signal is to synchronise with the presence of the package (K1501 N-1990000 in un AP403). If instead the synchronisation is to be with the removal of the label (K1100 N00010000 in ST403) it is sufficient to replace in the cable point 2 with 8 and 3 with 7. 23.4 Applicator interface – only for ST4xx ST5xx This port also has a “D” 9 pin female connector which is also on the rear of the printer.