*GPDSpecVersion: "1.0"
*Include: "StdNames.gpd"
*GPDFileVersion: "3.2.0.0"
*GPDFileName: "CTS601CHN.GPD"
*ModelName: "CTS601"
*MasterUnits: PAIR(203, 203)
*ResourceDLL: "cts600.dll"
*PrinterType: SERIAL
*Feature: Orientation
{
    *rcNameID: =ORIENTATION_DISPLAY
    *DefaultOption: PORTRAIT
    *Option: PORTRAIT
    {
        *rcNameID: =PORTRAIT_DISPLAY
    }
    *Option: LANDSCAPE_CC270
    {
        *rcNameID: =LANDSCAPE_DISPLAY
    }
}
*Feature: InputBin
{
    *rcNameID: =PAPER_SOURCE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {
        *rcNameID: 296
        *OptionID: 296
    }
}
*Feature: Resolution
{
    *rcNameID: =RESOLUTION_DISPLAY
    *DefaultOption: 203dpi_24lines
    *Option: 203dpi_24lines
    {
        *Name: "203 x 203 " =DOTS_PER_INCH
        *DPI: PAIR(203, 203)
        *TextDPI: PAIR(203, 203)
        *PinsPerLogPass: 24
        *PinsPerPhysPass: 24
        *SpotDiameter: 100
        *Command: CmdSendBlockData { *CallbackID: 102 }
    }
}
*Feature: PaperSize
{
    *rcNameID: =PAPER_SIZE_DISPLAY
    *DefaultOption: Option1
    *Option: Option1
    {	*% Receipt length 80 x 3276mm 48c
        *rcNameID: 258
        *OptionID: 258
        *PageDimensions: PAIR(640, 26182)
        *PrintableArea: PAIR(575, 26182)
        *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option2
    {	*% A4 length 80 x 297mm 48c
        *rcNameID: 259
        *OptionID: 259
        *PageDimensions: PAIR(640, 2374)
        *PrintableArea: PAIR(575, 2374)
        *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option3
    {	*% B5 length 80 x 257mm 48c
        *rcNameID: 260
        *OptionID: 260
        *PageDimensions: PAIR(640, 2054)
        *PrintableArea: PAIR(575, 2054)
        *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option4
    {	*% 6 in Page 3.14 x 6in 48c
        *rcNameID: 261
        *OptionID: 261
        *PageDimensions: PAIR(640, 1218)
        *PrintableArea: PAIR(575, 1218)
        *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option5
    {	*% Letter length 3.14 x 11in 48c
        *rcNameID: 262
        *OptionID: 262
        *PageDimensions: PAIR(640, 2233)
        *PrintableArea: PAIR(575, 2233)
        *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option6
    {	*% Executive length 3.14x10.5in 48c
        *rcNameID: 263
        *OptionID: 263
        *PageDimensions: PAIR(640, 2132)
        *PrintableArea: PAIR(575, 2132)
        *PrintableOrigin: PAIR(32, 0)
    }
    *Option: Option7
    {	*% A4 length 80 x 297mm 42c
        *rcNameID: 264
        *OptionID: 264
        *PageDimensions: PAIR(640, 2374)
        *PrintableArea: PAIR(503, 2374)
        *PrintableOrigin: PAIR(68, 0)
    }
    *Option: Option8
    {	*% B5 length 80 x 257mm 42c
        *rcNameID: 265
        *OptionID: 265
        *PageDimensions: PAIR(640, 2054)
        *PrintableArea: PAIR(503, 2054)
        *PrintableOrigin: PAIR(68, 0)
    }
    *Option: Option9
    {	*% 6 in Page 3.14 x 6in 42c
        *rcNameID: 266
        *OptionID: 266
        *PageDimensions: PAIR(640, 1218)
        *PrintableArea: PAIR(503, 1218)
        *PrintableOrigin: PAIR(68, 0)
    }
    *Option: Option10
    {	*% Letter length 3.14 x 11in 42c
        *rcNameID: 267
        *OptionID: 267
        *PageDimensions: PAIR(640, 2233)
        *PrintableArea: PAIR(503, 2233)
        *PrintableOrigin: PAIR(68, 0)
    }
    *Option: Option11
    {	*% Executive length 3.14x10.5in 42c
        *rcNameID: 268
        *OptionID: 268
        *PageDimensions: PAIR(640, 2132)
        *PrintableArea: PAIR(503, 2132)
        *PrintableOrigin: PAIR(68, 0)
    }
    *Option: Option12
    {	*% Receipt length 80 x 3276mm 42c
        *rcNameID: 269
        *OptionID: 269
        *PageDimensions: PAIR(640, 26182)
        *PrintableArea: PAIR(503, 26182)
        *PrintableOrigin: PAIR(68, 0)
    }
    *Option: Option13
    {	*% A4 length 58 x 297mm 36c
        *rcNameID: 270
        *OptionID: 270
        *PageDimensions: PAIR(464, 2374)
        *PrintableArea: PAIR(431, 2374)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option14
    {	*% B5 length 58 x 257mm 36c
        *rcNameID: 271
        *OptionID: 271
        *PageDimensions: PAIR(464, 2054)
        *PrintableArea: PAIR(431, 2054)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option15
    {	*% 6 in Page 2.28 x 6in 36c
        *rcNameID: 272
        *OptionID: 272
        *PageDimensions: PAIR(464, 1218)
        *PrintableArea: PAIR(431, 1218)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option16
    {	*% Letter length 2.28 x 11in 36c
        *rcNameID: 273
        *OptionID: 273
        *PageDimensions: PAIR(464, 2233)
        *PrintableArea: PAIR(431, 2233)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option17
    {	*% Executive length 2.28x10.5in 36c
        *rcNameID: 274
        *OptionID: 274
        *PageDimensions: PAIR(464, 2132)
        *PrintableArea: PAIR(431, 2132)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option18
    {	*% Receipt length 58 x 3276mm 36c
        *rcNameID: 275
        *OptionID: 275
        *PageDimensions: PAIR(464, 26182)
        *PrintableArea: PAIR(431, 26182)
        *PrintableOrigin: PAIR(16, 0)
    }

    *Option: Option19
    {	*% A4 length 58 x 297mm 30c
        *rcNameID: 276
        *OptionID: 276
        *PageDimensions: PAIR(464, 2374)
        *PrintableArea: PAIR(359, 2374)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option20
    {	*% B5 length 58 x 257mm 30c
        *rcNameID: 277
        *OptionID: 277
        *PageDimensions: PAIR(464, 2054)
        *PrintableArea: PAIR(359, 2054)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option21
    {	*% 6 in Page 2.28 x 6in 30c
        *rcNameID: 278
        *OptionID: 278
        *PageDimensions: PAIR(464, 1218)
        *PrintableArea: PAIR(359, 1218)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option22
    {	*% Letter length 2.28 x 11in 30c
        *rcNameID: 279
        *OptionID: 279
        *PageDimensions: PAIR(464, 2233)
        *PrintableArea: PAIR(359, 2233)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option23
    {	*% Executive length 2.28x10.5in 30c
        *rcNameID: 280
        *OptionID: 280
        *PageDimensions: PAIR(464, 2132)
        *PrintableArea: PAIR(359, 2132)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option24
    {	*% Receipt length 58 x 3276mm 30c
        *rcNameID: 281
        *OptionID: 281
        *PageDimensions: PAIR(464, 26182)
        *PrintableArea: PAIR(359, 26182)
        *PrintableOrigin: PAIR(16, 0)
    }
    *Option: Option25
    {	*% Receipt length 83 x 3276mm
        *rcNameID: 320
        *OptionID: 320
        *PageDimensions: PAIR(664, 26182)
        *PrintableArea: PAIR(640, 26182)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option26
    {	*% A4 length 83 x 297mm
        *rcNameID: 321
        *OptionID: 321
        *PageDimensions: PAIR(664, 2374)
        *PrintableArea: PAIR(640, 2374)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option27
    {	*% B5 length 83 x 257mm
        *rcNameID: 322
        *OptionID: 322
        *PageDimensions: PAIR(664, 2054)
        *PrintableArea: PAIR(640, 2054)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option28
    {	*% 6 in Page 3.27 x 6in
        *rcNameID: 323
        *OptionID: 323
        *PageDimensions: PAIR(664, 1218)
        *PrintableArea: PAIR(640, 1218)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option29
    {	*% Letter length 3.27 x 11in
        *rcNameID: 324
        *OptionID: 324
        *PageDimensions: PAIR(664, 2233)
        *PrintableArea: PAIR(640, 2233)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: Option30
    {	*% Executive length 3.27x10.5in
        *rcNameID: 325
        *OptionID: 325
        *PageDimensions: PAIR(664, 2132)
        *PrintableArea: PAIR(640, 2132)
        *PrintableOrigin: PAIR(0, 0)
    }
    *Option: CUSTOMSIZE
    {
        *rcNameID: =USER_DEFINED_SIZE_DISPLAY
        *MinSize: PAIR(20, 20)
        *MaxSize: PAIR(664, 26182)
        *MaxPrintableWidth: 640
        *%MinLeftMargin: 16
        *CenterPrintable?: FALSE
    }
}
*Feature: Halftone
{
    *rcNameID: =HALFTONING_DISPLAY
    *DefaultOption: HT_PATSIZE_AUTO
    *Option: HT_PATSIZE_AUTO
    {
        *rcNameID: =HT_AUTO_SELECT_DISPLAY
    }
    *Option: HT_PATSIZE_SUPERCELL_M
    {
        *rcNameID: =HT_SUPERCELL_DISPLAY
    }
    *Option: HT_PATSIZE_6x6_M
    {
        *rcNameID: =HT_DITHER6X6_DISPLAY
    }
    *Option: HT_PATSIZE_8x8_M
    {
        *rcNameID: =HT_DITHER8X8_DISPLAY
    }
}
*Feature: AdvancedFunctions
{
    *rcNameID: 460
    *FeatureType: PRINTER_PROPERTY
    *DefaultOption: FUNCTION_ON
    *Option: FUNCTION_ON
    {
        *rcNameID: 461
    }
    *Option: FUNCTION_OFF
    {
        *rcNameID: 462
*%        *Constraints: LIST(ColorMode.Grayscale)
    }
}
*Feature: LogoProcess
{
    *rcNameID: 410
    *FeatureType: DOC_PROPERTY
    *DefaultOption: LOGO_PROCESS_2
    *Option: LOGO_PROCESS_1
    {
        *rcNameID: 411
    }
    *Option: LOGO_PROCESS_2
    {
        *rcNameID: 412
    }
}
*Feature: PaperType
{
    *rcNameID: 400
    *FeatureType: DOC_PROPERTY
    *DefaultOption: RECEIPT
    *Option: RECEIPT
    {
        *rcNameID: 296
    }
    *Option: TICKET
    {
        *rcNameID: 402
    }
}
*switch: PaperType
{
    *case: TICKET
    {
        *EjectPageWithFF?: FALSE
    }
    *default
    {
        *EjectPageWithFF?: TRUE
    }
}
*Feature: PrinterFontFullPrint
{
    *rcNameID: 439
    *FeatureType: DOC_PROPERTY
    *DefaultOption: CHAR1DEC
*%    *DefaultOption: FULLCHAR
    *Option: CHAR1DEC
    {
        *rcNameID: 441
    }
*%    *Option: FULLCHAR
*%    {
*%        *rcNameID: 440
*%    }
}
*Command: CmdStartDoc
{
    *Order: DOC_SETUP.1
    *Cmd: "<1B>@<1D>P<CBCB1B>R<001B20001C5300001B>t<09><1D>b<01><1D>a<0F><1B>c<33><00>"
}
*Command: CmdEndJob
{
    *Order: JOB_FINISH.1
    *Cmd: "<000000>"
}
*RotateCoordinate?: FALSE
*RotateRaster?: FALSE
*RotateFont?: FALSE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *TextCaps: LIST(TC_OP_CHARACTER,TC_EA_DOUBLE,TC_UA_ABLE)
    }
    *case: LANDSCAPE_CC270
    {
        *TextCaps: LIST()
    }
}
*CursorXAfterCR: AT_CURSOR_X_ORIGIN
*YMoveAttributes: LIST(SEND_CR_FIRST)
*XMoveThreshold: 0
*YMoveThreshold: *
*XMoveUnit: 203
*YMoveUnit: 203
*Command: CmdXMoveAbsolute
{
    *CallbackID : 100
    *Params : LIST(DestX)
}
*Command: CmdYMoveRelDown
{
    *CallbackID : 101
    *Params : LIST(DestYRel)
}
*Command: CmdCR { *Cmd : "<000D>" }
*Command: CmdLF { *Cmd : "<000A>" }
*Command: CmdFF { *Cmd : "<00>" }
*OutputDataFormat: V_BYTE
*OptimizeLeftBound?: FALSE
*CursorXAfterSendBlockData: AT_GRXDATA_END
*%Define: ImageFeedProcess_FGFEED
*Define: ImageFeedProcess_CCBFEED
*Feature: ImageFeedProcess
{
    *Name: "ImageFeed Process"
  *Ifdef: ImageFeedProcess_FGFEED
    *Option: FGFEED { *Name: "FilterGraphics Feed" }
  *Endif:
  *Ifdef: ImageFeedProcess_CCBFEED
    *Option: CCBFEED { *Name: "CommandCallBack Feed" }
  *Endif:
}
*Feature: CutterModeDefault
{
    *Name: "CutterModeDefault"
    *Option: 3 { *Name: "CutterModeDefault" }
}
*Feature: CutterType
{
    *Name: "CutterType"
    *Option: 3 { *Name: "CutterType" }
}
*Feature: PrinterType
{
    *Name: "PrinterType"
    *Option: 5 { *Name: "PrinterType" }
}
*% //////////////////////////////////////////////////
*Feature: PaperMedia
{
    *Name: "PaperMedia"
    *Option: 1 { *Name: "PaperMedia" }
}
*Feature: PaperMediaDefault
{
    *Name: "PaperMediaDefault"
    *Option: 0 { *Name: "PaperMediaDefault" }
}
*Feature: LabelBMCutterModeDefault
{
    *Name: "LabelBMCutterModeDefault"
    *Option: 0 { *Name: "LabelBMCutterModeDefault" }
}
*Feature: PaperFeeding
{
	*Name: "PaperFeeding"
	*Option: 1 { *Name: "PaperFeeding" }
}
*Feature: PFeedMode
{
	*Name: "PFeedMode"
    *Option: 0 { *Name: "PFeedMode" }
}
*Feature: PFeedLen
{
	*Name: "PFeedLen"
	*Option: 34 { *Name: "PFeedLen" }
}
*Feature: JFeedMode
{
	*Name: "JFeedMode"
	*Option: 0 { *Name: "JFeedMode" }
}
*Feature: JFeedLen
{
	*Name: "JFeedLen"
	*Option: 34 { *Name: "JFeedLen" }
}
*Feature: CutPosLen
{
    *Name: "CutPosLen"
    *Option: 102 { *Name: "CutPosLen" }
}
*% //////////////////////////////////////////////////
*%*Feature: LabelPrinter
*%{
*%    *Name: "LabelPrinter"
*%    *Option: 1 { *Name: "LabelPrinter" }
*%}
*%*Feature: LabelPrinterDefault
*%{
*%    *Name: "LabelPrinterDefault"
*%    *Option: 0 { *Name: "LabelPrinterDefault" }
*%}
*% //////////////////////////////////////////////////
*Feature: DrawerMode1Default
{
    *Name: "DrawerMode1Default"
    *Option: 0 { *Name: "DrawerMode1Default" }
}
*Feature: DrawerMode2Default
{
    *Name: "DrawerMode2Default"
    *Option: 0 { *Name: "DrawerMode2Default" }
}
*Feature: DrawerType
{
    *Name: "DrawerType"
    *Option: 2 { *Name: "DrawerType " }
}
*% //////////////////////////////////////////////////
*%*Feature: UpsideDownDefault
*%{
*%    *Name: "UpsideDownDefault"
*%    *Option: 0 { *Name: "UpsideDownDefault" }
*%}
*%*Feature: UpsideDown
*%{
*%    *Name: "UpsideDown"
*%    *Option: 1 { *Name: "UpsideDown " }
*%}
*% //////////////////////////////////////////////////
*Feature: Buzzer
{
    *Name: "Buzzer"
    *Option: 1 { *Name: "Buzzer" }
}
*Feature: Barcode
{
    *Name: "Barcode"
    *Option: 1 { *Name: "Barcode" }
}
*Feature: Logo
{
    *Name: "Logo"
    *Option: 1 { *Name: "Logo" }
}
*% //////////////////////////////////////////////////
*Feature: AdvanceTab
{
    *Name: "AdvanceTab"
    *Option: 1 { *Name: "AdvanceTab" }
}
*Feature: CouponTab
{
    *Name: "CouponTab"
    *Option: 1 { *Name: "CouponTab" }
}
*Feature: ToolTab
{
    *Name: "ToolTab"
    *Option: 1 { *Name: "ToolTab" }
}
*% //////////////////////////////////////////////////



*switch: Orientation
{
    *case: PORTRAIT
    {
        *CursorYAfterSendBlockData: AUTO_INCREMENT
    }
    *case: LANDSCAPE_CC270
    {
        *switch: ImageFeedProcess
        {
          *Ifdef: ImageFeedProcess_FGFEED
            *case: FGFEED { *CursorYAfterSendBlockData: AUTO_INCREMENT }
          *Endif:
          *Ifdef: ImageFeedProcess_CCBFEED
            *case: CCBFEED { *CursorYAfterSendBlockData: NO_MOVE }
          *Endif:
        }
    }
}
*DefaultFont: 1
*DefaultCTT: 0
*%TTFSEnabled?: TRUE
*switch: Orientation
{
    *case: PORTRAIT
    {
        *DeviceFonts: LIST(    1,     2,    3,    4,    5,    6,    7,
+                             22,    23,   24,   25,   26,   27,   28,
+                             43,    44,   45,   46,   47,   48,   49,
+                             64,    65,   66,   67,   68,   69,   70,
+                             85,    86,   87,   88,   89,   90,   91,
+                             106,  107,  108,  109,  110,  111,  112,
+                             127,  128,  129,  130,  131,  132,  133,
+                             148,  149,  150,  151,  152,  153,  154,
+                             169,  170,  171,  172,  173,  174,  175,
+                             190,  191,  192,  193,  194,  195,  196,
+                             211,  212,  213,  214,  215,  216,  217,
+                             232,  233,  234,  235,  236,  237,  238,
+                             253,  254,  255,  256,  257,  258,  259,
+                             260,  261,  262,  263,  264,  265,  266,
+                             267,  268,  269,  270,  271,  272,  273,
+                             274,  275,  276,  277,  278,  279,  280,
+                             281,  282,  283,  284,  285,  286,  287,
+                             288,  289,  290,  291,  292,  293,  294,
+                             295,  296,  297,  298,  299,  300,  301,
+                             302,  303,  304,  305,  306,  307,  308,
+                             309,  310,  311,  312,  313,  314,  315,
+                             365,
+                             415,  416,  417,  418,  419,  420,  421,
+                             436,  437,  438,  439,  440,  441,  442,
+                             457,  458,  459,  460,  461,  462,  463,
+                             478,  479,  480,  481,  482,  483,  484,
+                             499,  500,  501,  502,  503,  504,  505,
+                             520,  521,  522,  523,  524,  525,  526,
+                             541,  542,  543,  544,  545,  546,  547,
+                             562,  563,  564,  565,  566,  567,  568,
+                             583,  584,  585,  586,  587,  588,  589,
+                             604,  605,  606,  607,  608,  609,  610,
+                             625,  626,  627,  628,  629,  630,  631,
+                             646,  647,  648,  649,  650,  651,  652,
+                             667,  668,  669,  670,  671,  672,  673,  674,  675,  676,
+                             687,  688,  689,  690,  691,  692,  693,  694,  695,  696,
+                             697,  698,  699,  700,  701,  702,  703,  704,  705,  706,
+                             717,  718,  719,  720,  721,  722,  723,  724,  725,  726,
+                            1179, 1180, 1181, 1182,
+                            1200, 1201, 1202, 1203 )
    }
    *case: LANDSCAPE_CC270
    {
        *DeviceFonts: LIST()
    }
}
*Command: CmdBoldOn { *Cmd : "<1B>E<01>" }
*Command: CmdBoldOff { *Cmd : "<1B>E<00>" }
*Command: CmdUnderlineOn { *Cmd : "<1B>-<01>" }
*Command: CmdUnderlineOff { *Cmd : "<1B>-<00>" }
