0% found this document useful (0 votes)
904 views64 pages

PPLB

This document provides information about commands and functions for the PPLB printer language. It includes: 1) An overview of the PPLB coordinate system and basic command syntax. Commands consist of 1-2 alpha characters and optional parameters terminated with a line feed. 2) Descriptions of internal fonts, soft fonts, and cartridge fonts that can be used, along with their ID numbers and properties. 3) An explanation of four categories of commands: setting commands, label formatting commands, interaction commands, and object downloading commands. 4) Details of specific commands like Print Text (A), Print Barcode (B), selecting symbol sets with I, and a quick reference for additional commands.

Uploaded by

lsouzaesilva
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
904 views64 pages

PPLB

This document provides information about commands and functions for the PPLB printer language. It includes: 1) An overview of the PPLB coordinate system and basic command syntax. Commands consist of 1-2 alpha characters and optional parameters terminated with a line feed. 2) Descriptions of internal fonts, soft fonts, and cartridge fonts that can be used, along with their ID numbers and properties. 3) An explanation of four categories of commands: setting commands, label formatting commands, interaction commands, and object downloading commands. 4) Details of specific commands like Print Text (A), Print Barcode (B), selecting symbol sets with I, and a quick reference for additional commands.

Uploaded by

lsouzaesilva
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 64

December 30, 2009

B1. COORDINATE SYSTEM

B2. COMMAND SYNTAX

The PPLB coordinates system is depicted in Figure B1-1.

All the commands of PPLB consist of one or two alpha characters to identify the specific function and some of them may require one or more additional parameters to supply the printer with sufficient information to complete the command. Each command line must be terminated with a LF (0AH) control code and no space is allowed within it, except in the section of the data string.

TPH Line

+y

Basic Command Syntax


Label Feed (0,0) Direction (exit) Leading characters A<LF> Fig. B1-1 Default Coordinate system The origin point (0,0) of the coordinates system is at the bottom right corner under default condition (ZT). The origin point remains unchanged, while the texts, bar codes or other objects are being rotated. Negative coordinate value is not accepted. The ranges of X and Y coordinates are: Minimum Maximum X coordinate Y coordinate 0 0 It depends on printer models. It depends on printer models. A[p1,p2,p3,,pn]<LF> The measurements of the X- and Y-axis of the coordinates system are by pixels or scanned lines. 1 2 Syntax III: commands with optional parameters Leading characters Ap1,p2,p3,,pn<LF> Description Command with single leading alpha character AB<LF> Description Command with single alpha character Command with two alpha characters Syntax I: commands with no parameters

+x

Syntax II: commands with fixed number of parameters

ABp1,p2,p3,,pn<LF> Command with two leading alpha characters

December 30, 2009

String
This printer language uses data string under the following conditions.

B3. FONTS

This printer language defines three types of fonts according to their stored media. Name Data Prompt for graphics, soft fonts and forms for fonts and barcodes An ASCII text that can be transmitted to the KDU (Keyboard Device Unit) or LCD display for X series. The data string is led and ended by the character (). The back slash character (\) designates that the character following is a literal and will encode into the data field. Refer to the following examples: To print \ Notes: 1. The printer ignores <CR> and ctrl-Z (1AH) control codes. Many non -document editors on PC based system send CR and LF when the enter key is pressed. The carriage return (CR) code cannot be used in place of LF. 2. All commands and alpha character command, parameters are case sensitive. Enter into Data Field \ \\ ID number 1 2 3 4 5 Font Size 20 pitches, 6 points. 17 pitches, 7 points. 14.5 pitches, 10 points. 13 pitches, 12 points. 5.6 pitches, 24 points. Upper case characters only Remark Five internal fonts are resident in the printers ROM and each of them has a unique ID number. Different from the soft fonts, these fonts cannot be deleted. Internal Fonts Soft Fonts Cartridge Fonts

Internal Fonts

Soft Fonts
The soft fonts can be downloaded from the host by means of some utility or application software. Once the internal fonts cannot fulfill your requirements, soft fonts may be good solutions.

December 30, 2009 The advantages of using soft fonts: 8-bit Character Save memory space (Graphics occupies more memory.) Have better performance (They can be called repeatedly.) Enable the auto increment and decrement function Same as internal fonts, they can be scaled, rotated or reversed. They can be saved into either RAM or flash memory (permanent memory). They can be deleted, if no use or the memory space is full. You can download the numbers of characters as many as you need. Each soft font also has a unique ID number. By the ID number, the soft font can be downloaded, selected or deleted. The soft font ID number may range from a to z. Symbol sets Code page: 437, 737, 850, 851, 852, 855, 857, 860, 861, 862, 863, 865, 866, 869, 1250, 1251, 1252, 1253, 1254, 1255, 7-bit Character USASCII, British, Danish, French, German, Italian, Spanish, Swedish and Swiss

Cartridge Fonts
The font board or font cartridge is an optional item. The ID numbers reserved for extension cartridge fonts are 7 ~ 12. 7 and 8 are for Chinese fonts. 9 and 10 are for Korean fonts. 11 and 12 are for Japanese fonts. Details regarding the soft font ID and sizes, please refer to page 90 (Appendix BB: How to select a font from font board).

Symbol Set
The code map (table) can be redefined to another symbol set or code page. Please refer to the users manual for the code tables, defined by this printer language. Details regarding symbol set settings, please refer to page 42: I command (Select Symbol Set).

December 30, 2009

B4. COMMAND SET

Command

Description

Command

Description

Media-out/Ribbon-out Occurred## FI The PPLB command sets can be categorized into the following four groups, according to functions and memory allocations. Setting commands Label formatting commands Interaction commands (through RS232) Object Downloading commands f Adjust Cutting Position## UM FK FR FS Print Form List Delete Form Execute Form Store Form UE UF UG UI Soft Fonts Info Through RS232## Forms Info Through RS232## Graphics Info Through RS232## Current Codepage Info Through RS232 Memory Allocation and Codepage Info Through RS232 Memory Allocation, Codepge Info GG Print Graphics UP Through RS232 Port And Print Configuration##
Command Description

Quick Reference
Command Description

GI GK GM GW I JB JF LE LO LW N O oR P

Print Graphic List Delete Graphics Store Graphics Print Immediate Graphics Select Symbol Set
**

UQ US UN V X xa Y Z ZS ZN ? ^@ ^ee UI

Printer Configuration Through RS232## Enable Error Report** Disable Error Report** Define Variable Draw Box Auto Calibration## Set Serial Port++ Set Print Direction Enable Store-to-Flash Disable Store-to-Flash Download Variables And Counters Reset Printer## Immediate Error Report Current Codepage Info Through

A B B b C C D EI EK ES FE

Print Text Print 1D Bar Code Print RSS-14 Bar Code (GS1 DataBar) Print 2D Bar Code Counter Immediate Cut Heat Setting
** ##

PA Q q R S TD TS TT U UA UB 7

Print Automatically Set Label and Gap Length Set Label Width** Set Origin Point** Set Print Speed
** **

Disable Back Feed** Enable Back Feed** Line Draw by Exclusive Line Draw by OR Draw White Line Clear Image Buffer Select Options** Euro Character Print Label

Define Date Format Set Real Time Clock Define Time Format Print Configuration Enable Clear Print Buffer When Media-out/Ribbon-out Occurred## Disable Clear Print Buffer When

Print Soft Font List Delete Soft Font Download Soft Font End Form Store

December 30, 2009


Command Description Command Description

B5. COMMAND REFERENCE

RS232 Notes:
**

