Programming Manual SLCS Rev. 1.24 SRP-770 / 770II / 770IIE SLP-T400 / T400E SLP-T403 / T403E SLP-D400 / D400E SLP-D403 / D403E SLP-T400R / T403R http://www.bixolon.
SLCS Programming Manual ■ Table of Contents 1. Foreword ........................................................................................................................4 1-1 Image Buffer Configuration .....................................................................................5 1-2 Information for calculating position on image buffer............................................6 1-3 Command List.................................................................................................
SLCS Programming Manual 2-6 Image Related Commands .....................................................................................59 2-6-1 IS (Image Store) .................................................................................................60 2-6-2 IR (Image Recall)................................................................................................60 2-6-3 ID (Image Delete) ...............................................................................................
SLCS Programming Manual 1. Foreword 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 BIXOLON Label Printers.. We at BIXOLON maintain ongoing efforts to enhance and upgrade the functions and quality of all our products. In following, product specifications and/or user manual content may be changed without prior notice. Rev. 1.
SLCS Programming Manual 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) × 0.125mm(H) (203dpi) 832 dots(104mm = 4inch) … . . . . … . … Image Buffer Rev. 1.24 -5- 1216 dots(152mm = 6inch) . . .
SLCS Programming Manual 1-2 Information for calculating position on image buffer 1) Relation between position and number of dots Inch mm dots 0.04 1 8 0.40 1.00 1.25 1.50 1.75 2.00 2.25 10.00 25.40 31.75 38.10 44.45 50.80 57.15 80 203 254 305 355 406 457 2.50 63.50 508 2.75 69.85 556 3.00 76.20 610 4.00 101.6 813 2) Font Information Font name 0 1 2 3 4 5 6 7 8 9 Korean a Korean b Korean c Korean d Korean e Korean f GB2312 m BIG5 n Vector Rev. 1.
SLCS Programming Manual 3) Example of text and barcode Direction of x axis (0.0) Direction of y axis (124 , 160) (503 , 160) BIXONOL SRP770 (124 , 356) 4) Example of rotation Direction of x axis (0.0) Start Position 0° Start Position 90° Direction ABCD ABCD of y axis ABCD Start Position 270° Rev. 1.
SLCS Programming Manual 1-3 Command List Command Description Remarks 1.
SLCS Programming Manual Command Description Remarks 5. Template Related Commands TS Template store Start TE Template store End TR Template Recall TD Template Delete TI Template Information All contents between these commands are saved in printer memory Load and reuse the stored Template Delete stored Template from printer memory Print the list of currently stored Templates 6.
SLCS Programming Manual 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). 4) The commands which draw text, barcode, lines… just draw on the image buffer, they do not start printing. The printer will start printing when the P command comes.
SLCS Programming Manual 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. 2) V Draw Text (Vector Font) String on the image buffer. 3) B1 Draw 1D Barcode on the image buffer. 4) B2 Draw 2D Barcode on the image buffer. 5) B3 Draw Special Barcode on the image buffer. 6) BD Draw Line, Block, Box & Slope on the image buffer.
SLCS Programming Manual 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 Value Font Size(pt) Width × Height(dots) 0 1 2 3 4 5 6 7 8 9 a b c d e f m n j 6 8 10 12 15 20 30 14 18 24 KOREAN 1 KOREAN 2 KOREAN 3 KOREAN 4 KOREAN 5 KOREAN 6 GB2312 BIG5 Shift JIS 9 × 15 12 × 20 16 × 25 19 × 30 24 × 38 32 × 50 48 × 76 22 × 34 28 × 44 37 × 58
SLCS Programming Manual 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. (BIXOLON → NOLOXIB) ♣ This parameter is for alignment of text lines. ‘DATA’ : The various data types can be used in the data field as followings.
SLCS Programming Manual 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’ P1 Result Font – 6 pt Font – 8 pt Font – 10 pt Font – 12 pt Font – 15 pt Font – 20 pt Font – 30 pt Rev. 1.
SLCS Programming Manual 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 U: ASCII (1Byte code) K: KS5601 (2Byte code) B: BIG5 (2Byte code) G: GB2312 (2Byte code) J: Shift-JIS (2Byte code) p4 : Font width (W)[dot] p5 : Font height (H)[dot] p6 : Right-side character spacing [dot] Plus (+)/Minus (-) option ca
SLCS Programming Manual p12: Text string write direction 0: Write text string form left to right (BIXOLON) 1: Write text string form right to left (NOLOXIB) ‘DATA’: The various data types can be used in the data field as follows. 1) Fixed text string: ‘Text String’ 2) Variables declared in template by SV command: Vnn 3) Counters declared by the SC command: Cn ♣ 1), 2), and 3) can be mixed together.
SLCS Programming Manual 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' P1 Result Rev. 1.
SLCS Programming Manual 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 p3 0 1 2 3 4 Barcode Code39 Code128 I2of5 Codabar Code93 p3 5 6 7 8 9 p4 : Narrow bar width [dot] p5 : Wide bar width [dot] p6 : Bar code height [dot] p7 : Rotation Value 0 1 2 3 Rotation No Rotation 90 degrees 180 degrees 270 degrees p8 : HRI (Human
SLCS Programming Manual ♣ 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. Quiet zone with = p9 × narrow bar width(p4) ‘DATA’ : The various data types can be used in the data field as followings.
SLCS Programming Manual Example SM20,20 //Caution:The position is not (178,196) but B178,196,0,2,6,100,0,0,’1234567890’ (78,196) B150,468,0,4,10,200,0,0,’1234567890’ P1 Result Rev. 1.
SLCS Programming Manual 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 p3 M P Q D 2D Barcode MaxiCode PDF417 QR Code Data Matrix ♣♣ Following parameters (p4, p5 …. ,Data) are barcodes-specific. See the following pages for details of each 2D barcodes. Rev. 1.
SLCS Programming Manual Maxicode(When p3 is M) p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] p3 : M (means ‘Maxicode’) p4 : Mode selection p4 0 2 3 4 Rotation Mode0 Mode2 Mode3 Mode4 ‘DATA’ : Data format is dependent on ‘Mode’ Mode 0 2 or 3 4 Data Format ‘cl,co,pc,lpm’ ‘lpm’ cl : Class Code(3 digits) co : Country Code(3digits) Mode2 : Numeric Characters Mode3 : International Characters pc : Postal Code lpm : Low priority message(data) Example 1)Mode 0 B2200,200,M,0,’999,840,06810,
SLCS Programming Manual PDF417(When p3 is P) p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] p3 : P (means ‘PDF417’) p4 : Maximum Row Count : 3 ~ 90 p5 : Maximum Column Count : 1 ~ 30 p6 : Error Correction level p6 0 1 2 3 4 5 6 7 8 EC Level 0 1 2 3 4 5 6 7 8 EC Codeword 2 4 8 16 32 64 128 256 512 p7 : Data compression method p7 0 1 2 Data Type Text Numeric Binary Compression 2 Characters per codeword 2.93 Characters per codeword 1.
SLCS Programming Manual 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 p6 L M Q H Recovery Rate 7% 15% 25% 30% p6 : Barcode Size : 1~4 p7 : Rotation Value 0 1 2 3 Rotation No Rotation 90 degrees 180 degrees 270 degrees ‘DATA’ : ASCII data or Binary data.
SLCS Programming Manual 2-1-5 B3 (Special Barcode) Description Draw Special Barcode on the image buffer Syntax B3p1,p2,p3……’DATA’ Parameters p1 : Horizontal position (X) [dot] p2 : Vertical position (Y) [dot] p3 : Special barcode selection p3 I Special Barcode IMB(Intelligent Mail Barcode) ♣♣ Following parameters (p4, p5 …. ,Data) are barcodes-specific. See the following pages for details of each special barcodes.
SLCS Programming Manual 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] p4 : Vertical end position (Y) [dot] p5 : Options p5 O E D S B Type Line Overwriting Line Exclusive OR Line Delete Slope(a oblique line) Box Additional p6 Not necessary Not necessary Not necessary Thickness Thickness ♣ If p5 is S or B, the
SLCS Programming Manual 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) Rev. 1.
SLCS Programming Manual 5) Slope block mode(when p5 is S) (p1,p2) p6 : Thickness (p3,p4) 6) Draw box mode(when p5 is B) (p1,p2) p6 : Thickness (p3,p4) Rev. 1.
SLCS Programming Manual 2-1-7 CD (Circle Draw) Description Draw Circle on the image buffer Syntax CDp1,p2,p3,p4 Parameters p1 : Horizontal start position (X) [dot] p2 : Vertical start position (Y) [dot] p3 : Circle Size Selection Value 1 2 3 4 5 6 Width × Height(dots) 40 × 40 56 × 56 72 × 72 88 × 88 104 × 104 168 × 168 Diameter (mm) 5 7 9 11 13 21 p4 : Multiplier : 1 ~ 4 Example CD100,200,2,1 (100,200) Circle size(diameter is 7mm) Rev. 1.
SLCS Programming Manual 2-1-8 CS (Character Set selection) Description To select international character set and code table. Syntax CSp1,p2 Parameters p1 : International Character Set p1 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Rev. 1.24 Country U.S.A France Germany U.
SLCS Programming Manual p2 : Code Pages p2 0 1 2 3 4 5 6 Code Table CP437 CP850 CP 852 CP 860 CP 863 CP 865 WCP 1252 7 CP 865 + WCP 1252 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 CP 857 CP 737 WCP 1250 WCP 1253 WCP 1254 CP 855 CP 862 CP 866 WCP 1251 WCP 1255 CP 928 CP 864 CP 775 WCP1257 CP858 Language U.S.
SLCS Programming Manual International Character Set 5C 5D 5Eh 60h 5Bh h h 91 92 93 94 96 123 7C h 123 7D h 125 126 ` { | } ~ ^ ` é ù è ¨ Ü ^ ` ä ö ü β \ ] ^ ` { | } ~ Æ Ø Å ^ ` æ ø å ~ É Ä Ö Å Ü é ä ö å ü $ @ ° \ é ^ ù à ò è ì ₧ $ @ і Ñ ¿ ^ ` ¨ ñ } ~ Norway # ¤ É Æ Ø Å Ü é æ ø å ü Denmark II # $ É Æ Ø Å Ü é æ ø å ü Japan # $ @ [ ¥ ] ^ ` { | } ~ Spain II # $ á ¡ Ñ ¿ é ` í ñ ó ú Latin A
SLCS Programming Manual 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 ♣ The P command cannot be used in a template sequence. If printing command is needed in template sequence, then use the PV command(See the example of next page). ! Caution The ‘P’ command should be terminated by ‘CR’(0x0d).
SLCS Programming Manual 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 TE // End Template Store TR’TPL_TST1” // Recall stored template ‘TPL_TST1’ ? // Get content of variable used in recalled template SRP770 // Content of variable V00 P3,2 // when using P command, It must not be inside template, // but be used after
SLCS Programming Manual 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 6) SB Set buffer mode(Enable or disable Double Buffering) 7) CB Clear Image Buffer Rev. 1.
SLCS Programming Manual 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. This command moves the origin point (0,0) to (p1,p2) and make (p1,p2) become the new origin.
SLCS Programming Manual ** 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 Direction virtual (0,0) New Origin : (p1,p2) Rev. 1.
SLCS Programming Manual 2-2-3 SF (Set Back-Feed Option) Description Set back-feed option. This command decides whether printer does back-feed action before starting printing. Syntax SFp1(,p2) Parameters p1 : Enable/Disable - 0 : Disable back-feed option. - 1 : Enable back-feed option(Default) p2 : Back feeding step quantity. - This parameter is valid when p1 is 1. - The step quantity defined by user can’t exceed printer’s default feeding quantity. - 0 means printer’s default feeding quantity.
SLCS Programming Manual 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. ♣ If p1 is over 1216 dots, the double buffering feature will be automatically released. ♣ So if you don’t use double buffering feature, you can design maximum 2432 dots(12 inch) size label.
SLCS Programming Manual Example – p1 & p2(Length) SL406,20 // Set label length to 406 dots (2 inch, 50mm) and gap length to 20 dots(2.5mm) p1 (In this example,406) P2 (In this example,20) Rev. 1.
SLCS Programming Manual Example – p3(Media Type) 1. Gap Type 2. Continuous Type Example – p4(Offset Lenght) Black Mark p4 : Offset Length Perforation Line Rev. 1.24 - 41 - 3.
SLCS Programming Manual 2-2-5 SW (Set Width) Description Set label width. Resize the image buffer to match the label size. Syntax SWp1 Parameters p1 : Label width [dots] ♣ The default value of label width is 4.1 inch( 832 dots) and that is the maximum printable width. ♣ SRP770 is the center aligned printer and media is positioned in the center of the head.
SLCS Programming Manual 2-2-6 SB (Set Buffer mode) Description Set double buffer mode Syntax SBp1 Parameters p1 : Enable ‘Double Buffering’ function. 0 : Disable double buffer mode 1 : Enable double buffer mode(Default) ♣ Double buffering feature enables the printer to construct the image buffer for the next label while printing the current label. ♣ Double buffering feature can be used only if the label length set by SL is less than half of the maximum label length.
SLCS Programming Manual 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 5) SA Set Offset 6) TA Set Tear-off/Cut Rev. 1.
SLCS Programming Manual 2-3-1 SS (Set Speed) Description Set print speed Syntax SSp1 Parameters p1 : Speed set value Value 0 1 2 3 4 5 6 Speed 2.5 ips 3.0 ips 4.0 ips 5.0 ips 6.0 ips 7.0 ips 8.0 ips 2-3-2 SD (Set Density) Description Set printing density Syntax SDp1 Parameters p1: Density Level - 0 ~ 20 (0 is the lowest density) Rev. 1.
SLCS Programming Manual 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 SOT // Print from top of the image buffer to bottom. SOB // Print from bottom of the image buffer to top. Printing Direction 1. SOT (Print from Top to Bottom) Rev. 1.24 2.
SLCS Programming Manual 2-3-4 SP (Set Port) Description Set serial port. Syntax SPp1,p2,p3,p4 Parameters p1 : Baud rate Value Baud Rate(bps) 0 9,600 1 19,200 2 38,400 3 57,600 4 115,200 Value Parity O Odd parity E Even parity N No parity(Default) p2 : Parity p3 : Number of data bits Value Data bits 7 7 bit 8 8 bits (Default) p4 : Number of stop bits Rev. 1.
SLCS Programming Manual 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. (Offset values saved via the cf. SL command are reset after the power is turned off.) 2-3-6 TA (Tear-off/Cutter Position Setting) Description This function regulates the label cutting location After printing.
SLCS Programming Manual 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 5) PV Print with variables Rev. 1.
SLCS Programming Manual 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.
SLCS Programming Manual 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 autonumbering. Syntax ACp1,p2,p3,’Start Value’ Parameters p1 : Identity of Counter : 0 ~ 9 ♣ Total 10 counters, from C0 to C9, are provided. p2 : The size of the field which displays the content of counter : 1 ~ 27 p3 : Step Value : ±1 ~ ±9 ♣ + or – symbol must precede .
SLCS Programming Manual 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 p3 : Justification in field(Field size is p2) Value N R L C Justification No Right Left Center ‘Prompt’ : This ASCII text field is used to ask a value to be entered for the variable(p1) and is transmitted to the host by serial interface.
SLCS Programming Manual 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 : ’ // Declare(Set) variable V00 SV01,15,N’Enter Product Code :’ // Declare(Set) variable V01 T50,30,3,1,1,0,0,N,N,V00 // Use T command to print V00 T50,150,3,1,1,0,0,N,N,’Code : ’V01 // Use T command to print V01 TE // Template S
SLCS Programming Manual 2-4-5 PV (Print with Variables) Description This command is used in template sequence. The parameters are given by variables.
SLCS Programming Manual 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. 4) TD Delete stored template. 5) TI Print the list of all templates stored in memory. Rev. 1.
SLCS Programming Manual 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. ♣ The name is allowed to be up to 10 characters long. ♣ The ‘Template name’ is Case-Sensitive. ♣ TI command shows the list of currently stored Templates.
SLCS Programming Manual 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. ♣ The ‘Template name’ is Case-Sensitive. Example TR’Template1’ // Recall ‘Template1’ ♣ If recalled Template does not include any variable or counter, just ‘P’ command is enough to start printing.
SLCS Programming Manual 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. ♣ By using *, all templates will be deleted from memory.
SLCS Programming Manual 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. 2) IR Recall and print downloaded image data. 3) ID Delete image data in NV memory. 4) II Print all images stored in memory. 5) LD Draw the bitmap image data directly on specific position on image buffer.
SLCS Programming Manual 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. ♣ The name is allowed to be up to 10 characters long. ♣ The name is case sensitive. DATA OF *.PCX : Binary data string of PCX file.
SLCS Programming Manual 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. ♣ This name is Case Sensitive. ♣ By using *, all images in memory will be deleted.
SLCS Programming Manual 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 of horizontal start position (X) [dot] → Start position in x direction = xH * 256 + xL yL : Low byte of vertical start position (Y) [dot] yL : High byte of vertical start position (Y) [dot] → Start position in y direction = yH * 256 + yL dhL : Low byte of the number of bytes in x-direction.
SLCS Programming Manual Example LD 0x11 0x02 0x40 0x02 0x08 0x00 0x20 0x00 0xFF ~ 0xFF ① ② ③ ④ ⑤ ① x position : 0x02 * 0x100(256) + 0x11 = 0x211(529) ② y position : 0x02 * 0x100(256) + 0x40 = 0x240(576) ③ horizontal data number : 0x00 * 0x100(256) + 0x08 = 0x08(8) ④ vertical data number : 0x00 * 0x100(256) + 0x20 = 0x20(32) ⑤ bitmap data : total number = 8 * 32 = 256 (①, ②) ④ ③ Rev. 1.
SLCS Programming Manual 2-6-6 LC Draw compression bitmap image data on specific position of image buffer Syntax LCp1p2xL xH yL yH dhL dhH dvL dvH d1~dk Parameters p1: Compression type R: RLE p2: Color 0x00: black 0x01: Color(red or blue) xL : Low byte of horizontal start position (X) [dot] xH : High byte of horizontal start position (X) [dot] → Start position in x direction = xH * 256 + xL yL : Low byte of vertical start position (Y) [dot] yH : High byte of vertical start position (Y) [dot] → Start positio
SLCS Programming Manual Example LC R 0x00 0x11 0x02 0x40 0x02 0x08 0x00 0x20 0x00 0xFF ~ 0xFF 1 ○ 2 3 4 5 6 7 ○ ○ ○ ○ ○ ○ ①Compression type : R =RLE ②Color : 0x00 = Black ③x position : 0x02 * 0x100(256) + 0x11 = 0x211(529) ④y position : 0x02 * 0x100(256) + 0x40 = 0x240(576) ⑤horizontal data number : 0x00 * 0x100(256) + 0x08 = 0x08(8) 6 vertical data number : 0x00 * 0x100(256) + 0x20 = 0x20(32) ○ 7 bitmap data : total number = 8 * 32 = 256 ○ (③, ④) 6 ○ ⑤ RLE compression This is the algorithm to compres
SLCS Programming Manual 2-6-7 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] 1. ↓ means ‘CR(+LF)’ 2. There is comma(,) between p1 and p2. 3. After p2(Before sending BMP data string) ‘CR(+LF)’ must follow. Example In dos mode, COPY bmp.txt+image2.bmp+P.txt LPT1 /b Bmp.txt P.txt BMP200,200 ↓ Rev. 1.
SLCS Programming Manual 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 2) DD Delete downloaded fonts from memory 3) DI Print all downloaded fonts in memory and available memory space. Rev. 1.
SLCS Programming Manual 2-7-1 DT (Download True Type Font) Description Download windows system font into printer memory. Syntax DTp1,p2,’Font Name’ a1b1(DATA1)a2b2(DATA2)…anbn(DATAn) Parameters p1 : Total number of characters to be downloaded: 0~255 p2 : Font Height: 0~255 Font name : A ~ Z an : Character position in ASCII Table(0~255) bn : Font width(dots) (DATAn) : Character Bitmap Data Total bytes of bitmap data : p2 × (bn+7)/8 bytes Example 44 44 2a 0d 0a 44 54 60 14 27 41 27 20 0b …… a 1 b1 DD*..
SLCS Programming Manual 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. ♣ You can show the downloaded font list by DI command. Example DD’A’ // Delete downloaded font A DD* // Delete all downloaded fonts in memory Rev. 1.
SLCS Programming Manual 2-7-3 DI (Downloaded font Information) Description Print list of downloaded font. Syntax DI Example DI Result Download Font Information ============================= Name w h c Size ============================= C 16 25 128 6400 G 12 24 224 10752 Free Memory 179419 ============================= ♣ w : font width, Rev. 1.
SLCS Programming Manual 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. 5) ^cu Check printer status and report 1byte status data to host. 6) ^PI Send various printer information to host. Rev. 1.
SLCS Programming Manual 2-8-1 @ (Initialize Printer) Description Initialize the printer Syntax @ 2-8-2 PI (Printer Information) Description Print current printer setting. Syntax PI Rev. 1.
SLCS Programming Manual 2-8-3 CUT (Auto-cutter Enable/Disable) Description Enable or Disable Auto-cut action after printing by ‘P’ command. Syntax CUTp1(,p2) Parameters p1 : Cutting Action Enable/Disable y : Enable cutter to act after printing is finished. n : Disable cutter. p2 : Cutting Period ♣ Cutting Period means the number of pages between two cuttings. ♣ This command is not the cutting command itself but cutting enable/disable command.
SLCS Programming Manual 2-8-4 ^cp (Check Printer Status and Report 2 bytes) Description Check printer status and report 2bytes status data to host. Syntax ^cp Return Value 1. Format <1st Byte> <2nd Byte> 2. Table Return Values Byte bit 1st Byte 7 6 5 4 3 2 1 0 7 6 5 4 3 2 1 0 2nd Byte Description Paper Empty Cover Open Cutter jammed Thermal Head(TPH) overheat. Gap Detection Error(Auto-sensing failure) Ribbon End Error Not assigned Not assigned On building label to be printed in image buffer.
SLCS Programming Manual 2-8-5 ^cu (Check Printer Status and Report 1 byte) Description Check printer status and report 1 byte status data to host. Syntax ^cu Return Value 1. Format <1st Byte> 2. Table Return Values Byte bit 1st Byte 7 6 5 4 3 2 1 0 Rev. 1.24 Description Paper Empty Cover Open Cutter jammed Thermal Head(TPH) overheat.
SLCS Programming Manual 2-8-6 ^PI (Send Printer information to host) Description Send various printer information such as model name, firmware version, statistics data or so to host. Syntax ^PIp1(,p2)(,p3) Parameters p1 : items to be reported.
SLCS Programming Manual 3.
SLCS Programming Manual 3-2 Example) T_Rotate4 SS3 SW832 T300,500,4,1,1,0,0,N,N,’ABCDEFG’ T300,500,4,1,1,0,1,N,N,’ABCDEFG’ T300,500,4,1,1,0,2,N,N,’ABCDEFG’ T300,500,4,1,1,0,3,N,N,’ABCDEFG’ P1 Result Rev. 1.
SLCS Programming Manual 3-3 Example) V_resident SS3 // Set speed to 4 ips SD20 // Set density to 20 SW800 // Set label width to 800 SOT // 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' 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
SLCS Programming Manual 3-4 Example) V_Rotate4 SS3 SW832 V400,500,U,45,40,+1,N,N,N,0,L,0,'VECTOR FONT' V400,500,U,45,40,+1,N,N,N,1,L,0,'VECTOR FONT' V400,500,U,45,40,+1,N,N,N,2,L,0,'VECTOR FONT' V400,500,U,45,40,+1,N,N,N,3,L,0,'VECTOR FONT' P1 Result Rev. 1.
SLCS Programming Manual 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’ P1 Result Rev. 1.
SLCS Programming Manual 3-6 Example) BD1 SS3 // 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’ SOT P1 Result Normal Mode Reverse Mode Rev. 1.
SLCS Programming Manual 3-7 Example) BD3 SS3 // 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 // Draw a block in Exclusive OR mode BD200,50,250,400,E BD300,50,350,400,E BD500,200,700,400,O BD510,210,670,370,D // Draw a block in Delete mode, namely Erase block area BD100,600,350,1000,O T50,700,5,1,1,0,0,N,N,’NORMAL’ // Write Text d
SLCS Programming Manual Result NORMAL TEST NORMAL Rev. 1.
SLCS Programming Manual 3-8 Example) BD4 SW800 SM10,0 BD100,300,550,330,O // Overwrite mode BD200,200,250,430,O // Overwrite mode BD400,200,450,430,E // Exclusive OR mode P1 Result Rev. 1.
SLCS Programming Manual 3-9 Example) BD5 CB SW800 SM10,0 BD100,300,300,500,O BD400,300,700,500,B,30 // Box mode, additional parameter follows P1 Result Rev. 1.
SLCS Programming Manual 3-10 Example) Slope CB SS3 SD20 SW8000 BD100,300,300,800,S,100 // Slope mode, additional parameter follows BD600,300,400,800,S,100 P1 Result Rev. 1.
SLCS Programming Manual 3-11 Example) SW&SL CB SS3 SD20 SW800 // Set Label Width to 800 SL300,10,C // Continuous type BD0,0,800,300,B,10 T30,40,4,1,1,0,0,N,N,'SW=800, SL=300, Continuous' P1 SW600 SL500,10,C BD0,0,600,500,B,10 T30,40,4,1,1,0,0,N,N,'SW=600, SL=500' T30,100,4,1,1,0,0,N,N,'Continuous' P1 SW400 SL800,10,C BD0,0,400,800,B,10 T30,40,4,1,1,0,0,N,N,'SW=400' T30,90,4,1,1,0,0,N,N,'SL=800' T30,140,4,1,1,0,0,N,N,'Continuous' P1 Rev. 1.
SLCS Programming Manual Result SW = 800, SL=300, Continuous SW = 600, SL=500, Continuous SW= 400, SL = 800, Continuous Rev. 1.
SLCS Programming Manual 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 T50,300,3,1,1,0,0,N,N,V00 // Print variable V00 on
SLCS Programming Manual 3-13 Example) TEST00_TR TR’Test00’ // Recall Stored template ‘Test00’ ? // To get contents for variables used in ‘Test00’ SEM // Content for V00 SRP770 // Content for V01 P1 // Print Result Manufacturer : SEM Model Name : No Justification SRP770 Right Justification SEM Right Justification SRP770 Rev. 1.
SLCS Programming Manual 3-14 Example) TEST04_TS TS’Test04’ // Start Template Store CB // Clear Image Buffer SS3 // Set Speed to 4 ips SD20 // Set Density level 20 SW800 // Set Label Width to 800 SOT // Set Printing Orientation from Top to Bottom(Default) SV00,15,L,’prompt’ // Declare variable V00, field size:15, Left justification SV01,15,R,’prompt’ // Declare variable V01, field size:15, Right justification SV02,15,C,’prompt’ // Declare variable V02, field size:15, Center justificat
SLCS Programming Manual 3-15 Example) TEST04_TR TR’Test04’ // Recall Template ? // Start Get values for variables A // data for variable V00 B // data for variable V00 C . D . E . F . A C D SRP770 : E SRP770 : G H B SRP770 : // data for variable V07 F G SRP770 : H P1 // Start Printing 3-16 Example) IR1 IR130,400,’BIXOLON’ // Recall stored image data P1 // Printing !!! Use the PCXDown utility when you download the pcx image file to printer memory. Refer to IS command.
SLCS Programming Manual 3-17 Example) TEST10_TS TS’Test10’ // Start Template Store CB // Clear Image Buffer SS3 // Set Speed to 5 ips SD20 // Set Density to 20 SW800 // Set Label Width to 800 SOT // Set Printing Orientation from Top to bottom SV00,15,C,’prompt’ // Declare Variable 00 SV01,15,N,’prompt’ // Declare Variable 01 SV02,10,N,’prompt’ // Declare Variable 02 T130,250,5,1,1,0,0,R,N,V00 // Print Content of V00 T250,600,5,1,1,0,0,N,N,V01 // Print Content of V01 IR130,400,V02 // U
SLCS Programming Manual 3-19 Example) TEST11_TS TS’Test11’ // Start Template Store CB // Clear Image Buffer SS2 // Set Printing Speed to 4 ips SD20 // Set Density to 20 SW800 // Set Label Width to 800 SOT // Set Printing Orientation from Top to Bottom SC0,4,L,+1,’COUNTER1’ // Declare Counter 0, Field=4, Step:+1,Left Justi. SC1,4,N,-1,’COUNTER2’ // Declare Counter 1, Field=4, Step: -1,No Justi.
SLCS Programming Manual 3-21 Example) SLCS_BIXOLON SM10,21 SS3 SD20 SW832 SOT CS0,0 BD18,14,798,164,O T400,62,4,2,2,0,0,R,B,'BIXOLON' T65,98,3,1,1,0,0,R,B,'BIXOLON Label' T20,276,3,1,1,1,0,N,N,' BIXOLON' T20,306,3,1,1,1,0,N,N,' Yeongtong Dong' T20,336,3,1,1,1,0,N,N,' Sowon City,South Korea' T22,218,4,1,1,0,0,N,B,'SHIP TO:' BD18,410,784,415,O BD553,197,558,413,O B169,458,0,4,8,137,0,0,0,'*1234567890*' T26,421,1,1,1,0,0,N,N,'POSTAL CODE:' BD18,616,784,621,O BD20,781,786,786,O T503,798,1,1,1,0,0,N,N,'DES
SLCS Programming Manual Result Rev. 1.