In this chapter, the basic concept of SLCS and some information necessary for the programmer to use SLCS will be explained. Please read this part before starting programming for efficient and easy use of METAPACE Label Printers.. - 4 -...
Metapace L-1 / L-2 1-1 Image Buffer Configuration 1) Maximum size A) When using Double Buffering Function 832dots × 1216dots (104mm × 152mm) = 4 inch × 6 inch B) When using Single Buffering Function 832dots × 2432dots (104mm × 304mm) = 4 inch × 12 inch 2) Dot size : 0.125mm(W) ×...
Metapace L-1 / L-2 1-2 Information for calculating position on image buffer 1) Relation between position and number of dots Inch dots Resolution 0.04 0.40 10.00 1.00 25.40 1.25 31.75 1.50 38.10 1.75 44.45 203 dpi 2.00 50.80 2.25 57.15 2.50...
Page 7
Metapace L-1 / L-2 3) Example of text and barcode Direction of x axis (0.0) (124 , 160) (503 , 160) METAPACE Metapace L-1 (124 , 356) 4) Example of rotation Direction of x axis (0.0) Start Position 0° ABCD...
Metapace L-1 / L-2 1-3 Command List Command Description Remarks Page 1. Commands for Designing Label Text Draw text string on the image buffer Text (Vector Font) Draw text string on the image buffer 1d barcode Draw 1D Barcode on the image buffer...
Page 9
Metapace L-1 / L-2 Command Description Remarks Page 5. Template Related Commands Template store Start All contents between these commands are saved in printer memory. Template store End Template Recall Load and reuse the stored Template. Delete stored Template from...
Metapace L-1 / L-2 1-4 Programming Considerations 1) All commands are case-sensitive and some commands require one or more parameters and ‘Data’. 2) Command Conventions Tp1,p2,p3,p4,p5,p6,p7,p8,p9,’TEXT DATA’ Parameters Command Specific Data Command 3) Each command line must be terminated with a ‘CR’(0Dh, 13) + ‘LF’(0Ah,10).
Metapace L-1 / L-2 2. Detail Description 2-1 Commands for Designing a Label These commands are used to design a label by providing text, barcode, line, box… and to print content of image buffer on media. 1) T Draw Text String on the image buffer.
Metapace L-1 / L-2 2-1-1 T (Text String) Description Draw text string on the image buffer Syntax Tp1,p2,p3,p4,p5,p6,p7,p8,p9(,p10),’DATA’ Parameters p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] p3 : Font selection Width × Height(dots) Value Font Size(pt) 9 ×...
Page 13
Metapace L-1 / L-2 p9 : Bold N : Normal B : Bold p10 : Text Alignment(Optional) F : p1 means the position of the first character in text string - Left alignment L : p1 means the position of the last character in text string - Right alignment R: Write text sting form right to left.
Page 14
Metapace L-1 / L-2 Example SM20,20 T26,20,0,0,0,0,0,N,N,’Font- 6 pt’ T26,49,1,0,0,0,0,N,N,’Font - 8 pt’ T26,81,2,0,0,0,0,N,N,’Font - 10 pt’ T26,117,3,0,0,0,0,N,N,’Font - 12 pt’ T26,156,4,0,0,0,0,N,N,’Font - 15 pt’ T26,200,5,0,0,0,0,N,N,’Font - 20 pt’ T26,252,6,0,0,0,0,N,N,’Font - 30 pt’ Result Font – 6 pt Font – 8 pt Font –...
Metapace L-1 / L-2 2-1-2 V (Text String Vector Font) Description Draw text (Vector Font) string on the image buffer Syntax Vp1,p2,p3,p4,p5,p6,p7,p8,p9,p10,p11,p12, ’DATA’ Parameters p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] p3 : Font selection...
Page 16
Metapace L-1 / L-2 p12: Text string write direction 0: Write text string form left to right (METAPACE) 1: Write text string form right to left (ECAPATEM) ‘DATA’: The various data types can be used in the data field as follows.
Page 17
Metapace L-1 / L-2 Example V50,100,U,25,25,+1,N,N,N,0,L,0,'Vector Font Test' V50,200,U,35,35,-1,N,N,N,0,L,0,'Vector Font Test' V50,300,U,35,35,+1,B,R,I,0,L,0,'Vector Font Test ' V50,400,U,45,25,+1,N,N,N,0,L,0,'Vector Font Test' V50,500,U,25,45,+1,N,N,N,0,L,0,'Vector Font Test' V50,700,U,65,65,+1,N,N,N,0,L,0,'ABCDEFGHIJKLMNO' V50,900,U,65,65,+1,N,N,N,0,L,0,'abcdefghijklmno' Result - 17 - Rev. 1.00...
Metapace L-1 / L-2 2-1-3 B1 (1 Dimensional bar code) Description Draw 1D Barcode on the image buffer Syntax B1p1,p2,p3,p4,p5,p6,p7,p8(,p9),’DATA’ Parameters p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] p3 : Barcode selection Barcode Barcode Code39...
Page 19
Metapace L-1 / L-2 ♣ Quiet zone is added to the front and end of the barcode for safe scanning. Because of the quiet zone, the barcode seems to be seen drawn in incorrect position. If p9 is not used, the printer automatically sets parameter to 0.
Metapace L-1 / L-2 2-1-4 B2 (2 Dimensional bar code) Description Draw 2D Barcode on the image buffer Syntax B2p1,p2,p3……’DATA’ Parameters p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] p3 : 2D barcode selection 2D Barcode...
Page 21
CARRIER MESSAGE ENCODING. THIS IS AN 84 CHAR MSG’ 2)Mode 2 B2200,200,M,2,’999,840,06810,7317,THIS IS A TEST OF METAPACE LABEL PRINTER Metapace L-1. MODE 2 ENCODING. THIS IS AN 84 CHAR.’ 3)Mode3 B2200,200,M,3,’999,056,B1050,7317,THIS IS A TEST OF METAPACE LABEL PRINTER Metapace L-1. MODE 3 ENCODING. THIS IS AN 84 CHAR.’...
Page 22
: Bar Height : 4 ~ 99 p12 : Rotation Value Rotation No Rotation 90 degrees 180 degrees 270 degrees ‘DATA’ : ASCII data or Binary data. Example B2100,750,P,30,5,0,0,1,1,3,10,0,’ METAPACE Label Printer Metapace L-1’ // The position is (100,750) - 22 - Rev. 1.00...
Page 23
Metapace L-1 / L-2 QR Code(When p3 is Q) p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] p3 : Q (means ‘QR Code’) p4 : MODEL selection 1 : MODEL1 2 : MODEL2 p5 : ECC Level...
Metapace L-1 / L-2 2-1-6 BD (Block Draw) Description Draw Line, Block, Box & Slope on the image buffer Syntax BDp1,p2,p3,p4,p5(,p6) Parameters p1 : Horizontal start position (X) [dot] p2 : Vertical start position (Y) [dot] p3 : Horizontal end position (X) [dot]...
Page 26
Metapace L-1 / L-2 Example 1) Start and end position (p1,p2) (p3,p4) 2) Overwriting mode(when p5 is O) 3) Exclusive OR mode(when p5 is E) 4) Delete block mode(when p5 is D) - 26 - Rev. 1.00...
Metapace L-1 / L-2 2-1-8 CS (Character Set selection) Description To select international character set and code table. Syntax CSp1,p2 Parameters p1 : International Character Set Country U.S.A France Germany Denmark I Sweden Italy Spain I Norway Denmark II Japan...
Page 30
Metapace L-1 / L-2 p2 : Code Pages Code Table Language CP437 U.S.A CP850 Latin1 CP 852 Latin2 CP 860 Portuguese CP 863 Canadian French CP 865 Nordic WCP 1252 Latin I European CP 865 + WCP 1252 Combined CP 857...
Page 31
Metapace L-1 / L-2 International Character Set Country Hex 23h 40h 5Bh 5Eh 60h 7Bh 125 126 U.S.A $ France à ° ç § é ù è ¨ $ Germany § Ä Ö Ü ä ö ü β $ U.K.
Metapace L-1 / L-2 2-1-9 P (Print) Description Let the printer start printing the content of image buffer Syntax Pp1,[p2] Parameters p1 : Number of label sets : 1 ~ 65535 p2 : Number of copies of each label : 1 ~ 65535 ♣...
Page 33
Metapace L-1 / L-2 Example (1) In case of Using P ( P is used outside of template sequence) TS’TPL_TST1’ // Start Template Store SV00,15,N,’Model Name :’ // Declare variable V00 T50,100,3,1,1,0,0,N,N,’Model Name :’V00 // T command with variable // End Template Store TR’TPL_TST1”...
Metapace L-1 / L-2 2-2 Media & Buffer Related Commands 1) ST Select Thermal Direct/Transfer Printing. 2) SM Set marginal value in label(Image buffer) 3) SF Set back-feed option. 4) SL Set label(Image buffer) length 5) SW Set label(Image buffer) width...
Metapace L-1 / L-2 2-2-1 ST (Set Printing Type) Description Select Thermal Direct Printing or Thermal Transfer Printing. Syntax STp1 Parameters p1 : Direct Thermal / Thermal Transfer - d : Direct Thermal - t : Thermal Transfer 2-2-2 SM (Set Margin) Description Set marginal value of the image buffer.
Page 36
Metapace L-1 / L-2 ** When printing orientation is from top to bottom Image Buffer New Image Buffer (0,0) : Origin (p1,p2) : New Origin virtual (0,0) Label Feeding Direction ** When printing orientation is from bottom to top. Label Feeding...
Metapace L-1 / L-2 2-2-4 SL (Set Length) Description Set length of label and gap(or Black Mark) and specify media type. Syntax SLp1,p2(,p3)(,p4) Parameters p1 : Label length [dots] : Maximum 2432 dots(12 inch) ♣ Double buffering feature can be used only when label length(p1) is less than 1216(2432/2, 6inch) dots.
Page 39
Metapace L-1 / L-2 ♣ In the Gap Mode, the printer will form feed until meeting the next gap. ♣ In the Continuous Mode, the printer will form feed as much as label length set by SL. ♣ In the B/M Mode, the printer will form feed until meeting the next B/M.
Page 40
Metapace L-1 / L-2 Example – p3(Media Type) 1. Gap Type 2. Continuous Type 3. Black Mark Type Example – p4(Offset Lenght) Black Mark p4 : Offset Length Perforation Line - 40 - Rev. 1.00...
: Label width [dots] ♣ The default value of label width is 4.1 inch( 832 dots) and that is the maximum printable width. ♣ Metapace L-1 is the center aligned printer and media is positioned in the center of the head. Example...
Metapace L-1 / L-2 2-3 Printer Setting Commands 1) SS Set printer speed 2) SD Set printing density 3) SO Set printing orientation 4) SP Set serial port - 43 - Rev. 1.00...
Metapace L-1 / L-2 2-3-3 SO (Set Orientation) Description Set printing direction Syntax SOp1 Parameters p1 : Printing direction T : Print from top to bottom(default) B : Print from bottom to top Example // Print from top of the image buffer to bottom.
Metapace L-1 / L-2 2-3-4 SP (Set Port) Description Set serial port. Syntax SPp1,p2,p3,p4 Parameters p1 : Baud rate Value Baud Rate(bps) 9,600 19,200 38,400 57,600 115,200 p2 : Parity Value Parity Odd parity Even parity No parity(Default) p3 : Number of data bits...
Metapace L-1 / L-2 2-3-5 SA (Set Offset) Description Save (set) offset length between black marks (or gap) and dotted lines [dots] Syntax SAp1 Parameters p1 : -100~100 ♣ Offset values saved via the use of SA commands are stored permanently on the printer.
Metapace L-1 / L-2 2-4 Variable Related Commands 1) SC Counters which is used in template sequence 2) AC(Auto Counter) Counters which is used in normal commands sequence (outside of template sequence) 3) SV Set variable 4) ? Get data for counter and variable...
Metapace L-1 / L-2 2-4-1 SC (Set Counter) Description Define one counter of total 10 counters. Counters must be used in Template sequence and execute consecutive auto-numbering function. Syntax SCp1,p2,p3,p4,’Prompt’ Parameters p1: Identity of Counter : 0 ~ 9 ♣ Total 10 counters, from C0 to C9, are provided.
Metapace L-1 / L-2 2-4-2 AC (Auto Counter) Description Define one counter of total 10 counters. Counters can be used in normal mode(not in Template) and execute consecutive auto- numbering. Syntax ACp1,p2,p3,’Start Value’ Parameters p1 : Identity of Counter : 0 ~ 9 ♣...
Metapace L-1 / L-2 2-4-3 SV (Set Variable) Description Define variables for the text or barcode ‘data’ fields. Syntax SVp1,p2,p3,’Prompt’ Parameters p1 : Identity of Variables : 00 ~ 99 p2 : Maximum number of characters : 1 ~ 99...
Metapace L-1 / L-2 2-4-4 ? (Get Variables) Description Use this command to get the content of variables or counters Syntax Content of variable ♣ Data must be entered in ascending order Example TS’Template1’ // Template Store Start SV00,20,N’Enter Company Name : ’...
Metapace L-1 / L-2 2-4-5 PV (Print with Variables) Description This command is used in template sequence. The parameters are given by variables. Syntax PVp1,[p2] Parameters p1 : Number of label sets : 1 ~ 65535 p2 : Number of copies of each label : 1 ~ 65535 Example TS’Template1’...
Metapace L-1 / L-2 2-5 Template Related Commands Template(a certain format of label, sequence of SLCS commands) related commands 1) TS Indicate start of template sequence store. 2) TE Indicate end of template sequence store. 3) TR Recall and reuse stored template.
Metapace L-1 / L-2 2-5-1 TS (Template store Start) Description Start template sequence storing. All the contents following ‘TS’ are stored in memory until meeting ‘TE’ Command. Syntax TS’Template name’ Parameters ‘Template name’: This name will be used when ‘Recall’ the stored template.
Metapace L-1 / L-2 2-5-3 TR (Template Recall) Description Recall the stored template from memory to make a label and print that. Syntax TR’Template name’ Parameters ‘Template name’ : Indicate the template to be recalled. ♣ The name is allowed to be up to 10 characters long.
Metapace L-1 / L-2 2-5-4 TD (Template Delete) Description Delete stored template from memory Syntax TD’Template name’ Parameters ‘Template name’ : Indicate the template to be deleted. ♣ The name is allowed to be up to 10 characters long. ♣ The ‘Template name’ is Case Sensitive.
Metapace L-1 / L-2 2-6 Image Related Commands These commands provide functions to download and print graphic data. PCX and BMP format file are supported and bitmap image data can be printed directly. 1) IS Download PCX format image data to NV(Non Volatile) area of memory.
Metapace L-1 / L-2 2-6-1 IS (Image Store) Description Download PCX format Image file into the Printer Memory Syntax ISp1,’Image name’DATA OF *.PCX Parameters p1 : The size of image file in unit of byte. ‘Image name’ : This is the name that will be used when recalling the stored image data.
Metapace L-1 / L-2 2-6-3 ID (Image Delete) Description Delete stored image from memory Syntax ID’Image name’ Parameters ‘Image name’ : Indicate the Image in memory to be deleted. ♣ The name is allowed to be up to 10 characters long.
Page 61
Metapace L-1 / L-2 2-6-5 LD Draw bitmap image data on specific position of image buffer. Syntax LDxL xH yL yH dhL dhH dvL dvH d1~dk Parameters xL : Low byte of horizontal start position (X) [dot] xH : High byte...
Page 62
Metapace L-1 / L-2 Example LD 0x11 0x02 0x40 0x02 0x08 0x00 0x20 0x00 0xFF ~ 0xFF ① ② ③ ④ ⑤ x position : 0x02 * 0x100(256) + 0x11 = 0x211(529) ① y pos ition : 0x02 * 0x100(256) + 0x40 = 0x240(576) ②...
Metapace L-1 / L-2 2-6-6 BMP Send BMP format file directly to printer. Just white/black BMP file is supported Syntax BMPp1,p2↓ Data string of *.bmp Parameters p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] ↓ means ‘CR(+LF)’...
Metapace L-1 / L-2 2-7 Downloadable font Related Commands Download fonts into the printer memory. Users can download special size or special design of ASCII font and use this font with T command. 1) DT Download True Type Font into Printer Memory...
Metapace L-1 / L-2 2-7-1 DT (Download True Type Font) Description Download windows system font into printer memory. Syntax DTp1,p2,’Font Name’ a (DATA (DATA )…a (DATA Parameters p1 : Total number of characters to be downloaded: 0~255 p2 : Font Height: 0~255...
Metapace L-1 / L-2 2-7-2 DD (Downloaded font Delete) Description Delete downloaded font from memory Syntax DD’font name’ Parameters ‘font name’ : Indicate the Image in memory to be deleted.(A~Z) ♣ This name is Case Sensitive. ♣ By using *, all images in memory will be deleted.
Metapace L-1 / L-2 2-7-3 DI (Downloaded font Information) Description Print list of downloaded font. Syntax Example Result Download Font Information ============================= Name Size ============================= 6400 10752 Free Memory 179419 ============================= ♣ w : font width, h : font height, c: total number of characters - 67 - Rev.
Metapace L-1 / L-2 2-8 The Others Commands not included in 1 to 7 categories. 1) @ Printer initialization 2) PI Print information of printer configuration 3) CUT Enable/Disable Cutting Action 4) ^cp Check printer status and report 2bytes status data to host.
Metapace L-1 / L-2 2-8-4 ^cp (Check Printer Status and Report 2 bytes) Description Check printer status and report 2bytes status data to host. Syntax Return Value 1. Format <1 Byte> <2 Byte> 2. Table Return Values Description Byte Paper Empty...
Metapace L-1 / L-2 2-8-5 ^cu (Check Printer Status and Report 1 byte) Description Check printer status and report 1 byte status data to host. Syntax Return Value 1. Format <1 Byte> 2. Table Return Values Description Byte Paper Empty...
℃ Return Value Format Items Return Format Example Model Name Character String + 0x0d + 0x0a “Metapace L-1” + 0x0d + 0x0a Model Type Disabled F/W Version Character String + 0x0d + 0x0a “1.23” + 0x0d + 0x0a TPH temperature Character String + 0x0d + 0x0a “85”...
Metapace L-1 / L-2 3. Programming Example 3-1 Example) T_resident // Set Speed to 4 ips SD20 // Set Density level to 20 SW800 // Set Label Width 800 // Set Printing Orientation from Top to Bottom T26,20,0,1,1,0,0,N,N,’Font - 6 pt’...
Metapace L-1 / L-2 3-3 Example) V_resident // Set speed to 4 ips SD20 // Set density to 20 SW800 // Set label width to 800 // Set printing direction to from top to bottom V50,100,U,25,25,+1,N,N,N,0,L,0,'Vector Font Test' V50,200,U,35,35,-1,N,N,N,0,L,0,'Vector Font Test'...
Metapace L-1 / L-2 3-5 Example) Code39 SM10,0 B178,196,0,2,6,100,0,0’1234567890’ // Caution : The position is not (178,196) but (78,196). B150,468,0,4,10,200,0,0’1234567890’ Result - 78 - Rev. 1.00...
Metapace L-1 / L-2 3-6 Example) BD1 // Set Speed to 4 ips SD20 // Set Density level to 20 SW800 // Set Label Width to 800 BD50,50,750,500,B,20 T100,150,5,1,1,0,0,N,N,’Normal Mode’ T100,300,5,1,1,0,0,R,N,’Reverse Mode’ Result Normal Mode Reverse Mode - 79 -...
Metapace L-1 / L-2 3-7 Example) BD3 // Set Printing Speed to 4 ips SD20 // Set Printing Density level to 20 SW800 // Set Label Width to 800 BD50,100,400,150,O // Draw a block in Overwriting Mode BD50,200,400,250,O BD50,300,400,350,O BD100,50,150,400,E...
Page 81
Metapace L-1 / L-2 Result TEST NORMAL NORMAL - 81 - Rev. 1.00...
Metapace L-1 / L-2 3-12 Example) TEST00_TS TD’Test00’ // Template Delete TS’ Test00’ // Start Template Store SV00,15,N,’Manufacturer :’ // Declare variable V00, field size:15, No justification SV01,15,R,’Model Name :’ Declare variable V01, field size:15, Right justification T50,100,3,1,1,0,0,N,N,’Manufacturer :’V00 // Print variable V00 with some text string T50,150,3,1,1,0,0,N,N,’Model Name :’V01 // Print variable V01 with some text string...
Metapace L-1 / L-2 3-13 Example) TEST00_TR TR’Test00’ // Recall Stored template ‘Test00’ // To get contents for variables used in ‘Test00’ // Content for V00 Metapace L-1 // Content for V01 // Print Result Manufacturer : SEM No Justification...
Metapace L-1 / L-2 3-14 Example) TEST04_TS TS’Test04’ // Start Template Store // Clear Image Buffer // Set Speed to 4 ips SD20 // Set Density level 20 SW800 // Set Label Width to 800 // Set Printing Orientation from Top to Bottom(Default) SV00,15,L,’prompt’...
Metapace L-1 / L-2 3-15 Example) TEST04_TR TR’Test04’ // Recall Template // Start Get values for variables // data for variable V00 // data for variable V00 Metapace L-1 : E Metapace L-1 : Metapace L-1 : // data for variable V07...
Metapace L-1 / L-2 3-17 Example) TEST10_TS TS’Test10’ // Start Template Store // Clear Image Buffer // Set Speed to 5 ips SD20 // Set Density to 20 SW800 // Set Label Width to 800 // Set Printing Orientation from Top to bottom SV00,15,C,’prompt’...
Metapace L-1 / L-2 3-19 Example) TEST11_TS TS’Test11’ // Start Template Store // Clear Image Buffer // Set Printing Speed to 4 ips SD20 // Set Density to 20 SW800 // Set Label Width to 800 // Set Printing Orientation from Top to Bottom SC0,4,L,+1,’COUNTER1’...
Need help?
Do you have a question about the L-1 and is the answer not in the manual?
Questions and answers