This section lists all of the commands and their descriptions in alphabetical order. A Syntax Print Text Ap1,p2,p3,p4,p5,p6,p7,DATA Ap1,p2,p3,p4,p5,p6,p7,Cn Ap1,p2,p3,p4,p5,p6,p7,Vn Ap1,p2,p3,p4,p5,p6,p7,DATACn Ap1,p2,p3,p4,p5,p6,p7,DATAVn Description Parameters Prints a text string, counter or variable. p1: X coordinate in dots. p3: Orientation or Print Direction. P3 value 0 1 2 3 Description No rotation (portrait) 90o rotation 180o rotation 270o rotation p2: Y coordinate in dots.

The parameter can be saved into permanent memory E2PROM, that is, it will remain after the printer is restarted, until it is replaced by different parameter through command.

++ ##

The command is not valid for X series. The command is not valid for 300 DPI printers.

p4: ID number for font selection P4 value 1~5 Description Selects resident fonts, font number 1 ~ 5. Refer to the startup self-test printout to see the font list.

10

December 30, 2009 a~z Downloaded soft fonts, a ~ z. Before selecting a soft font, first download it. p5: Horizontal scale factor. p6: Vertical scale factor. The acceptable values for both p5 and p6 are from 1 to 24. p7: N for normal text or R for reverse text image. DATA: A text string Cn: A counter value. Refer to C command. Vn: A variable string. Refer to V command. Example
Example Parameters 1. 2. The resident font 5 does not support lower case characters. The sub-string of counter and variable can be applied to the A command. Syntax Vn[st,len] Cn[st,len] n is the counter or variable ID. st is the start location (the first location is 0), len is the length of the sub-string. FKTEST FSTEST V00,10,N, C0,10,N,+1,

N A50,30,0,1,1,1,N,"This is font 1." A50,70,0,2,1,1,N,"This is font 2." A50,110,0,3,1,1,N,"This is font 3." A50,150,0,4,1,1,N,"This is font 4." A50,200,0,5,1,1,R,"FONT 5" P1

A100,100,0,3,1,1,N,V00[2,4] A100,150,0,3,1,1,N,C0[2,3] FE

FRTEST ? ABCDEF 12345 P3 Output

Output

Fig. B5-1

Fig B5-2

Notes :

11

12

December 30, 2009 B Syntax Print Bar Code 2G Bp1,p2,p3,p4,p5,p6,p7,p8,DATA Bp1,p2,p3,p4,p5,p6,p7,p8,Cn Bp1,p2,p3,p4,p5,p6,p7,p8,Vn Bp1,p2,p3,p4,p5,p6,p7,p8,DATACn Bp1,p2,p3,p4,p5,p6,p7,p8,DATAVn Description Parameters Prints a specific bar code. p1: X coordinate in dots. p3: Orientation or print direction. p3 value 0 1 2 3 Description No rotation (portrait) 90o rotation 180o rotation 270o rotation p2: Y coordinate in dots. 2M 2U 3 3C 9 E30 E32 E35 E80 E82 E85 K P UA0 UA2 Bar Code Type Code 128 UCC (shipping container code) Code 128 auto Code 128 subset A Code 128 subset B Code 128 subset C UCC/EAN Interleaved 2 of 5 Interleaved 2 of 5 with check sum digit Interleaved 2 of 5 with human readable check 13 UA5 UE0 UE2 UE5 digit German Postcode Matrix 2 of 5 UPC Interleaved 2 of 5 Code 3 of 9 Code 3 of 9 with check sum digit Code 93 EAN-13 EAN-13 2 digit add-on EAN-13 5 digit add-on EAN-8 EAN-8 2 digit add-on EAN-8 5 digit add-on Codabar Postnet UPC-A UPC-A 2 digit add-on UPC-A 5 digit add-on UPC-E UPC-E 2 digit add-on UPC-E 5 digit add-on

p4: Bar code selection p4 Value 0 1 1A 1B 1C 1E 2 2C 2D

p5: Narrow bar width in pixels. ++ p6: Wide bar width in pixels. ++ p7: Bar code height in pixels. p8: N - No text is printed or B The human readable text is printed. DATA: A text string. Cn: A counter value. Refer to C command. 14

December 30, 2009 Vn: A variable string. Refer to V command. Notes: ++According to the bar ratio, the bar codes can be classified into two categories. Narrow vs Wide (p5 vs p6)

Type B2

Ratio

Bar code Code 3 of 9, Codabar, Interleaved 2 of 5, Matrix 2 of 5, Postnet and German Postcode. Fig. B5-3

1:2 ~ 1:3 narrow < wide

B3

2:3:4

narrow=wide. 2 x narrow, 3 x narrow and 4 x narrow.

Code 93, Code 128, EAN8, EAN 13, UPC-A, UPC-E, UCC/EAN and Code 28UCC. Notes:
The sub-string of counter and variable can be applied to the B command. Syntax Vn[st,len] Cn[st,len]

Example

N B20,20,0,E80,3,3,41,B,"0123459" B20,120,0,K,3,5,61,B,"A0B1C2D3" B190,300,2,1,2,2,51,B,"0123456789" B20,330,0,UA0,2,2,41,B,"13579024680" P1


Example FKTEST FSTEST V00,10,N, C0,10,N,+1, B100,100,0,3,2,4,51,B,V00[2,4] B100,200,0,3,2,4,51,B,C0[2,3] Parameters n is the counter or variable ID. st is the start location (the first location is 0). len is the length of the sub-string.

Output

FE

15

16

December 30, 2009


FRTEST ? ABCDEF 12345 P3 Output

B Syntax Description Parameters

RSS-14 Bar Code (GS1 DataBar) Bp1,p2,p3,p4,p5,p6,p7,p8,DATA Prints a RSS-14 bar code (GS1 DataBar). p1: X coordinate in dots. p3: Orientation or print direction. p3 value 0 1 2 3 p4: Bar code selection p4 Value R14 RSS-14 (GS1 DataBar Omnidirectional) Width multiplier: 96 pixels; Min. Height Multiplier: 33 pixels (default) RL RSS Limited (GS1 DataBar Limited) Width multiplier: 74 pixels; Min. Height Multiplier: 10 pixels (default) RS RSS Stacked (GS1 DataBar Stacked) Width multiplier: 50 pixels; Min. Height Multiplier: 13 pixels (default) RT RSS Truncated 18 Bar Code Type Description No rotation (portrait) 90o rotation 180o rotation 270o rotation p2: Y coordinate in dots.

Fig. B5-4

17

December 30, 2009 (GS1 DataBar Truncated) Width multiplier: 96 pixels; Min. Height Multiplier: 13 pixels (default) RSO RSS Stacked Omnidirectional (GS1 DataBar Stacked Omnidirectional) Width multiplier: 50 pixels; Min. Height Multiplier: 69 pixels (default) REX RSS Expanded (GS1 DataBar Expanded) Width multiplier: 102~534 pixels; Min. Height Multiplier: 34pixels (default) Row:1~11
N B100,100,0,R14,2,0,0,B,"19811219"

Notes: +Each barcode has different max. numeric value. p4 Value R14 RL RS RT RSO REX Example1 Max. Numeric Value 9999999999999 1999999999999 9999999999999 9999999999999 9999999999999 74 digits

p5: Pixel multiplier. Default: 1; Accepted Values: 1-10 p6: Segments per row. (Only effective in RSS Expanded) Default value: 22; Accepted Values: 2-22(even only) p7: Bar code height in pixels. Default value: refer to parameter p4 p8: N - No text is printed or B The human readable text is printed. DATA: A text string. The data format: nn|pp nn: Value:0~9, numeric ; numeric linear data, length 13. |: Optional. Vertical bar separates primary data from secondary 2D data. pp: 2D data.
+ +

