About TSC Printer Templates

TSC Template

Each TSC template consists of following:

  1. A setup line.
  2. Any number of print element lines.

 

Line Format

Each "line" has the following format:

[keyword] { [parameter name] =[value] | [parameter name]=[value]}

Notice how the curly brackets are used to encapsulate the parameters and how the '|' character is used to separate parameters.

 

Setup Line

i.e. setup{Width=25.4|Height=247.142|PrintSpeed=4|PrintDensity=8|SensorType=1|VerticalGapHeight=0|ShiftDistance=0}

 

The setup line defines the printer's setup parameters in the following order:

  1. Parameter name: "width"

                Definition: The width of the media in mm.

 

  1. Parameter name: "length"

                Definition: The length of the media in mm.

 

  1. Parameter name: "printspeed"

                Definition: The printer's print speed in inches per second.

    Accepted Values: (1.0, 1.5, 2.0, 3.0, 4.0, 6.0, 8.0, 10.0, 12.0)

 

  1. Parameter name: "printdensity"

               Definition: The density of the print job.  The greater the number, the darker the printing.

    Accepted Values: (0 - 15).  

 

  1. Parameter name: "sensortype"

                  Definition: The type of sensor used to determine the beginning/ending of each label.

    Accepted Values

  • 0 indicates the vertical gap sensor is to be used.  The vertical gap sensor looks for a gap between the ending of the first label and the beginning of the second label, defined by the vertical gap height (see next parameter).
  • 1 indicates the black mark sensor is to be used.  The black mark sensor looks for a black line on the bottom of the media defining where the media begins.

 

  1. Parameter name: "verticalgapheight"

                Definition: The vertical gap height in mm.  The gap height is defined as the distance between end of the current label and the beginning of the next label.

 

  1. Parameter name: "shiftdistance"

               Definition: The shift distance of the gap/black mark in mm.  In the case of the average label, set this parameter to be 0.

 

 

 

Element Lines

There are 2 different types of elements that can be added to the label: barcode and text.

 

     Barcode Line

     i.e.  barcode{X=140|Y=600|BarcodeType=128|Height=100|PrintBarcodeText=true|Rotation=90| 

Content=[[barcode]]}

     The barcode line defines a barcode element to be printed on a label and takes the

     following ordered parameters.

  1. Parameter name: "x"

                Definition: The starting x position of the element on the label.

 

  1. Parameter name: "y"

                Definition: The starting y position of the element on the label.

 

  1. Parameter name: "barcodetype"

                Definition: The type of barcode to print.

                Accepted Values: 

128                  Code 128, switching code subset A, B, C automatically

128M               Code128, switching code subset A, B, C manually

EAN128          Code 128, switching code subset A, B, C automatically

25                    Interleaved 2 of 5

25C                 Interleaved 2 of 5 with check digits

39                    Code 39

39C                 Code 39 with check digits

93                    Code 93

EAN13            EAN 13

EAN13+2        EAN 13 with 2 digits add-on

EAN13+5        EAN 13 with 5 digits add-on

EAN8              EAN 8

EAN8+2          EAN 8 with 2 digits add-on

EAN8+5          EAN 8 with 5 digits add-on

CODA             Codabar

POST              Postnet

UPCA             UPC-A

UPCA+2         UPC-A with 2 digits add-on

UPCA+5         UPC-A with 5 digits add-on

UPCE              UPC-E

UPCE+2          UPC-E with 2 digits add-on

UPCE+5          UPC-E with 5 digits add-on

 

  1. Parameter name: "height"

                Definition: The height of the barcode in points. 

                For a 200 DPI printer 1 point = 1/8 mm.  For a 300 DPI printer 1 point = 1/12 mm.

 

  1. Parameter name: "printbarcodetext"

                Definition: Indicates whether to print the text value of the barcode under the barcode.

                Accepted Values: true or false.

 

  1. Parameter name: "rotation"

                Definition: The rotation of the barcode.

                Accepted Values: 0, 90, 180, 270.

 

  1. Parameter name: "content"

                Definition: The barcode value.

                Notes: The barcode value should not have the following characters: {}|

 

    Text Line

    i.e. text{ x=130| y=1000 | height=30| rotation=90 | windowsfontstyle=Normal| underlined=false|

            windowsFont=Arial | Content=[[Ticket Notes]]}

    The text line defines a text element to be printed on a label and takes the following

    ordered parameters:

 

  1. Parameter name: "x"

                Definition: The starting x position of the element on the label.

 

  1.         Parameter name: "y"

                Definition: The starting y position of the element on the label.

 

  1.         Parameter name: "height"

                Definition: The height of the text in points.

                For a 200 DPI printer 1 point = 1/8 mm.  For a 300 DPI printer 1 point = 1/12 mm.

 

  1.         Parameter name: "rotation"

                Definition: The rotation of the text.

                Accepted Values: 0, 90, 180, 270.

 

  1.         Parameter name: "windowsfontstyle"

                Definition: The font style to apply to the text

                Accepted Values: Normal, Bold, Italic, BoldAndItalic

 

  1.         Parameter name: "underlined"

                Definition: Indicates whether to underline the text.

                 Accepted Values: true or false

 

  1.         Parameter name: "windowsfont"

                Definition: The windows font to use when printing the text.

                Accepted Values: Any of the default windows fonts.

 

  1.         Parameter name: "content"

                Definition: The text value.

                Notes: The text value should not have the following characters: {}|

 

       

          

     

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.