PORTI-S (PORTABLE PRINTER) Operator's Manual WOOSIM SYSTEM Inc. Room 404, GeonGuk BLDG, 288-1, Doksan-1Dong GeumChun-Ku, Seoul, Korea Tel : +82-2-852-8575, Fax : +82-2-852-8577 URL : www.poky.co.
Warning - U.S. (FCC Statement) This equipment has been tested and found to comply with the limit for a Class B digital device digital device pursuant to Part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference in a residential Installation. This equipment generates, uses, and can radiate radio frequency energy and, if not installed and used in accordance with the instructions. If this equipment does cause harmful interference to radio communications.
Table of Contents CHAPTER 1. SETTING UP THE PRINTER 1.1. UNPACKING 1.2. CONNECTING THE CABLE 1.3. INSTALLING OR REPLACING THE PAPER ROLL 1.4. ADJUSTMENTS AND SETTING 1.5. USING THE PRINTER CHAPTER 2. THE SELF TEST CHAPTER 3. CODE TABLE CHAPTER 4. CONTROL COMMANDS CHAPTER 5.
Chapter 1. Setting up the printer 1.1 Unpacking Your printer box should include these items. If any items are damaged or missing, please contact your dealer for assistance.
1.2. Connecting the cable You can connect up to two cables to the printer. It connects to the connector part on the left and front side of the printer, which is shown below. Power connector Commucation connector for RS232C Refer to the APPENDIX B for more information about communication connector. Note : Before connecting the cable, make sure that both the host and the power button to apply to the printer are turned off.
1.3. Installing or replacing the paper roll Note : Be sure to use paper rolls that meet the specifications. Do not use paper rolls that have the paper glued to the core because the printer cannot detect the paper end correctly. 1. Make sure that the printer is not receiving data; otherwise, data may be lost. 2. Open the paper roll cover by applying your finger on both side of printer, push it up when the lock is released as shown in the drawing. 3. Remove the used paper roll core if there is one. 4.
5. Be sure to note the correct direction that the paper comes off the roll. 6, Pull out a small amount of paper and then close the cover, as shown. 7. Tear off the paper as shown.
1.4. Adjustments and setting The PORTI-S is set up at the factory to be appropriate for almost all users. But if you want another specification to fit the printer at your system such as change the baud rate, handshaking, parity check, as well as print density, please contact to our development team or your dealer. 1.5. Using the printer 1. Control Panel MODE FEED POWER POWER LED MODE LED ERROR LED 2. Button 1) MODE Mode button is for use to change communication mode.
2) FEED Press the FEED button once to advance paper one line. You can also hold down the FEED button to feed paper continuously. 3. Panel lights 1) POWER LED The POWER light is on whenever the printer is on. But when the battery is almost exhausted, this led flashes with red color occasionally. In this case, you must recharge the battery by using the power supply. 2) MODE LED Normally this led is off. But if you select the protocol IrDA mode using the mode key, it flashes once.
Chapter 2. The self test The self-test checks whether the printer has any problems. If the printer does not function properly, contact your dealer. The self-test checks the following; 1. Make sure paper roll has been installed properly. 2. Turn on the power while holding down the FEED button. The self-test begins. 3. The self-test prints the current printer status, which provides the control ROM version and the communication method setting. 4.
Chapter 3. Code table The following pages show the character code tables. To find the character corresponding to a hexadecimal number, count across the top of the table for the left digit and count down the left column of the table for the right digit.
HEX 8 9 A B C D E F HEX BIN 1000 1001 1010 1011 1100 1101 1110 1111 0 0000 1 0001 2 0010 3 0011 4 0100 5 0101 6 0110 7 0111 8 1000 9 1001 A 1010 B 1011 C 1100 D 1101 E 1110 F 1111 Page 0 (PC437 ; USA, Standard Europe) (0x80 - 0xFF) SP
Chapter 4. Control commands Command Notation [Name] The name of the command [Format] The code sequence ASCII indicates the ASCII equivalents HEX indicates the hexadecimal equivalents. Decimal indicates the decimal equivalents. [ ]k indicates the contents of the [ ] should be repeated k times. [Range] Gives the allowable ranges for the arguments. [Description] Describes the function of the command.
LF [Name] Print and line feed [Format] ASCII LF HEX 0A Decimal 10 [Description] Prints the data in the print buffer and feeds one line based on the current line spacing. [Notes] This command sets the print position to the beginning of the line. [Reference] ESC 2, ESC 3 FF [Name] Print and return to standard mode in page mode. [Format] ASCII FF HEX 0C Decimal 12 [Description] Prints the data in the print buffer collectively and returns to standard mode.
ESC FF [Name] Print data in page mode [Format] ASCII ESC FF HEX 1B 0C Decimal 27 12 [Description] In page mode, prints all buffered data in the printing area collectively. [Notes] This command is enabled only in page mode. After printing, the printer does not clear the buffered data, setting values for ESC T and ESC W, and the position for buffering character data. [Reference] FF, ESC L, ESC S ESC SP n [Name] Set right side character spacing.
[Default] n = 0 [Reference] GS P ESC ! n [Name] Select print mode [Format] ASCII ESC ! HEX 1B 21 Decimal 27 33 n n n [Range] 0 <= n <= 255 [Description] Selects print mode(s) using n as follows.
4) When some characters in a line are double or more height, all the characters on the line are aligned at the baseline. 5) ESC E can also turn on or off emphasized mode. However, the setting of the last received command is effective. 6) ESC - can also turn on or off underline mode. However, the setting of the last received command is effective. 7) GS ! can also select character size. However, the setting of the last received command is effective..
[Reference] ESC \, GS $, GS \, GS P ESC % n [Name] Select/Cancel user defined character set. [Format] ASCII ESC % n HEX 1B 25 n Decimal 27 37 n [Range] 0 <= n <= 255 [Description] Selects or cancels the user defined character set. [Notes] 1) When the LSB of n is 0, the user defined character set is canceled. 2) When the LSB of n is 1, the user defined character set is selected. 3) When the user defined character set is canceled, the internal character set is automatically selected.
5) It is possible to define multiple characters for consecutive character codes. If only one character is desired, use c1 = c2. 6) d is the dot data for the characters. The dot pattern is in the horizontal direction from the left side. Any remaining dots on the right side are blank. 7) The data to define a user defined character is (y x x) bytes. 8) Set a corresponding bit to 1 to print a dot or to 0 not to print a dot. 9) This command can define different user-defined character patterns by each fonts.
d1=<0F>H d2=<03>H d3=<00>H d4=<30>H d5=<80>H => d6=<00H> d7=<40H> d8=<40H> d9=<20>H . . . ESC * m nL nH d1...dk [Name] Select bit-image mode. [Format] ASCII ESC HEX 1B 2A m nL nH d1...dk Decimal 27 42 m nL nH d1...dk [Range] & m nL nH d1...
3) The number of dots is calculated by nL + nH x 256. 4) If the bit-image data input exceeds the number of dots to be printed on a line, the excess data is ignored. 5) d indicates the bit-image data. Set a corresponding bit to 1 to print a dot or to 0 to not print a dot.
- When 24-dot bit image is selected: Bit-image data d1 d2 d3 d4 d5 d6 d7 d8 d9 d1 d4 d7 d2 d5 d8 MSB Bit-image data Print data 1dot LSB d3 d6 d9 Print data Single density Double density ESC - n [Name] Turn underline mode on/off [Format] ASCII ESC - n HEX 1B 2D n Decimal 27 45 n [Range] 0 <= n <= 2, 48 <= n <= 50 [Description] Turns underline mode on or off, based on the following values of n; n Function 0, 48 Turns off underline mode.
[Notes] 1) The printer can underline all characters (including right-side character spacing), but cannot underline the space set by HT. 2) The printer cannot underline white/black inverted characters. 3) When underline mode id turned off by setting the value of n to 0 or 48, the following data is not underlined, and the underline thickness set before the mode is turned off does not change. The default underline thickness is 1 dot.
2) The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical motion unit does not affect the current line spacing. 3) The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum vertical movement amount, and it must be in even units of the minimum vertical movement amount. 4) In standard mode, the vertical motion unit (y) is used.
in the font selected by ESC !. 3) If a user defined character has not been defined for the specified character code, the printer ignores this command. [Reference] ESC &, ESC % ESC @ [Name] Initialize printer. [Format] ASCII ESC @ HEX 1B 40 Decimal 27 64 [Description] Clears the data in the print buffer and resets the printer mode to the mode that was in effect when the power was turned on. [Notes] 1) The data in the receive buffer is not cleared. 2) The macro definition is not cleared.
sending HT. 6) Up to 32 tab positions (k=32) can be set. Data exceeding 32 tab positions is processed as normal data. 7) Transmit [n]k in ascending order and place a NUL code 0 at the end. 8) When [n]k is less than or equal to the preceding value [n]k-1, tab setting is finished and the following data is processed as normal data. 9) ESC D NUL cancels all horizontal tab positions. 10) The previously specified horizontal tab positions do not change, even if the character width changes.
ESC J n [Name] Print and feed paper. [Format] ASCII ESC J n HEX 1B 4A n Decimal 27 74 n [Range] 0 <= n <= 255 [Description] Prints the data in the print buffer and feeds the paper [n x vertical or horizontal motion unit] inches. [Notes] 1) After printing is completed, this command sets the print starting position to the beginning of the line. 2) The paper feed amount set by this command does not affect the values set by ESC 2 or ESC 3.
ESC L [Name] Select page mode [Format] ASCII ESC L HEX 1B 4C Decimal 27 76 [Description] Switches from standard mode to page mode. [Notes] 1) This command is enabled only when processed at the beginning of a line in standard mode. 2) This command has no effect in page mode. 3) After printing by FF is completed or by using ESC S, the printer returns to standard mode.
[Description] Selects an international character set n from the following table. n Character set n Character set 0 U.S.A. 6 Sweden 1 France 7 Italy 2 Germany 8 Spain 3 U.K. 9 Norway 4 Denmark I 10 Denmark II [Default] n = 0 ESC S [Name] Select standard mode [Format] ASCII ESC S HEX 1B 53 Decimal 27 83 [Description] Switches from page mode to standard mode. [Notes] 1) This command is effective only in page mode. 2) Data buffered in page mode are cleared.
[Reference] FF, ESC FF, ESC L ESC T n [Name] Select print direction in page mode [Format] ASCII ESC T n HEX 1B 54 n Decimal 27 84 n [Range] 0 <= n <= 3 or 48 <= n <= 51 [Description] Selects the print direction and starting position in page mode.
Commands using horizontal motion units:ESC 3, ESC J, GS $,GS \ Commands using vertical motion units : ESC SP, ESC $, ESC \ [Default] n = 0 [Reference] ESC $, ESC L, ESC W, ESC \, GS $, GS P, GS \ ESC W xL xH yL yH dxL dxH dyL dyH [Name] Set printing area in page mode [Format] ASCII ESC W xL xH yL yH dxL dxH dyL dyH HEX 1B 57 xL xH yL yH dxL dxH dyL dyH Decimal 27 87 xL xH yL yH dxL dxH dyL dyH [Range] 0 <= xL,xH,yL,yH,dxL,dxH,dyL,dyH <= 255 (except dxL=dxH=0 or dyL=dyH=0) [Description]
(vertical printable area-vertical starting position). 7) The horizontal and vertical motion unit are specified by GS P. Changing the horizontal or vertical motion unit does not affect the current printing area. 8) The GS P command can change the horizontal (and vertical) motion unit. However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of minimum horizontal movement amount.
[(nL+nHx256) x horizontal or vertical motion unit] 2) Any setting that exceeds the printable are is ignored 3) When pitch N is specified to the right; nL + nH x 256 = N When pitch N is specified to the left (the negative direction), use the complement of 65536. 4) The print starting position moves from the current position to [N x horizontal or vertical motion unit)] 5) The horizontal and vertical motion unit are specified by GS P. 6) The GS P command can change the horizontal (and vertical) motion unit.
[Notes] 1) The command is enabled only when processed at the beginning of the line in standard mode. 2) If this command is input in page mode, the printer performs only internal flag operations. 3) This command has no effect in page mode. 4) This command executes justification in the printing area. 5) This command justifies the space area according to HT, ESC $ or ESC \ [Default] n = 0 [Example] Left justification Center justification ABC Right justification ABC ABCD ABC ABCD ABCDE ABCDE ABCD
ESC d n [Name] Print and feed n lines [Format] ASCII ESC d n HEX 1B 64 n Decimal 27 100 n [Range] 0 <= n <= 255 [Description] Prints the data in the print buffer and feeds n lines. [Notes] 1) This command sets the print starting position to the beginning of the line. 2) This command does not affect the line spacing set by ESC 2 or ESC 3.
2) This command is enabled only when processed at the beginning of a line in standard mode. 3) When this command is input in page mode, the printer performs only internal flag operations. 4) This command does not affect printing in page mode. 5) In upside-down printing mode, the printer rotates the line to be printed by 180 degree and then prints it.
[Notes] 1) This command is all characters effective 2) If n is outside of the defined range, this command is ignored. 3) In standard mode, the vertical direction is the paper feed direction, and the horizontal direction is perpendicular to the paper feed direction. 4) In page mode, vertical and horizontal directions are based on the character orientation. 5) When characters are enlarged with different sizes on one line, all the characters on the line are aligned at the baseline.
8) The GS P command can change the horizontal and vertical motion unit. However, the value cannot be less than the minimum horizontal movement amount, and it must be in even units of the minimum horizontal movement amount. [Reference] ESC $, ESC T, ESC W, ESC \, GS P, GS \ GS : [Name] Start/End macro definition [Format] ASCII GS : HEX 1D 3A Decimal 29 58 [Description] Starts ends macro definition. [Notes] 1) Macro definition starts when this command is received during normal operation.
[Notes] 1) When the LSB is 0, white/black reverse printing mode is turned on. 2) When the LSB is 1, white/black reverse printing mode is turned off. 3) Only the lowest bit of n is valid. 4) This command is available for built in characters and user defined characters. 5) When white/black reverse printing mode is on, it also applied to character spacing set by ESC SP. 6) This command does not affect the space between lines. 7) White/black reverse mode has a higher priority than underline mode.
the current left margin. 7) The horizontal motion unit (x) is used for calculating the left margin. The calculated result is truncated to the minimum value of the mechanical pitch. [Default] nL = 0, nH = 0 [Reference] GS P, GS W GS P x y [Name] Set horizontal and vertical motion units. [Format] ASCII GS P HEX 1D 50 x y Decimal 29 80 x y x y [Range] 0 <= x <= 255, 0 <= y <= 255 [Description] Sets the horizontal and vertical motion units to approximately 25.
truncated to the minimum value of the mechanical pitch. [Default] x = 180, y = 360 [Reference] ESC SP, ESC $, ESC 3, ESC J, ESC W, ESC \, GS $, GS L, GS W, GS \ GS W nL nH [Name] Set printing area width. [Format] ASCII GS W nL nH HEX 1D 57 nL nH Decimal 29 87 nL nH [Range] 0 <= nL <= 255, 0 <= nH <= 255 [Description] Sets the printing area width to the area specified by nL and nH. [Notes] 1) The printing area width is set to [(nL+nHx256)] x horizontal motion unit inches.
Left margin Extended to right Printing area width set nL and nH If the printing area width cannot be extended sufficiently, the left margin is reduced to accommodate one character. Printable area Left margin Reduced left margin Extended to right If the printing area width cannot be extended sufficiently, the right space is reduced.
position in page mode. [Notes] 1) This command sets the distance from the current position to [(nL + nHx256)] x vertical or horizontal motion unit inches. 2) This command is ignored unless page mode is selected. 3) When pitch N is specified to the movement downward; nL + nHx256 = N When pitch N is specified to the movement upward (the negative direction), use the complement of 65536.
When LSB of m = 0 The macro executes r times continuously at the interval specified by t. When LSB of m = 1 After waiting for the period specified by t, the ERROR LED indicators blink and the printer waits for the FEED button to be pressed. After the button is pressed, the printer executes the macro once. The printer repeats the operation r times. 4) The waiting time is t x 100 ms for every macro execution.
[Range] HEX 1D 6B Decimal 29 107 0 <= m <= 6 m m n n d1...dn d1...dn (k and d depends on the bar code system used.) 65 <= m <= 73 (n and d depends on the bar code system used.) [Description] Selects a bar code system and prints the bar code. m selects a bar code system as follows.
prints the bar code after receiving 13 bytes bar code data and processes the following data as normal data. 4) When the bar code system used in JAN8(EAN8), the pritner prints the bar code after receiving 8 bytes bar code data and processes following data as normal data. 5) The number of data for ITF bar code must be even numbers. When an odd number of data is input, the printer ignores the last received data.
[Reference] GS k ESC Z m n k d d1...dn [Name] Print 2D bar code [Format] ASCII ESC Z m n k d d1...dn HEX 1B 5A m n k d d1...dn Decimal 27 90 [Range] m n k d d1...dn 1 <= m <= 7 0 <= n <= 8 2 <= k <= 5 1 <= d <= 65535 [Description] Print 2D bar code (PDF417 format). m specifies column number of 2D bar code. n specifies security level to restore when bar code image is damaged k is used for define horizontal and vertical ratio. d is consist of 2 byte. 1st byte is lower number.
Chapter 5. Introduction of protocol IrDA 5.1 Frame structure SOF TOF DATA CHECKSUM EOF SOF : Start of frame (SOF code must be 0xC0) TOF : Type of frame (See the table shown below) EOF : End of frame (EOF code must be 0xC1) CHECKSUM : Checksum is necessary in case of the TOF code is 0x44. DATA : Data is in need of the TOF code is 0x44, 0x05, 0x53.
5.2 Process of printer status inquiry HOST PRINTER Printer status require frame transmit Printer status response frame transmit 1. If there is no response from printer, after fifth times recheck with every 400ms, then display the error message such as "The printer cannot fined" on your display panel same like CRT, PDA, etc. 2.
- Previous DATA ID : Finally used DATA ID 5.3 Process of transmitting and receiving print data HOST PRINTER ENQ frame transmit ACK frame transmit Print data frame transmit If there is no error during data transmit, EOT frame transmit If there is any error during data transmit, NACK frame transmit Print data frame transmit again 1. It is error condition shown below. - Wrong checksum received - No data received within 200ms after data receive.
5.4 Structure of print data frame SOF 0x44 DATA ID DATA Print Length DATA CHECKSUM EOF 1. DATA ID : It is made up 1 digit number. The range is 0 - 9. The number must be character code. 2. DATA Length : It consists of 4 digit numbers. The range is 0001 - 9999. The number must be character code. Example - If you want to send 4 numbers data to printer, you must send 0x30 0x30 0x30 0x34 codes as data length. 3. CHECKSUM : It is composed of 2 bytes.
5.5 Structure of ENQ frame SOF 0x05 DATA ID EOF 1. If there is no response ACK frame after transmitting ENQ frame from host, transmit again ENQ frame after waiting 400ms. 2. In case of no response over 10 times from printer about ENQ frame, display PRINTER CANNOT FINDED message on the your display panel, and wait operator's measures.
APPENDIX A.MISCELLANEOUS NOTES 1. Printer mechanism handing 1) Do not pull the paper out when the cover is closed. 2) Because the thermal elements of the print head and driver ICs are easy to break, so do not touch them with any metal objects. 3) Since the areas around the print head become very hot during and just after printing, do not touch them. 4) Do not use the cover open button except when necessary.
a nail, the paper may become discolored. Notes on thermal paper storage Since color development begins at 70C (158F), thermal paper should be protected from high temperature, humidity, and light, both before and after printing. 1) Store paper away from high temperature and humidity. Do not store thermal paper near a heater or in enclosed places exposed to direct sunlight. 2) Avoid direct light Extended exposure to direct light may cause discoloration or faded printing. 3.
B.
C. Specification Printing method Direct thermal line printing Dot density 203 DPI Printing width 48 mm Paper width 57 - 58 mm Characters per line 40 Printing speed 50mm / sec Receive buffer size 10K bytes Printing speed may be slower, depending on Note the data transmission speed and the combination of control commands. 7.2 DCV / 1.