A100,200,0,3,1,1,N,"RSS-14" B100,300,0,RL,2,0,0,B,"4545454545" A100,350,0,3,1,1,N,"RSS Limited" B100,450,0,RS,2,0,0,B,"89121121" A100,520,0,3,1,1,N,"RSS Stacked" B100,600,0,RT,2,0,0,B,"0911006072" A100,660,0,3,1,1,N,"RSS-14 Truncated" B100,720,0,RSO,2,0,0,B,"9876543210" A100,900,0,3,1,1,N,"RSS-14 Stacked Omnidirectional" B100,950,0,REX,2,0,0,B,"87984454546" A100,1050,0,3,1,1,N,"RSS Expanded (Stacked)" B100,1090,0,REX,2,4,0,B,"87984454545" A100,1260,0,3,1,1,N,"RSS Expanded Stacked" P1

19

20

December 30, 2009 Output


B100,440,0,RS,4,4,13,B,"89121121|TEST2" A100,580,0,3,1,1,N,"RSS Stacked composite" B100,620,0,RT,4,4,13,B,"0911006072|TEST3" A100,730,0,3,1,1,N,"RSS-14 Truncated composite" B100,800,0,RSO,4,4,69,B,"9876543210|TEST4" A100,1060,0,3,1,1,N,"RSS-14 Stacked Omnidirectional composite" B100,1120,0,REX,4,4,34,B,"87984454545|TEST5" A100,1280,0,3,1,1,N,"RSS Expanded (Stacked) composite" B100,1350,0,REX,4,4,34,B,"87984454545|TEST6" A100,1520,0,3,1,1,N,"RSS Expanded Stacked composite" P1

Output

Example2
N B100,100,0,R14,4,4,33,B,"19811219|TEST" A100,220,0,3,1,1,N,"RSS-14 composite" B100,280,0,RL,4,4,10,B,"4545454545|TEST1" A100,390,0,3,1,1,N,"RSS Limited composite"

21

22

December 30, 2009 b Syntax Description Parameters Print 2D Bar Code bp1,p2,p3,[specific parameters and data] Prints a specific 2D bar code. p1: X coordinate in dots. p3: 2D bar code type. p3 Value M P D Q or QR Bar Code Maxi Code PDF-417 Data Matrix QR Code p2: Y coordinate in dots.

Maxi Code

[CL,CC,PC,Data] CL: Class code, 3 digits. CC: Country code. 3 digits. PC: Post code, 4 or 5 digits for USA and 6 characters for other countries. Data: Up to 84 characters.

Example

N b80,80,M,"003,840,547017051,ARGOXINFO" A120,300,0,4,1,1,N,"ARGOXINFO" P1

23

24

December 30, 2009 Example Output N b80,80,P,p180,320,10,f1,x2,y10,r60,1l0, t0,o0,"ARGOXINFO" A200,360,0,4,1,1,N,"PDF417" P1 Output

Fig. B5-5 PDF-417 [w,h,s,c,p,f,x,y,r,l,t,o],Data w: h: s: c: Maximum print width in dots. Maximum print height in dots. Error correction level, 0 ~ 8. Data compression level, 0 or 1. The default value is 0. xxx: horizontal start location. yyy: vertical start location. mm: maximum characters per line. f: x: y: r: l: t: o: Bar code origin point. 0= Upper left corner of barcode. 1= Center of barcode (default). Module width, 2 ~ 9 in dots. Module height, 4 ~ 99 in dots. Maximum row count. Maximum column count. Truncation flag, 0=normal and 1=truncated. Rotation. 0-0 , 1-90 , 2-180 and 3-270 . 25 26
o o o o

Fig. B5-6 Data Matrix [c,r,,h,v],Data c: r: h: v: Example Number of columns. Number of rows. Minimum square data module size, 1~40. The default value is 5. Inverse image of barcode.

p(xxx,yyy,mm): Print human readable.

N b120,100,D,h15,"ARGOXINFO" A120,50,0,4,1,1,N,"ARGOXINFO" P1

Output

December 30, 2009 Default value: A Other values: A= Automatic data M= It depends on initializing the manual date mode and the data type is set by the first character in the fixed data field. p8: Fig. B5-7 Notes: 1. 2. QR Code The specifications of PDF-417, Maxi Code and Data Matrix are released by AIM International, Inc. Only OS-214plus, X-1000v and X-2000v support Data Matrix bar code. [p4,p5,p6,p7,p8,p9]Data p4: Code model -prefix m. Default value: Model 2 Other values: 1= Model 1, 2= Model 2 p5: Barcode scale- prefix s Default value: 3 Other values: 1~99 p6: Error correction level- prefix Default value: M Other values: L= Lower error correction, most data M= Default Q= Optimized for error correction over data H= Highest error correction, latest data p7: Data input mode- prefix i 27 28 data: Fixed data field. Enter into data field To Print Notes: 1. 2. Parameters from p4~p8 can be omitted. Only OS-214plus, OS-2140, X-1000v, X-2000v and F1 support Data Matrix bar code. p9: If the parameter p7 is = iM, the first character in the data must be one of the following: N -Numeric (0~9) A -Alphanumeric (0~9, A~Z, a~z and space, $, %,*, +,-, /, :) K -Kanji (Shift JIS character ranges 8410-9FFC and E040-EAA4Hex) Append symbol- prefix D Description Symbol Number Divisions Parity d p 01~16 00~FF Hex. Sub-prefix c Values 01~16

B xxxx For 8-bit byte mode; xxxx is indicate number of characters. (A Simple or Traditional Chinese word is 2 characters)

December 30, 2009 \ \TEST\ \\ \\john\\ \ Example TEST \ \john\


N ZT q832 Q629,24 JB D8 S4 OD b100,100,Q,"\"


\"" "

b100,300,Q,"

b250,100,Q,"\\123456\\" b250,300,Q,"ABCDEFG"

b400,100,Q,"

123 []%$

ABC \\

" \\"

b400,300,Q,"

b550,100,Q,"$%*+-.:" A500,300,0,3,1,1,N,"QR Code" P1 Output

29

30

December 30, 2009 C Syntax Description Counter Cp1,p2,p3,p4,MSG This command defines a counter variable. It is useful in printing the labels numbered in sequence. In general, it will be used together with the Form function. To print the contents of the counter, you may use A (print text) or B (print bar code) commands. Parameters p1: Counter ID. Acceptable value ranges from 00 to 99. p2: Maximum digit number. Acceptable values are from 1 to 29. p3: Justification code. L for left justification, R for right justification, N for no justification and C for centralization. p4: Amount to increment or decrement the field by. There should be a + or - sign before the step value. MSG: A text string that will be sent to KDU or host. Fig. B5-8 Example N FK"TEST" FS"TEST" C0,6,N,+1,"Enter Code:" A100,100,0,4,1,1,N,"Label: " A300,100,0,4,1,1,N,C0 FE Output Above example stores a form to the printer. If you retrieve this form and enter the counter value like the following way, the printer will print two labels by the input counter value. FR"TEST" ? 1000 P2

31

32

December 30, 2009 C Syntax Description C This command is used to rotate cutter once to immediately cut the media. Also, it can be use to immediately cut without media installed to adjust and clean the cutter blade. Parameters Example None. C Example N D10 A100,100,0,3,1,1,N,"DARKNESS=10" Notes: 1. 2. This command can not be used inside a form. Within a form, character C represents counter command function. The cutter must be installed. P1 Parameters p1: Immediate Cut D Syntax Description Dp1 This command is used to set the print darkness. In general, the proper darkness value is depending on the media, print-out pattern and speed. Darkness. Acceptable values ranges from 0 to 15. The default darkness value is 8. Set Darkness

33

34

