Advertisement

Operating Instructions
Dot matrix printer
KERN YKN-01
Version 1.0
11/2013
GB
The KERN Printer YKN-01 corresponds
to the model SPRT 16S.
KERN & Sohn GmbH
Ziegelei 1
D-72336 Balingen
E-Mail: info@kern-
sohn.com
Tel: +49-[0]7433- 9933-0
Fax: +49-[0]7433-9933-149
Internet:
www.kern-
sohn.com
YKN-01-BA-e-1310

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the YKN-01 and is the answer not in the manual?

Questions and answers

Summary of Contents for KERN YKN-01

  • Page 1 KERN & Sohn GmbH Ziegelei 1 Tel: +49-[0]7433- 9933-0 D-72336 Balingen Fax: +49-[0]7433-9933-149 E-Mail: info@kern- Internet: www.kern- sohn.com sohn.com Operating Instructions Dot matrix printer KERN YKN-01 Version 1.0 11/2013 The KERN Printer YKN-01 corresponds to the model SPRT 16S. YKN-01-BA-e-1310...
  • Page 2: Table Of Contents

    SPRT Content Introduction·························································································· Chapter 1 Feature and Performance··················································· ····························································· 1.1 Model Definition Interface··········································································· ··································································· 1.3 Printer Codes ······························································ 1.4 Print Commands 1.5 Working Mode································································· ······························································ 1.6 Offline Working 1.7 Performance Index··························································· Chapter 2 System Installation···························································· ······························································ 2.1 Checking Model ······················································ 2.2 Checking Accessories 2.3 Ribbon Cassette Installation·············································...
  • Page 3: Introduction

    SPRT Introduction SP-T series printers are a series of desk-top micro printer which are with updated design. They are with these remarkable features of delicate dimension, perfect performance, elegant appearance, simple operation, convenient connection. The specification of SP-T printers is complete, you can choose different print speed, different print line width, different print font, different print buffer, and different interface of serial and parallel.
  • Page 4: Performance

    SPRT Chapter 1 Feature and Performance 1.1 Model definition SP-T printers have five kinds of print head model and two kinds of interface. They are defined as: SP -T Product Serial Number: A, B,……….. Interface Mode: P ( Parallel), S (Serial) Speed: H(High), L(Low) Character number of each line:16, 24, 40, 42...
  • Page 5: Print Commands

    SPRT can define 32 kinds of character, so as to satisfy your particular needs. SP-T printers also offer graphics print mode, characters and graphics can be printed together. 1.4 Print Commands SP-T printers offer 52 kinds of print command. Most of them are compatible with the command standard of IBM and EPSON printer.
  • Page 6: Installation

    SPRT 2. Serial interface: adopt RS-232C compatible standard. The baud rate in serial interface mode is selected in the range of 150, 300, 1200, 2400, 4800, 9600 and 19200bps and it is set by DIP switch on the control panel; asynchronous transmission mode. Handshaking mode is mark control or X-ON/X-OFF protocol.
  • Page 7: Checking Accessories

    SPRT Fig. 2-1 SP-T Printer Outline SP-T printers allow you to make proper alteration to the printer model, detailed method please see Chapter 7. 2.2 Checking Accessories There is already a paper roll and ribbon is installed in the printer at ex-factory, and a User’s Manual as well.
  • Page 8 SPRT Fig.2-4 Taking Down the Ribbon Cassette (3) Installing the new ribbon cassette: firstly put down gently the left end of ribbon cassette on the gear wheel which is on the left end of the print head, lift up the right end a little, don't put down, as Fig 2-5 shows. At this time if you find the left end of ribbon cassette has not been put down to the bottom, please hold down the knob of ribbon cassette with finger, rotate slightly according to the arrow direction, as Fig.2-6 shows,...
  • Page 9: Paper Roll Installation

    SPRT Fig.2-8 Closing the Movable Cover Panel 2.4 Paper Roll Installation For SP-T printers, paper roll can be put inside the case, installing paper as follows: (1) Push the removable cover plate forward till it off the printer like Fig.2-2, (2) Cut the paper end like Fig.2-10 below.
  • Page 10: Supply

    SPRT Fig.2-12 Face the Paper-in Slot (3) Turn on + 5V power supply. (4) Press the button<SEL> and the SEL indicator will be turned off. Press the button <LF> to run the print head, and then insert the paper into the paper-in slot, and the paper will be loaded into the print head and come out from the front for a certain seemly length.
  • Page 11: Chapter 3 Operation

    SPRT Fig.2-14 System Connection Chapter 3 Printer Operation 3.1 Parallel Interface Connection SP-T printers adopt D-25 parallel interface, which is compatible with CENTRONICS standard, and the interface socket matches well the print interface of IBM PC. So, if you connect the printer to IBM PC, LAPTOP portable computer etc.
  • Page 12: Serial Interface Connection

    SPRT Answering pulse, LOW level signal indicates that data have already been received and the printer gets ready to receive the next data. HIGH level signal indicates that BUSY the printer is BUSY and can not receive data. Grounding Pulling up to HIGH level signal by a resistor Pulling up to HIGH level signal by a resistor...
  • Page 13 SPRT Fig.3-4 Pin Order of Serial Interface The pin assignment of serial interface is shown in Fig. 3-5, logical signal level is EIA: Pin No. Signal Source Description Name Host Printer receives data from host Printer Printer transmits control code X-ON/X-OFF to host when using X-ON/X-OFF...
  • Page 14 SPRT Fig.3-6 DIP Switch Setting The data structure of serial interface is as Fig.3-7 shows: Start Bit Data Bit Parity Bit Stop Bit 1 bit 7 or 8 bits 1 bit 1 bit Fig.3-7 Data Structure of Serial Interface When selecting 7 data bits, only allowed adopting 1start bit, 7 data bits, 1 even bit and 1 stop bit.
  • Page 15: Buttons And Indicators

    SPRT Handshaking Data RS-232C Interface Signal Mode Direction Mark Control and 8 signal line are SPACE status and 8 signal line are MARK status X-ON/X-OFF Send X-ON code 11H on 3 signal line Control Send X-OFF code 13H on 3 signal line Fig.3-8 Two Kinds of Handshaking Mode...
  • Page 16: Self-Test

    SPRT is holding down SEL button when power on, that means pressing SEL button first, then putting through DC5V power supply, at this moment the printer prints out the self-test receipt, and SEL indicator goes dark; another kind of method is selecting self-test mode at any time after powered on, the detail is: if SEL indicator lights, hold down SEL button to make the indicator go dark, otherwise can omit this step: hold down LF button, then hold down SEL button at once, the printer will begin the self-test.
  • Page 17: Printer Initialization

    SPRT 3.5 Printer Initialization There are three kinds of modes for printer initialization. The first one is that the host sends command to the printer with control code ESC@, realizing initialization through software. The second one is that realizing initialization through self-test. The third one is that power on initialization. The contents of initialization include: select default of each control code, namely the dot number of line spacing is 3, no binding length, vertical and horizontal tab value are both 0, left and right margin width are both 0,...
  • Page 18: Paper Feed Commands

    SPRT Decimal: the Decimal number sequence Hexadecimal: the Hexadecimal number sequence Explanation: what the command does and how to use it. Example: some examples are listed to illustrate the command for better understanding. The following is the description of each command according to the function of each command.
  • Page 19: Format Setting Commands

    SPRT 40 NEXT I The print result of the said programs in SP-T16 is as following: Feed Page Format: ASCII: Decimal: Hexadecimal: 0C Explanation: Feed paper to the beginning of the next page. 4.3 Format Setting Commands ESC C Set Page Length Format: ASCII: Decimal: Hexadecimal: 1B...
  • Page 20 SPRT ESC O Cancel Binding Length Format: ASCII: Decimal: Hexadecimal: 1B Explanation: The binding length is set to 0 line, it means the printer will print line-by-line, won’t vacate blank lines between each page. ESC B Set Vertical Tab Value Format: ASCII: n1 n2 n3…NUL Decimal:...
  • Page 21 SPRT Carry out Vertical Tab Value Format: ASCII: Decimal: Hexadecimal: Explanation: Feed paper to the next vertical tab position which is set by ESC B command. Notice: if there is no vertical tab value setting, or the current position equals or is beyond the last vertical tab position, VT command is to feed paper one line only (same to LF command).
  • Page 22: Commands

    SPRT “HT2”; ’Print character string 60 LPRINT ’ HT command 70 LPRINT CHR$ (9); “HT3”; ’Print character string 80 LPRINT The print result in SP-T16 is as following: Carry out Horizontal Tab Value Format: ASCII: Decimal: Hexadecimal: Explanation: The print position is advanced to the next horizontal tab position which is set by ESC D command.
  • Page 23 SPRT Hexadecimal: 1B Explanation: The value of n should be in the range from 0 to the line width of this model printer. (Refer to 1.7) Default n=0, that means no right margin. This command sets absolute position, and won’t be influenced by character enlarging commands ESC U and ESC W.
  • Page 24 SPRT CHR$ (27); “1”; CHR$ (6); ’ESC 1 command 20 LPRINT “123456789012345678901234567890” 30 LPRINT The print result in SP-T16 is as following: 4.4 Character Setting Commands ESC U Enlarge Width Format: ASCII: Decimal: Hexadecimal: 1B Explanation: The characters and graphics following this command are printed at n times of normal width, n=1~4, default n=1, that means normal width, no width enlarging.
  • Page 25 SPRT 30 LPRINT “SP”; ’Print character string 40 NEXT I The print result in SP-T16 is as following: Notice: this command is valid only after sending ESC W SOH (n=1) command. ESC W Enlarge Width and Height Format: ASCII: Decimal: Hexadecimal: Explanation: The characters and graphics following this command are printed at n times...
  • Page 26 SPRT command. The BASIC programs for observing the effect of this command are as below: 10 LPRINT CHR$ (27); “W”; CHR$ (2); ’ Enlarge the width and height twice 20 LPRINT “SP”; 30 LPRINT CHR$ (27); “-”; CHR$ (1); ’ Select underline print 40 LPRINT “UP”;...
  • Page 27 SPRT All characters following this command are printed using the character set I. There are two character sets are available in SP-T, character set I is selected at power on or on ESC @ command. ESC 7 Select Character Set II Format: ASCII: Decimal: Hexadecimal: 1B...
  • Page 28: User-Defined Character Setting Commands

    SPRT 10 LPRINT CHR$ (27); “i”; CHR$ (1); ’ Select reverse white print 20 LPRINT “sprintwd” The print result in SP-T16 is as following: ESC c Select/cancel Reverse Print Format: ASCII: Decimal: Hexadecimal: Explanation: When n=1, select reverse print; when n=0, cancel reverse print. Usually reverse print is adopted when SP-T printers are installed vertically, so as to observe the print result.
  • Page 29: Hexadecimal: 1B 25

    SPRT If many ESC& commands use same m value, only the last one is valid. User can define at most 32 characters. Please refer to ESC % and ESC : commands. ESC % Replace with User-defined Characters Format: ASCII: ESC % m1 n1 m2 n2…mk nk NUL Decimal: m1 n1 m2 n2…mk nk 0...
  • Page 30: Graphics Print Commands

    SPRT 4.6 Graphics Print Commands ESC K Print bit-map graphics Format: ASCII: ESC K n1 n2….data….. Decimal: n1 n2….data….. Hexadecimal: 1B n1 n2….data….. Explanation: This command is used to print n1×8 bit map. The width of this graphics is n1 dots and the height is 8 dots. Each column has 8 dots and can be presented by a 8-bit byte, the MSB is on the top.
  • Page 31 SPRT LPRINT CHR$ (&H7C); CHR$ (&H44); CHR$ (&H44); CHR$ (&HFF); LPRINT CHR$ (&H44); CHR$ (&H44); CHR$ (&H7C); CHR$ (&H0); LPRINT CHR$ (&H41); CHR$ (&H62); CHR$ (&H54); CHR$ (&HC8); LPRINT CHR$ (&H54); CHR$ (&H62); CHR$ (&H41); CHR$ (&H13); The print result in SP-T16 is as following: ESC ’...
  • Page 32: Initialization Command

    SPRT 50 LPRINT CHR$ (50+YY); CHR$ (50-YY); CHR$ (50); 60 LPRINT CHR$ (50+Y); CHR$ (50-Y ); CHR$ (13); 70 NEXT X The print result for these programs in SP-T16 is as following: 4.7 Initialization Commands ESC @ Initialize Printer Format: ASCII: Decimal: Hexadecimal: Explanation:...
  • Page 33: Hexadecimal Print Commands

    SPRT command code, and return to the last carriage return code. It doesn’t cancel any control code sequences in the current line. Delete One Character Format: ASCII: Decimal: Hexadecimal: Explanation: This command is to delete one character in the print buffer, it doesn’t delete the control code unless this character has been printed.
  • Page 34 SPRT code which is corresponding GB code to denote the Chinese characters. The following is the description for these commands. Command descriptions ESC 9 Select Special Chinese Character Library Format: ASCII: Decimal: Hexadecimal: Explanation: This command is to select the Chinese characters or characters in the special Chinese character library.
  • Page 35 SPRT Explanation: Characters following this command are printed at twice their normal width, does not enlarge the height. FS DC4 Cancel Chinese Double Width Print Format: ASCII: Decimal: Hexadecimal: Explanation: This command is to cancel FS SO command. FS W Set the Enlarging Multiple of Chinese Character Format: ASCII:...
  • Page 36 SPRT following: Chinese characters rotated widdershins FS - Chinese Character with Underline Print Format: ASCII: Decimal: Hexadecimal: 1C Explanation: The specified Chinese characters after this command are printed with underline. When n=1, underline selected; when n=0, it canceled. FS r Select Superscript and Subscript Print Format: ASCII:...
  • Page 37 SPRT Decimal: Hexadecimal: 1C Explanation: This command cancels FS SI, restore to print Chinese characters with 16×16 dots. FS i Select Chinese Character Bit Map Format: ASCII: Decimal: Hexadecimal: 1C Explanation: This command is to select Chinese characters with different bit map, as the following tab shows: Chinese Character Bit Map 16×16...
  • Page 38: Chapter 5 Print Examples

    SPRT G command, and restore to normal single-line Chinese character pint mode. Chapter 5 Print Examples This chapter puts out several examples, explain how to control the SP-T series printer to print. Example 1: Control parallel interface printer with 51 serial one-chip computers: ;...
  • Page 39 SPRT DPTR, # DATE2 MOVC A, @A+DPTR MOVX @R1, A LACK3: JB EX0, $ SJMP ; Output one-byte subprograms PRINT: PUSH PUSH DPTR, # 2000H PRL: SETB P3.3; BUSY signal P3.3, PRL MOVX @DPTR, A ’ SPRINTER’ DATE1: DB ’ TEST BUSY OK!’ 1CH, 26H;...
  • Page 40 SPRT SETB ; Output a series of data circularly, the first address is DATE R7, #0 DPTR, #DATE LOOP: A, R7 MOVC A, @A+DPTR ; Get data CJNE A, #00H, L00P1; Is ending mark 00H? SJMP LOOP1: CALL SCZJ SJMP LOOP SCZJ: CTS, $...
  • Page 41: Chapter 6 Printer Using Under Windows

    SPRT × NEXT CHR$(27) ;CHR$ (49); CHR$(1) ; ’Set line spacing LPRINT CHR$ (27); “W”; CHR$ (2); ’ Set enlarging multiple LPRINT CHR$ (28); “&”; LPRINT LPRINT CHR$ (&HA1); CHR$ (&HF9); CHR$ (&HA1); CHR$ (&HF9); LPRINT CHR$ (&HA1); CHR$ (&HF9); CHR$ (&HA1); CHR$ (&HF9);...
  • Page 42: Print Head Protection

    SPRT print width and print font, furthermore, model alteration also offers you possibility to utilize SP-T printers for developing the update of other products. However you must be very cautious to alter the printer model, if you have not used SP-T for a period of time or you are not familiar with SP-T very much, suggest you asking the seller or the producer of the printer for help, otherwise may damage the print head.
  • Page 43: Appendix

    SPRT to the producer for repairing. 2. Don’t lubricate the ribbon cassette, otherwise damage the print head. 3. When you suppress to join the electric wire by yourself, should pay attention to whether your printer port is parallel interface or serial interface, don't connect to the host computer incorrectly.
  • Page 44 SPRT Character Set II 43...
  • Page 45 SPRT Appendix 2 GB ASCII Codes Tab Appendix 3 Parallel Interface and Operation Connect function: exchange data between the host’s parallel interface of the instrument, equipment and the printer’s parallel interface. The pin assignment of parallel interface is shown in the following: Pin No.
  • Page 46 SPRT DATA1 These signals represent the 1 DATA2 bit to 8 bit of the parallel data DATA3 representatively, each signal is DATA4 at HIGH level when data is logic DATA5 1, and LOW when data is logic DATA6 DATA7 DATA8 Answering pulse, LOW level signal indicates that data have already been received and the...
  • Page 47 SPRT Printer Printer transmits control code X-ON/X-OFF to host when using X-ON/X-OFF handshaking protocol Signal “MARK” indicates that Printer the printer is “BUSY” and unable receive data; “SPACE” indicates that the “READY” printer receiving data. Signal “SPACE” indicates that Printer the printer is “ONLINE”...
  • Page 48 SPRT 3. According to Fig. 6-3, grasp the printer shell with one hand, press downwards the paper roll holder with another hand until a sound comes from the printer, that means the holder has been installed, then close the movable cover panel. Fig.
  • Page 49 SPRT Index of Print Commands Decimal Hexadecimal Command Name Function Ending symbol Carry horizontal tab Feed line Carry out vertical Feed page Carriage return Set double width character print Cancel command Cancel characters current line Delete last character 27 34 1B 22 ESC”...
  • Page 50 SPRT 27 37 1B 25 ESC%m1 n1···mk nk Replacing code nk is defining code mk 27 38 1B 26 ESC & m n1 n2···n6 User-defined characters ESC’ m n1 n2 –nk 27 39 1B 27 Print curving dots 27 43 1B 2B ESC+n Select/cancel...
  • Page 51 SPRT 27 85 1B 55 ESC U n Enlarge width times 27 86 1B 56 ESC V n Enlarge height n times 27 87 1B 57 ESC W n Enlarge width and height n times 27 99 1B 63 ESC c n Select/cancel reverse print 27 102...
  • Page 52 SPRT 28 18 1C 12 FS DC2 Cancel vertical DBC case Chinese character print 28 105 1C 69 FS i n Select Chinese character bit-map 28 71 1C 47 FS G Select Chinese character misplace print 28 72 1C 48 FS H Cancel Chinese...

Table of Contents