December 30, 2009 EI Syntax Description EI This command causes the printer to print the list of soft fonts that have been downloaded to RAM or flash memory from the host. Parameters Example Output None Once a soft font is deleted, it cannot be selected or printed out, unless EI If no soft font exists, the output will be Parameters ID * Example Fig. B5-9 If soft fonts with ID C, D, E, F and G are stored in the printer, the output will be Font ID, a ~ z. All fonts will be deleted from RAM or flash memory. downloaded again. Description This command causes the printer to delete the soft fonts that are currently stored in RAM or flash memory. Print Soft Font List EK Syntax EKID EK* Delete Soft Font

EKb This causes printer to delete a soft font with ID b.

Fig. B5-10

35

36

December 30, 2009 ES Syntax Description Download Soft Font ESID<font data> This command is used to download a soft font and store it in RAM or flash memory. The soft font can be deleted by EK command. If it is stored in RAM, it will be automatically cleared when the printer is turned off. The soft fonts can be kept, if they are stored in the flash memory. Refer to the A command for selecting a soft font and printing it. Parameters ID One upper case letter from a to z. Font Descriptor Byte 0 Byte 1 Byte 2 Byte 3 Byte 4 Byte 5 Byte 6 ~ 0FH Character Parameters and Image Byte 0 Byte 1 Byte 2 ~ Movement in pixel Character width in bytes, BW Image data, the length is BW*IV Note: No line separator (LF) is required. Example EKa ESa N A50,30,0,a,1,1,N,"SOFT FONT a" P1 0 No. of characters to be downloaded 0 Image height, IV Width in pixels for space code 0 0

<font data> The basic format of a soft font is Font Descriptor Character 0 Character N-1

37

38

December 30, 2009 FE Syntax Description FE This command is used to end a form store sequence. Once the printer receives such command, it will save the form data into RAM or flash memory. The form data is started by FS command and ended by FE command. Example Parameters Example None. Output FSFORMA FE Fig. B5-11 If no form exists the output will be FI Parameters End Form Store FI Syntax Description FI This command causes the printer to print the list of forms that have been downloaded to RAM or flash memory from the host. None Print Form List

If the forms with names FORMA, FORMB and FORMC are stored in printer the output will be

Fig. B5-12

39

40

December 30, 2009 FK Syntax Delete Form FKFORMNAME FK* Description Description This command causes the printer to delete forms currently stored in RAM or flash memory. The major advantage of using form is that you may retrieve Once a form is deleted it can not be retrieved and printed except it is reloaded again. Parameters Parameters FORMNAME: Form name with a maximum of 9 characters. *: All forms will be deleted from RAM or flash memory. Example Example FK* This causes the printer to delete all forms stored in RAM or flash memory. FKFRMA FSFRMA ; delete form FRMA ; start loading a new form FORMNAME characters. Form name with a maximum of 9 and execute at any time as long as it exists in printer. This command is used to retrieve a form that is currently saved in printer and execute it. FR Syntax Execute Form FRFORMNAME

A50,30,0,4,1,1,N,"THIS IS FRMA." FE ; end form store

FRFRMA P1 . Output

; retrieve and execute ; a copy of form FRMA

Fig. B5-13

41

42

December 30, 2009 FS Syntax Description Store Form FSFORMNAME This command begins a form store sequence until the FE command is received. The destination of storing depends on ZS or ZN command. If flash memory is enabled (ZS) the form will be saved to flash memory, otherwise it is saved to RAM. Parameters FORMNAME characters. Notes: 1. When updating a form with the same form name, use the FK command to delete the old one before storing the new one. 2. Refer to the example at FR command for the whole form related commands. Form name with a maximum of 9 Example Parameters p1: Cut position measured in dots. Acceptable range: 070 to 130. The default value is 100. f100 f Syntax Description fp1 This command is used to adjust the cutting position. Due to media differences, when cutter function is enabled, use this command to have the printer cut the media in more precise position. Adjust Cutting Position

43

44

December 30, 2009 GG Syntax Description Print Graphics GGp1,p2,GNAME This command is used to print a graphic with PCX format that has been previously downloaded and saved in printer. Parameters p1: X coordinate in dots. p2: Y coordinate in dots. GNAME: Graphic name with a maximum of 8 characters. Example Example Output GI If no PCX graphics exist the output will be Parameters GI Syntax Description GI This command causes the printer to print the list of graphics that had been download to RAM or flash memory from host. None. Print Graphic List

N GG100,50,PCXGRAPH P1

Fig. B5-14 If the graphics with names GRAPHA, GRAPHB and are stored in printer the output will be

Fig. B5-15

45

46

December 30, 2009 GK Syntax Delete Graphics GKGNAME GK* Description This command causes the printer to delete graphics currently stored in RAM or flash memory. Once a graphic is deleted it can not be retrieved and printed except it is reloaded again. Parameters GNAME: Graphic name with a maximum of 8 characters. *: All graphics will be deleted from RAM or flash memory. Example Note: To verify that the graphic was successfully stored you may send a GI command after downloading. GK* Parameters This causes printer to delete all graphics stored in RAM or flash memory. GNAME: Graphic name with a maximum of 8 characters. p1: The size (decimal) in bytes of PCX files. PCX file: The graphics should be in PCX format. Refer to the Appendix BA for the specification of PCX graphics. Example Description GM Syntax Store Graphics GMGNAMEp1 PCX file This command causes the printer to store graphics object in RAM or flash memory. The destination of storing depends on ZS or ZN command. If flash memory is enabled(ZS) the graphics will be saved to flash memory, otherwise it is saved to RAM.

GKPCXA GMPCXA3858

; delete a graphic name PCXA ; store a graphic name PCXA with size 3858 bytes

[PCX file for PCXA graphics]

N A30,30,0,4,1,1,R,"PCXA..." 47 48

December 30, 2009 GG30,100,"PCXA" P1 GK"*" First delete PCXA graphics, download a new one, print some texts and the PCXA. After printing, delete all graphics stored in printer. Output Syntax Description GWp1,p2, p3,p4,[raster image] This command is used to print a graphic with binary format. Note that the graphic format is not a PCX one. You should send row by row without compression. The 1 represents blank pixel and 0 for black pixel. After being printed the graphic image will be cleared immediately. You can not recall or reprint it again. Parameters p1: X coordinate in dots. p2: Y coordinate in dots. p3: Graphic width in bytes. Fig. B5-16
Notes: 1. The example of storing and recalling PCX graphics under Dos prompt is as below:

; print the graphic name PCXA

GW

Print Immediate Graphics

p4: Height in pixels.

copy/b head+PCXA.pcx+tail LPT1:

; send this three files to the printer

ZS GKPCXA GMPCXA3858 [ Any *.pcx graphics ] N A30,30,0,4,1,1,R,"PCXA..." GG30,100,"PCXA" P1

head PCXA.pcx

tail

49

50

December 30, 2009 I Syntax Description Select Symbol Set Ip1,p2,p3 This command is used to select the proper symbol set. The factory default symbol set is Code page 437 (English). Parameters p1: data bit number. 8 for 8-bit data and 7 for 7-bit data. p2: Symbol set. p3: KDU country code. 8 bit data (p1=8) 0 1 2 3 4 5 6 7 8 9 10 11 12 13 Symbol Set (Code page) English (437) Latin 1 (850) Slavic (852) Portugal (860) Canadian/French (863) Nordic (865) Turkish (857) Icelandic (861) Hebrew (862) Cyrillic (855) Cyrillic CIS 1(866) Greek (737) Greek 1 (851) Greek 2 (869) Fig. B5-17 5 6 7 8 Italian Spanish Swedish Swiss Output This example selects 7 bit data, Italian symbol set. 7 bit data (p1=7) 0 1 2 3 4 USASCII British German French Danish Example N I7,5,001 A50,30,0,3,1,1,N,"100" P1 Symbol set Note: See the code table list in the Users manual for additional information, symbols and codes. 8 bit data (p1=8) A B C D E F Symbol Set (Code page) Latin 1 (1252) Latin 2 (1250) Cyrillic (1251) Greek (1253) Turkish (1254) Hebrew (1255) 7 bit data (p1=7)

51

52

December 30, 2009 JB/JF Syntax Disable OR Enable Back Feed Disable back feed: JB Enable back feed: JF Description This command is used to adjust the stop position. The back feed action is disabled at factory settings. After JF the printer will feed about one more inch so that the user can see the whole label. Parameters None. Example Parameters Description This command is used to draw a line by an exclusive OR operation. p1: X coordinate in dots. p2: Y coordinate in dots. p3: Horizontal length in dots. p4: Vertical height in dots. N LE50,30,100,10 LE100,20,5,110 P1 Output LE Syntax Line Draw by Exclusive OR Operation LEp1,p2,p3,p4

Fig. B5-18

53

54

December 30, 2009 LO Syntax Description Parameters Line Draw by OR Operation LOp1,p2,p3,p4 This command is used to draw a line by an OR operation. p1: X coordinate in dots. p2: Y coordinate in dots. p3: Horizontal length in dots. p4: Vertical height in dots. Example N LO50,30,100,10 LO100,20,5,110 P1 Output Example N LE50,30,100,10 LE50,60,100,10 LE50,90,100,10 LE50,120,100,10 LW100,20,5,110 P1 Output Parameters p1: X coordinate in dots. p2: Y coordinate in dots. p3: Horizontal length in dots. p4: Vertical height in dots. LW Syntax Description Draw White Line LWp1,p2,p3,p4 This command is used to draw a white line, so it may erase previous image.

Fig. B5-19 Fig. B5-20

55

56

December 30, 2009 N Syntax Description N This command is used to clear the image buffer before filling any image. Parameters None. Parameters Clear Image Buffer O Syntax Description Select Options O[D,C,N,L] This command is used to select various printer options. In general, it depends on the configuration of your printer. D: Enable direct thermal (without ribbon). p1 sets the number of labels to print prior to cut. If the lowercase b is specified for p1, the batch function is enabled. The printer will end off print-out with cutting the label once. N: L: Enable dispenser. On demand mode. The printer will print the next label out when pressing the feed button. Every time when the printer is started up, the defaults are cutter disabled, and dispenser disabled. Example ; thermal transfer, disables cutter and dispenser ; direct thermal, disables cutter and ; dispenser OC ; thermal transfer, enables cutter and ; disables dispenser Notes: 57 58

C[p1]]: Enable cutter. Note: Since this printer automatically clears the image buffer after a P command is execute, the N command may not be necessary. But for other compatible printers, this command can be accepted to clear the image buffer.

OD

December 30, 2009 1. 2. The cutter and dispenser cannot be enabled at the same time. OL command (on demand mode) is not valid when cutter or dispenser was enabled. OL command is also not valid for 300 DPI printers. Description 3. Once the options are incorrectly selected, the LEDs at panel may become blinking after printing. Please refer to the trouble-shooting section to correct the errors. 4. For X2000+ and X3000+, the thermal transfer and direct thermal are set via DIP switches, not by this command. For G4, the thermal transfer and direct thermal are set via panel. Parameters This command is used to replace the Euro cash sign in any ASCII character. This command is only used in Font 1~4. p1: E. (If p2 parameter is not set, the Euro cash sign will be mapped to 213 DEC (D5 HEX) in all code pages.) p2: Valid DEC number is from 0 to 255. The ASCII character map position of valid code page is is replaced by the Euro character. oR Syntax Euro Character oR[p1, p2]

59

60

December 30, 2009 P Syntax Description Print Label Pp1[,p2] This command is used to output the contents of the image buffer. Parameters p1: Number of label sets, 1 ~ 65535. p2: Number of copies per label, 1 ~ 65535. Example FK"TEST" FS"TEST" C0,6,N,+1,"Enter Start No.:" A20,50,0,4,1,1,N,"Label: " A120,50,0,4,1,1,N,C0 FE Fig. B5-21 Output

N Q20,0 FR"TEST" ? 100 P2,3 This example downloads a form and prints 2 label sets with 3 pieces per set.

61

62

December 30, 2009 PA Syntax Description Print Automatically PAp1[ ,p2] This command is used for form application. It prints the form, as soon as all variable data have been input. Parameters p1: Number of label sets, 1 ~ 65535. p2: Number of copies per label, 1 ~ 65535. Example FK"TEST1" FS"TEST1" C0,6,N,+1,"Enter Start No.:" A20,50,0,4,1,1,N,"Label: " A120,50,0,4,1,1,N,C0 PA2 FE Fig. B5-22

N Q20,0 FR"TEST1" ? 100

Output 63 64

December 30, 2009 Q Syntax Description Set Label and Gap Length N Qp1,p2[p3] This command is used to set the label and gap length measured in dots. Parameters p1: For label with gap, p1 is to set the label length. For continuous media, p1 is to set the feed distance after the last image line. p2: Gap length. For continuous media (without gap), this parameter should be set to 0. For black line media, p2 should be set to B plus black line thickness in dots. p3: For gap and continuous media, this parameter is to set positive vertical offset length. For black line media, this parameter is to set the length between black line and perforation line. Example Note: If the label size is not properly set, the printer may print off the edge of the label or tag and onto the backing or platen roller, while showing error message. Q496,B24-40 A20,30,0,2,1,1,N,"Q command:" A20,60,0,2,1,1,N,"Black Line Media" A20,90,0,2,1,1,N,"With Perforation" P1

N Q100,20 A20,30,0,2,1,1,N,"Q command:" A20,60,0,2,1,1,N,"Label with gap" A20,90,0,2,1,1,N,"Gap length: 20 dots" P1

N Q100,0 A20,30,0,2,1,1,N,"Q command:" A20,60,0,2,1,1,N,"Continuous Label" P1 65 66

December 30, 2009 q Syntax Description qp1 This command sets the label width. This command is an alternative Set Label Width R Syntax Description Set Origin Point R p1,p2 This command moves the origin point for the X and Y axes. After this command is sent, all coordinates are set according to the new origin. Parameters Example p1: Label width in dots. Parameters N q250 A20,30,0,2,1,1,N,"q command:" A20,60,0,2,1,1,N,"Label width: 250 dots" P1 Note: This command will automatically set the left margin. The incorrect label width will cause the image shift to the left or right, even lost. The print direction commands (ZB and ZT) will affect the location of the origin point. Refer to the Z command for details. p1: Horizontal margin measured in dots. p2: Vertical margin measured in dots.

to sending the R command for center labels that are narrower than the print head.

67

68

December 30, 2009 S Syntax Description Sp1 This command is used to set a particular speed for a label or batch of labels to be printed. Parameters p1: A single character (0 to 6) representing a particular speed setting. The range depends on your printer model. p1 Value 0 or 1 2 3 4 5 6 7 Speed 1 ips (25 mmps) 2 ips (50 mmps) 3 ips (75 mmps) 4 ips (100 mmps) 5 ips (125 mmps) 6 ips (150 mmps) 7 ips (175 mmps) TDdd,mn,y4 A100,100,0,4,1,2,N,TD Example S2 The sample above sets the printer to a speed of 2 ips. A100,200,0,4,1,2,N,TD+7 ; 06,01,2006 ; 13,01,2006 Example TDdd-me-y2 A100,100,0,4,1,2,N,TD A100,200,0,4,1,2,N,TD+7 ; 06-JAN-06 ; 13-JAN-06 Parameters Set Print Speed TD Syntax Description Define Date Format TD[p1][p2][p3][+n] This command defines the date format for printing. You may define special characters as separators. p1: y2 (year displayed as 2 numerals). y4 (year displayed as 4 numerals). p2: me (month displayed as 3 letters). mn (month displayed as 2 numerals). p3: dd (day). [+n]: n (date offset range from 1 to 255 days).

Only X3000+ and G4 support 7 ips.

69

70

December 30, 2009 TS Syntax Description Parameters Set Real Time Clock TSp1,p2,p3,p4,p5,p6 This command is used to set the RTC if it is installed. p1 : Month, 01 ~ 12. p2 : Day, 01 ~ 30. p3 : Year, 00 ~ 99. p4 : Hour in 24 hour format. 00 ~ 23. p5 : Minutes, 00 ~ 59. p6 : Seconds, 00 ~ 59. Example Example TS10,06,00,12,30,00 ; Sets the time to ; Oct. 6, 00 ; 12:30:00 PM TTh:m:s TTh/m TTh:m:s+ TT+ h:m ; 13:30:20 ; 13/30 ; 01:30:20PM ; PM 01:30 Parameters p1 : h (hours). If a + exists the hour is in 12 hour format and PM or AM will be printed. p2 : m (minutes). p3 : s (seconds). TT Syntax Description Define Time Format TT[p1][p2][p3] This command defines the time format for printing. You may define special characters as separators.

71

72

December 30, 2009 U Syntax Description U This command is used to print the printer configuration including settings, firmware version, accessories, etc.. Parameters Example Output None. U Print Configuration

Fig. B5-24 Printout from X Series (The printout depends on the models)

Fig. B5-23 Printout from OS Series (The printout depends on the models)

73

74

December 30, 2009 UA Enable Clear Print Buffer When Media Out/ Ribbon Out Occurred Syntax Description UA This command is used to clear the print buffer when media-out or media-out occurred. After this command is sent, the remained copies of label will not be printed if a media out condition is detected. Parameters None. Parameters Syntax Description UB This command is used to clear the UA command and restore the default setting to allow the printer to resume the printing job after supplying new label roll (or ribbon roll). None. UB Disable Clear Print Buffer When Media Out Or Ribbon Out Occurred

Example

UA

Example

UB

Note: 1. The command is not valid for 300 DPI printers.

Note: 1. The command is not valid for 300 DPI printers.

75

76

December 30, 2009 UE Syntax Description UE This command is used to inquire the stored soft fonts in printer. After this command is sent, the printer will send the information of soft fonts stored in the printer back to the host through the RS232 port. Parameters None. Parameters None. Soft Fonts Information Through RS232 UF Syntax Description UF This command allows printer to send the information of forms currently stored in the printer back to the host through RS232 port. Forms Information Through RS232

Example Output

UF

Example Output

UE

Form Information: form3

Soft Font Information: B A Note:

form2 form1

Note: 1. The command is not valid for 300 DPI printers.

1. The command is not valid for 300 DPI printers.

77

78

December 30, 2009 UG Syntax Description UG This command allows printer to send the information of graphics currently stored in the printer back to the host through RS232 port. Parameters None. Graphics Information Through RS232 UI Syntax Description UI This command causes printer to send the information about current selected codepage back to the host through RS232 port. The printer will send feedback in the following format: UI p1,p2,p3 p1: data bit number. Example Output UG p2: symbol set p3: country code Graphics Information: No Graphics Stored. Parameters None. Current Codepage Information Through RS232

Example Note: 1. The command is not valid for 300 DPI printers. Output

UI UI8,0,001

Notes: 1. See I command for additional information. 2. The command is not valid for 300 DPI printers.

79

80

December 30, 2009 UM Memory Allocation And Codepage Information Through RS232 Syntax Description UM This command causes printer to send memory status and current selected codepage back to the host through RS232 port. The printer will send feedback to the host in the following format: UM p1,p2,p3, p4,p5,p6, p7,p8 p1: Image buffer size in KBytes p2: Form memory allocation size in KBytes p3: Free memory for form in KBytes p4: Graphic memory allocation size in KBytes p5: Free memory for graphics in KBytes p6: Soft font memory allocation size in KBytes p7: Free memory for soft font in KBytes p8: The same data format with UI command Parameters None. Notes: 1. The printer will print configuration on labels. 2. See I, UM, UI, and U commands for additional information. 3. The command is not valid for 300 DPI printers. Example Output UM Output UM925,0,987,0,987,0,987 UI8,0,001 Example UP Parameters None. Syntax Description UP This command causes printer to send the information about current selected codepage and memory allocation back to the host through RS232 port and print printer configuration on labels. UP Memory Information, Current Codepage Through RS232 And Print Configuration

UM925,0,987,0,987,0,987 UI8,0,001

Notes: 1. See I, UI commands for additional information. 2. The command is not valid for 300 DPI printers. 81 82

December 30, 2009 UQ Syntax Description UQ This command causes printer to send its configuration information back to the host through RS232 port. Parameters None. Parameters Example Description This command is used to disable/enable the feedback from the printer. The printer sends its feedback through the RS232 port. The default is disabled. None. Printer Configuration Through RS232 UN/US Syntax UN US Disable/Enable Error Reporting

Example Output

UQ

Label Printer with Firmware PPLB R2B0-3.07 111505 RS232: 9600, N, 8, 1P

US

STANDARD RAM: 2097152 BYTES AVAILABLE RAM: 1003264 BYTES Code Page 437 THERMAL TRANSFER REFLCT. SENSOR LABEL COUNT: 156 (11 M) FLASH ON BOARD: 512K free CHECKSUM: 0000 H. POSITION ADJUST.: 0000 LAB LEN(TOP TO TOP): 355 mm. MEDIA SENSOR LEVEL: 1

If an error occurs the printer will send a NACK(15H), followed by the error number to the host. If no error, the printer will echo an ACK(06H), after a P command is received. For major problems, e.g. media out, the LEDs on the panel of the printer will blink. Error Code 01 03 04 07 09 10 81 Description Command parser error Data error for bar code Memory overflow Media or ribbon out error Object error (include soft font, form, graphics not found) Data error (not in data entry mode) Cutter fail

Note: 1. The command is not valid for 300 DPI printers. 83 84

December 30, 2009 V Syntax Description Define Variable Vp1,p2,p3,MSG This command defines the variable in forms. This command is useful to print labels numbered in sequence. To print the contents of the variable, you may use A (print text) or B (print bar code) commands. Parameters p1: Variable ID. Acceptable values from 00 to 99. p2: Maximum digit number for the variable. Acceptable value ranges from 1 to 99. If you use KDU, the length should be limited under 16. p3: Justification code. L for left justification, R for right justification, N for no justification and C for center alignment. MSG: A text string that will be sent to KDU or host. Example Output This example stores a form to the printer, if you retrieve the form and enter the counter and variable with following procedure, the printer will print two labels with the input data. Q050,0 FR"TEST2" ? Part Number: 1234 P2,1

N FK"TEST2" FS"TEST2" V0,16,L,"Enter Title:" C0,6,N,+1,"Enter Code:" A100,100,0,4,1,1,N,V0 A355,100,0,4,1,1,N,C0 A100,150,0,4,1,1,N,V00C0 A100,200,0,4,1,1,N,TestV00ArgoxC0 FE 85 86 Fig. B5-25

December 30, 2009 X Syntax Description Parameters Draw Box Xp1,p2,p3,p4,p5 This command is used to draw a box by an OR operation. p1: X coordinate of start point in dots. p2: Y coordinate of start point in dots. p3: Thickness of four edges. p4: X coordinate of end point in dots. p5: Y coordinate of end point in dots. Example N A50,30,0,4,1,1,R,"BOXES" X50,120,5,250,150 X120,100,3,180,280 P1 Output Note: 1. The command is not valid for 300 DPI printers. Example Parameters None. xa Syntax Description xa This command is used to have the printer automatically perform the calibration. The printer will feed label stock for certain length to detect the label characteristics and gap length. Auto Calibration

xa

Fig. B5-26

87

88

December 30, 2009 Y Syntax Description Set Serial Port Yp1,p2,p3,p4 This command is used to setup the serial port on the printer for matching with the host. The protocol between the host and the printer should be same otherwise unpredictable results will occur. Parameters p1: Baud rate. Acceptable values are: p1 Value 11 57 38 19 96 48 24
**

3.

This command is not used for those models with DIP switches. For X2000+/X3000+, you can set baud rate via DIP switches on the rear of the printer For G4, you can set baud rate via panel.

Example

Y19,N,8,1

Speed 115,200 baud** 57,600 baud** 38,400 baud 19,200 baud 9,600 baud 4,800 baud 2,400 baud

Baud rate 57,600 and 115,200 are only for G4 and OS214 plus.

p2: Parity. O - odd parity, E - even parity and N - none parity. p3: Data bit number, 7 or 8. p4: Stop bit number, 1 or 2. Notes: 1. 2. For some printers, p2, p3 and p4 are ignored. The data format for such printers is always 8 bit data, none parity and 1 stop bit. The factory defaults for RS232 are 9600 baud, 8 data bits, none parity and 1 stop bit. 89 90

December 30, 2009 Z Syntax Description Zp1 This command is used to set the print direction for all graphics, texts, bar codes, lines and boxes. Parameters p1: Direction. Acceptable values are B or T. B: Print from the bottom of image. The graphics, images or texts etc. that are sent from the top are diagonally symmetrical with those sent from the bottom. T: Print from the top of image. The default value is T. Example Label feed direction Fig. B5-27 Set Print Direction Label feed direction

N ZT A50,30,0,4,1,1,R,"ZT" P1

Fig. B5-28

N ZB A50,30,0,4,1,1,R,"ZB" P1

Output

91

92

December 30, 2009 ZN/ZS Syntax ZN ZS Description Description This command is used to disable/enable the flash memory. Every time when the printer is turned on, the flash memory is disabled. Following models require installing flash memory card when enable the flash memory: OS-203DT, OS-204DT, OS-214TT, OS314TT, X-1000+, A-50, A-150, R-200/200K. All PCX graphics, soft fonts and forms can be stored to RAM or flash memory. But the objects that are stored in RAM will be cleared after the printer is turned off. Example Refer to the C and V commands for examples. This command is used to send data variables or counters to the printer after a form is stored. The amount of data following the question mark and LF must exactly match with the total number and order of variables and counters in that specific form. This command is used to inform the printer that the data following are input variables or counter values. Disable/Enable Flash Memory ? Syntax Download Variables and Counters

ZS FK"TEST3" FS"TEST3" A100,100,0,4,1,1,N,Test Flash FE If the flash memory is installed and you send the example file, then restart the printer and retrieve the form. The printer will print out the correct result.

FR"TEST3" P1

93

94

December 30, 2009 ^@ Syntax Description ^@ This command is used to restart the printer. Forms, soft fonts and graphics that were stored in flash memory will not be cleared after this command is sent. Parameters Parameters Example Notes: 1. This command is unavailable while the printer is in dump mode. 2. The command is not valid for 300 DPI printers. None. Example ^@ Error Code 00 01 03 04 07 09 10 11 12 50 81 No error Command parser error Data error for bar code Memory overflow Media or ribbon empty error Object error (include soft font, form, graphics not found) Data error (not in data entry mode) Print Head Up (Open) Pause Mode or Paused in Peel Mode Printer Busy Cutter fail ** *** **** ***** ****** Description * Remark ^ee None. Reset Printer ^ee Syntax Description ^ee This command is used to get printer error and status report immediately via RS232 port. Immediate Error Report

Note: 1. 2. 95 *Not valid for OS314. ** Not valid for OS314. 96

December 30, 2009 3. 4. 5. 6. ***Only work on X-3000+. ****OS203 supports pause mode both in printing and peel mode; ineffective on OS-214 and OS-314. *****Ineffective on OS-214 and OS-314. ******Ineffective on OS-314 and X-2000v. This section contains the basic PCX format that will be accepted by your printer. The raster image data at PCX file are compressed. It reduces the file size and saves the time for communication between the host and the printer. Note that all of the word (16 bits) or long word (32 bits) data are in Intel formats, i.e. the most significant byte is at highest address. PCX Header (128 bytes) First raster line Last raster line Header The header includes 128 byte data. Location 0H 1H 2H 3H 4H ~ 5H 6H ~ 7H 8H ~ 9H 0AH ~ 0BH 97 Contents 0AH, PCX mark Version 0 Bits per pixel, this should be 1. X coordinate at upper left point, 0. Y coordinate at upper left point, 0. X coordinate at lower right point Y coordinate at lower right point 98

APPENDIX BA: PCX SPECIFICATION

December 30, 2009 0CH ~ 0DH 0EH ~ 0FH 10H ~ 3FH 40H 41H 42H ~ 43H 44H ~ 45H 46H ~ 47H 48H ~ 49H 4AH ~ 7FH Horizontal resolution. Ignored. Vertical resolution. Ignored. All 0s 0 Plane no., this should be 1. Bytes per raster line 0 Horizontal pixel count - 1 Vertical pixel count - 1 All 0 1 at pattern byte stands for white pixel and 0 for black pixel. If the width in pixels is not a multiple of 8, the bits of 1must be filled at the end of each row to form an integral part of bytes.

Note: The alignment of word or long word for PCX file is at Intel format. That is the most significant bytes is located at highest location and least significant byte is located at lowest location. Raster Data There are two types of raster data. CC, pattern0 pattern1 The control byte must be greater than C0H and pattern1 is less than C0H. rep=CC & 3FH rep represents the repeat count of pattern0 after expansion. For example, a raster line data, 3AH, C0H, C1H, 41H, 41H, 41H, 41H, 41H After compression, they become 3AH, C1H, C0H, C1H, C1H, C5H, 41H

99

100

December 30, 2009

APPENDIX BB: HOW TO SELECT A FONT FROM FONT BOARD

APPENDIX BC: HOW TO MAKE A FORM

In general a form contains texts, bar codes and graphics. Some of the fields are fixed, The font IDs for fonts at font board are 7 ~ 12. 7 and 8 are for Chinese fonts. 9 and 10 are for Korean fonts. 11 and 12 are for Japanese fonts. Font type Traditional Chinese font Chinese font Korean font Command 7 7 9 10 11 12 200 dpi font size 24x24 24x24 24x24 16x16 24x24 16x16 300 dpi font size 24x24 24x24 32x32 24x24 32x32 24x24 Download graphics GKLOGO Example: A50,30,0,7,1,1,N,"FONT AT FONT BOARD." graphics Note: For two-byte language, like Chinese a character is composed of two bytes. GMLOGO1024 ; delete the previous one if it exists ; start pcx graphics. 1024 is the total size of the graphics ; 1024 does not include LF code, . while the others are subject to change. some of the following tasks: Download graphics Download a form Define variables and counters Set positions for texts, bad codes and graphics Retrieve and execute a form While making a form, you may need to perform

Japanese font

Refer to the appendix BA for the PCX specification. Download a Form FKTICKET FSTICKET FE Define Variables and Counters ; delete the previous one if it exists ; start the form store sequence of the form TICKET ; end a form sequence

101

102

December 30, 2009 GK"LOGO" V00,15,N,Start From V01,15,N,Destination C0,6,N,+1,Ticket no. Set Positions The positions are depending on the label dimension and the output format. q700 ZT GG50,100,LOGO A100,150,0,4,1,1,N,From A350,150,0,4,1,1,N,to A200,150,0,3,1,1,N,V00 A415,150,0,3,1,1,N,V01 ; set label width ; set print direction ; place LOGO to position x=50, y=100 ; fixed text at x=100, y=150, font 4 ; fixed text at x=250, y=150, font 4 ; variable at x=200, y=150, font 3 ; variable at x=415, y=150, font 3 height 96, and print readable digits Retrieve and Execute FRTICKET ? New York Mexico 100200 P3,1 ; retrieve form TICKET ; start download of variables and counter ; V00 value ; V01 value ; C0 value ; print 3 label sets, 1 copy of each label FR"TICKET" ? New York Mexico 100200 P3,1 Once a form or graphics is stored, you can print labels just by sending a few commands. Program List 103 104 q700 ZT GG50,100,LOGO A100,150,0,4,1,1,N,"From" A350,150,0,4,1,1,N,"to" A200,150,0,3,1,1,N,V00 A415,150,0,3,1,1,N,V01 B250,200,0,1,3,3,96,B,C0 FE V00,15,N,"Start From" V01,15,N,"Destination" C0,6,N,+1,"Ticket no." ; variable 00 with a maximum length of 15 ; variable 01 for destination ; counter 0, stepped by +1 GMLOGO1024 graphics FK"TICKET" FS"TICKET"

B250,200,0,1,3,3,96,B,C0 ; counter using code 128 with bar code

December 30, 2009

APPENDIX BD: ADDITIONAL COMMANDS

Command <ESC>!

Description Resets printer to factory default.

Models For all models

There are some extra PPLB commands for special functions on OS, A, R, X and G series printers. Their characteristics are They can be saved in the printer permanently, unless to be changed or reset via the panel. Once the emulation is changed, you had better reset them to factory defaults via the panel. They are pseudo commands. They are not defined in all printer models. You can set them via panel or DIP switches on X2000+/X3000+ printers. Command d1,[]m m: Description Horizontal shift. number of pixels for shift. + or without sign mark cause right shift. causes left shift. E.g. d1,100 d8,m See through sensor enabled. The sensor type will be switched immediately after d8,m command received. m: 1 for see through sensor. 0 for reflective sensor. 105 A200/X2000+/X3000+/G4 Default: d1,0 Models For all models.**

<ESC>@0 <ESC>KI;m

Clear the flash memory that contains forms, For all models. soft fonts or graphics. Cutter or peeler offset. m: A signed byte and in term of pixels. Cutter offsets 51 dots. E.g. <ESC>KI;3 <33H> *For all models, except X3000+. *F1 only has cut offset function Default: <ESC>KI; <00H> For all models.

<ESC>KIJm

JIS / SHIFT JIS setting. m: 1 for SHIFT JIS code with Japanese font. 0 for JIS code with Japanese font.

Default: <ESC>KIJ0 OS203++ OS203++

<ESC>KI1m <ESC>pmt1t2

Cash draw function enabled. m: m: t1: t2: Enable/ disable cash draw function. Select Drawer. Pulse on time. Pulse off time. Set Cash Draw Pulse On/Off Time.

<ESC>p2 Notes:
**

Cash Drawer Status.

OS203++

The parameter can be saved into permanent memory E2PROM, that is, it will remain after the printer is restarted, until it is replaced by different parameter through command.

++

Refer to the Appendix BE.

106

December 30, 2009

APPENDIX BE: HOW TO SELECT CASH DRAW FUNCTION IN OS-203 PRINTER

<ESC>KI1m Syntax

Enable Cash Draw Function <ESC>KI1m This command is used to enable the cash draw function. After this command is sent, the printer will generate a drawer kicker pulse before print the label.

The Cash Drawer Kicker is connected with printer OS-203 via RJ11 connector. The figure below displays the pin assignments for the printers cash drawer interface.

Description

Parameters

m: Select drawer. m 0 2 5 Description Disable cash draw function. Enable cash draw function. The pulse is sent to drawer kick-out connector pin 2. Enable cash draw function. The pulse is sent to drawer kick-out connector pin 5.

To trigger the cash drawer and set its on/off time, please refer to the command below. Example

<ESC>KI12

107

108

December 30, 2009 <ESC>pmt1t2 Syntax Description Set Cash Draw Pulse On/Off Time <ESC>pmt1t2 This command is used to send a pulse and set the pulse on/off time to the specified connector pin. After this command is sent, the printer will generate a drawer kicker pulse. Parameters m: Select drawer. m 0 1 Description Enable cash draw function. The pulse is sent to drawer kick-out connector pin 2. Enable cash draw function. The pulse is sent to drawer kick-out connector pin 5. Parameters Example Output None <ESC>p2 01 <ESC>p2 Syntax Description Cash Drawer Status <ESC>p2 This command is used to get the cash drawer status. After this command is sent, the printer will send the feedback to the host through RS232 port in the following format: 00 hex: 01 hex: cash drawer open. cash drawer closed.

t1: t2:

The pulse on time setting. On time= t1 2 milliseconds. Ranges from 00 to FF hex. The pulse off time setting. Off time= t2 2 milliseconds. Ranges from 00 to FF hex. Note: ** The RS232 is needed.

Example

<ESC>p000

109

110

December 30, 2009

APPENDIX BF: HOW TO SEND THE COMMANDS TO THE PRINTER

Basic program example:


10 20 30 OPEN "LPT1" FOR RANDOM AS #1 PRINT #1, "q480" PRINT #1, "Q40,30" PRINT #1, "N" PRINT #1, "D8" PRINT #1, "B55,80,0,2,3,7,50,N,"; ' Darkness ' Barcode I25 ' Label width ' Label with gap

If you are using a PC system to edit a command file under MS-DOS, at final stage, you may send it to the printer to get the printout. However, the way that you send the revised file is varied from the computer environment. 1. Suppose you connect the serial cable to COM1: - Set the baud rate and data format (the default baud rate under DOS is 2400) - Copy the command file to COM1 port >MODE COM1:9600,N,8,1,P >COPY/B CMDFILE COM1:

40 50 60 70 75 80 90 100 110 120 130 140

PRINT #1, CHR$(34)+"000851802807"+CHR$(34) ' bar code data="000851802807" ' Text="0008"

PRINT #1, "A110,140,0,3,1,1,N,"; PRINT #1, CHR$(34)+"0008"+CHR$(34) PRINT #1, "A220,140,0,3,1,1,N,"; PRINT #1, CHR$(34)+"518028"+CHR$(34) PRINT #1, "A50,10,0,4,1,1,R,";

' Text="518028"

' Text="Printout:"

PRINT #1, CHR$(34)+"Printout:"+CHR$(34) PRINT #1, "P1" END ' Single copy

2. Suppose you connect the Centronics cable to LPT1: - Just copy the command file to LPT1: port

150

>COPY/B CMDFILE LPT1: 3. Suppose you connect the serial cable to COM1: and use Quick Basic - Open a device file and set related parameters - Run your Basic program

111

112

December 30, 2009

APPENDIX BG

FONTS AND BAR CODES FOR PPLB

Symbol

Internal Fonts
There are 5 internal fonts for the PPLB emulation. Each has 20 eight-bit and 9 seven-bit symbol sets. Font 5 supports upper case characters, 0~9, #$%&+,-.:/\, and space only.

Font 1

Font 2

Font 3

Font 4

Font 5

113

114

December 30, 2009

115

116

December 30, 2009

117

118

December 30, 2009

Internal Bar Codes


The PPLB supports 26 one-dimensional bar codes and 2 two-dimensional bar codes. (G4 supports 3 two-dimensional bar codes.)

119

120

December 30, 2009

121

122

December 30, 2009

APPENDIX BH: COMMAND QUICK REFERENCE CHART

This reference chart is a summary of PPLB commands. A symbol * represents the printer supports such function. A character S indicates that this function can be set via DIP switches. A character P indicates that this function can be set via Panel.

123

124

December 30, 2009

125

126

December 30, 2009

127

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy