Vous êtes sur la page 1sur 8

9/28/12

Printer Command Language Reference

|Home |AboutUs|Se arch|

PrinterCommandLanguage
Functionalreference
PCLe scape se que nce s aresummarisedbyfunction inthetables(right).
Ec

PCLto...

Downloads

Resources

Contact

Printe rCommandLanguage functionalre fe re nce PageLengthandSize MarginsandT extlength HorizontalColumn Spacing(HMI) VerticalLineSpacing Deskjetprintmodes Deskjetrastergraphics printmodes Absolutepositioning RelativePositioning PageOrientation FontSelection FontSpacing FontStyle FontStrokeWeight Selection FontT ypeFaceNumber Selection FontPitchSelection FontSelectionby identification FontManagement DownLoadingFonts Doublebytetextparsing Rules patterns RasterGraphics ColorDeskJetandPCL5 only Obsoletefunctions Color Imaging Macros diagnosticsResetand SelfT est Underline LineEnding HPGL PaperControl T ransparentPrintdata

istheescapecharactercode hexadecimal0x1B indicatesthatanumberofcharactersof

... parameterdatafollowthecommand

# representsanintegerordecimalparamter
a isreplacedbyasinglealphacharacter RedT itanEscapeEmaybeusedtoviewPCLorPDF andconverttoAdobePostscript,PDF,IBMAFP,or XEROXmetacodeformats.

Links
PCLMarginsandTe xtle ngth PCLfontse le ction PCLsymbolse tsse le ction PCLtype face se le ction PCLtoPDF PCLtoTIFF PCLtoFAX PCLtoAFP PCLtoHTML PCLtoXML PCLtoXe roxMe tacode PCLHPMSLUnicode PCLTrue type Table
Ec &l#E Ec &l#F Ec &a#L Ec &a#M Ec &l#U Ec &l#Z Ec 9

PCLPage Le ngthandSiz e
Ec &l1A Ec &l2A Ec &l3A Ec &l26A

DefineT opMarginat#Lines DefineT extLengthas#Lines DefineLeftMarginatColumn# DefineRightMarginatColumn#

Executive Letter Legal A4 A3 Monarch Commercial10 InternationalDL InternationalC5 Custompaper UnknownPaperSize(#) Mediatype# DefinePageLengthto#Lines

Longedge(left)offsetregistration# Ec&l27A Shortedge(top)offsetregistration# ClearMargin


Ec &l80A Ec &l81A Ec &l90A Ec &l91A Ec &l101A Ec &l#A Ec &l#M Ec &l#P

PCLHoriz ontalColumnSpacing(HMI)
Ec &k#H

SetHMI=#/120"

PCLVe rticalLine Spacing


Ec &l#C Ec &l1D Ec &l2D Ec &l3D Ec &l4D Ec &l6D Ec &l8D Ec &l0D Ec &l#D Ec = Ec &u#D Ec &a0N Ec &a1N

SetVMI=#/48" 1LPI 2LPI 3LPI 4LPI 6LPI 8LPI 12LPI SetLineSpacingto#LPI HalfLineFeed Set#dpidotresolution Containsnegativemotion Nonegativemotion

HPPCLDe skje tprintmode s


Ec &k0W Ec &k1W

Unidirectionalprinting Bidirectionalprinting

pcl.to/reference/

1/8

9/28/12

Printer Command Language Reference


Ec &k2W Ec &k5W Ec &k6W

Unidirectionalrighttoleft 66lineT extScalemode T extScalemodeoff

HPPCLDe skje traste rgraphicsprintmode s


Ec *p1N Ec *p2N Ec *p3N Ec *p4N Ec *p#N

Bidirectionalgraphics Graphicsprintmodelefttoright Graphicsprintmoderighttoleft Smartbidirectionalgraphics graphicsprintmode#

PCLAbsolute positioning
Ec &a#R Ec *p#Y Ec &a#V Ec &a#C Ec *p#X Ec &a#H

MovetoRow# Vertposition=#Dots Vertposition#Decipoints MovetoColumn# Horizposition=#Dots Horizposition#Decipoints

PCLRe lative Positioning


Ec &a+#R Ec *p+#Y Ec &a+#V Ec &a+#C Ec *p+#X Ec &a+#H Ec &a#R Ec *p#Y Ec &a#V Ec &a#C Ec *p#X Ec &a#H Ec &f0S Ec &f1S

Movedown#rows Movedown#Dots Movedown#Decipoints Moveright#cols Moveright#Dots Moveright#Decipoints Moveup#rows Moveup#Dots Moveup#Decipoints Moveleft#cols Moveleft#Dots Moveleft#Decipoints PushCursorPosition PopCursorPosition

PCLPage O rie ntation


Ec &l0O Ec &l1O Ec &l#O Ec &a0P Ec &a90P Ec &a180P Ec &a270P Ec &a#P

Portrait Landscape Orientation# Rotation0 Rotation90(portrait>landscape) Rotation180 Rotation270(landscape>portrait) Rotation#degrees

PCLFontSe le ction
Ec (# a Ec (8U Ec (11U

seePCLfontselection Roman8SymbolSet IBMDanish/NorwegianSymbolSet

pcl.to/reference/

2/8

9/28/12

Printer Command Language Reference


Ec (10U Ec (9U Ec (19U Ec )8U Ec )11U Ec )10U Ec )9U Ec )19U

IBMPC(USA)SymbolSet Windows3.0Symbolset Windows3.1Symbolset Roman8asSecondaryFontSymbolSet IBMDanish/NorwegianasSecondaryFontSymbolSet IBMPC(USA)asSecondaryFontSymbolSet Windows3.0SecondarySymbolset Windows3.1SecondarySymbolset

PCLFontSpacing
Ec (s1P Ec (s0P Ec (s#P Ec )s1P Ec )s0P Ec )s#P Ec (s#H Ec )s#H Ec (s#V Ec )s#V

Proportional FixedPitch UnknownFontSpacing(#)! ProportionalSpacingforSecondaryFont FixedPitchSpacingforSecondaryFont UnknownFontSpacing(#)! pitch#cpi SecondaryFontpitch#cpi PointSize# SecondaryFontPointSize#

PCLFontStyle
Ec (s0S Ec (s1S Ec (s#S Ec )s0S Ec )s1S Ec )s#S

Upright Italic FontStyle# SecondaryFontisUpright SecondaryFontisItalic SecondaryFontStyle#

PCLFontStroke We ightSe le ction


Ec (s3B Ec (s0B Ec (s3B Ec (s#B Ec )s3B Ec )s0B Ec )s3B Ec )s#B

LightWeight MediumWeight Bold Weight# SecondaryFontLightStrokeWeight SecondaryFontMediumStrokeWeight SecondaryFontBoldStrokeWeight SecondaryFontWeight#

PCLFontType Face Numbe rSe le ction


Ec (s#T Ec )s#T

T ypeface# SecondaryFontT ypeface#

PCLFontPitchSe le ction
Ec &k0S Ec &k2S Ec &k4S Ec (3@ Ec (#@

FontPitch10.00cpi FontPitch16.66cpi FontPitch12.00cpi ChooseDefaultfontasPrimaryFont PrimaryFontRequestedAttributeValue#

pcl.to/reference/

3/8

9/28/12

Printer Command Language Reference


Ec )3@ Ec (#@

ChooseDefaultfontasSecondaryFont SecondaryFontRequestedAttributeValue#

PCLFontSe le ctionbyide ntification


Ec (#X Ec )#X

SelectPrimaryFontbyID(#) SelectSecondaryFontbyID(#)

PCLFontManage me nt
Ec *c#D Ec *c0F Ec *c1F Ec *c2F Ec *c3F Ec *c4F Ec *c5F Ec *c6F Ec *c#F

DefineFontId# DeleteAllFonts DeleteAllT emporaryFonts DeleteLastFontIDSpecified DeleteLAstFontIDandCharCode MakeFontT emporary MakeFontPermanent Copy/Assign UnknownFontManmagementCommand(#F)!

PCLDownLoadingFonts
Ec *c#E... Ec )s#W... Ec (s#W... Ec *c#R Ec (f#W... Ec *c5S Ec *c#S Ec &n#W...

ASCIICode#Decimal... CreateFontHeaderof#Bytes... DownloadCharacterof#Bytes... DefineSymbolsetID# DefineSymbolSetCharacters(#Bytes)... Makesymbolsetpermanent Symbolsetcontrol(#) AlphanumericID#...

PCLDouble byte te xtparsing


Ec &t0P Ec &t1P Ec &t#P

Singlebytechars Singlebytechars Doublebytemode#

PCLRule s
Ec *c#A Ec *c#H Ec *c#B Ec *c#V Ec *c0P Ec *c1P Ec *c2P Ec *c3P Ec *c4P Ec *c5P

RuleHorizontalSize#Dots RuleHorizontalSize#Decipoints RuleVerticalSize#Dots RuleVerticalSize#Decipoints PrintBlackRule PrintWhiteRule PrintGreyScale PrintCrosshatchPattern PrintUserdefinedPattern PrintCurrentPattern

PCLpatte rnssame code sasforgre yscale


Ec *c1G Ec *c2G Ec *c3G

HPPattern1HorizLine HPPattern2VerticalLine HPPattern3DiagonalLines

pcl.to/reference/

4/8

9/28/12

Printer Command Language Reference


Ec *c4G Ec *c5G Ec *c6G Ec *c#G Ec *p#R

HPPattern4DiagonalLines HPPattern5SquareGrid HPPattern6DiagonalGrid #%GreyScale patternrotation#

PCLRaste rGraphics
Ec *t#R Ec *r0A Ec *r1A Ec *r2A Ec *r3A Ec *b#W... Ec *rB Ec *rC Ec *r0F Ec *r3F Ec *g#W... Ec *b#Y... Ec *r#T Ec *r#S Ec *t#V Ec *t#H Ec *b0M Ec *b1M Ec *b2M Ec *b3M Ec *b4M Ec *b5M Ec *b6M Ec *b7M Ec *b8M

#DPIGraphicsresolution StartGraphicsatLeftGraphicsMargin StartGraphicsatCurrentCursor StartScaledGraphicsatLeftGraphicsMargin StartScaledGraphicsatCurrentCursor #Graphicsdatabytes... EndGraphics EndGraphicswithreset Rotateimage LaserJetLandscapecompatible Configurerasterdata#bytes movevertically#rasterlines... rasterheight#pixels rasterwidth#pixels scaledrasterheight# scaledrasterwidth# uncompressed runlengthencodes packbits(bytewiserunlength) deltarowcompression blockdata adaptivecompression CCIT T 31Dcompression CCIT T 32Dcompression CCIT T 4compression

PCLColorDe skJe tandPCL5only


Ec *b9M Ec *b#M Ec *b#S Ec *b#V... Ec *r1Q Ec *r2Q Ec *r3U Ec *r4U Ec *r1U Ec *r3U Ec *r#U Ec *b#B

DeskJetcompression unknownrowcompressionmode# seedrow#source #colourdatabytes draftqualitygraphics NLQgraphics 3planesCYM 4planesCYMK singleplanepalette 3planesRGB Unknownpalette(#) GrayBalance# Printquality(#)

pcl.to/reference/

5/8

9/28/12

Printer Command Language Reference


Ec *o#M Ec *o#Q Ec *o#D Ec *c#W Ec *p0R Ec *p1R Ec *c#Q

rastergraphicsshingling(#) rastergraphicsdepletion(#) definepattern#bytes rotatepatterns nopatternrotation temp/permpatternmode#

PCLO bsole te functions


Ec *p#N Ec *r#Q

rasterprintmode# rasterprintquality#

PCLColor
Ec *v#S Ec &p#I Ec &p0C Ec &p1C Ec &p2C Ec &p6C Ec &p#S Ec *v18W Ec *v30W Ec *v86W Ec *v122W Ec *v#W... Ec &b0M Ec &b1M Ec *v#A Ec *v#B Ec *v#C Ec *v#I Ec *p0P Ec *p1P Ec *t#I Ec *l#W... Ec &b0F Ec &b1F Ec &b#T Ec *o#W...

foregroundcolour# paletteID# deleteallpalettes clearpalettestack deletepalette copypalettetocurrentID selectpaletteID# configureimagedata(RGBorCYM) configureimagedata(CIEL*a*b) configureimagedata(ColorimetricRGB) configureimagedata(LuminenceChrominence) configureimagedata#bytes(RGB) Mixedmonochromerendering Grayequivalent colourcomponent1=# colourcomponent2=# colourcomponent3=# assigncomponentstopaletteindex# pushpalette poppalette Gammacorrection# Colourlookuptable#bytes Mattefinish Glossyfinish Drytime# Colourtreatment

PCLImaging
Ec *v0T Ec *v1T Ec *v2T Ec *v3T Ec *v4T Ec *v#T Ec *v0N

pattern=solidblack pattern=solidwhite pattern=shading pattern=crosshatched pattern=userdefined Unknownshadingpattern# transparentsource

pcl.to/reference/

6/8

9/28/12

Printer Command Language Reference


Ec *v1N Ec *v0O Ec *v1O Ec *l#O Ec *t#J Ec *m#W... Ec *l#R

opaquesource transparentpattern opaquepattern rasterOp# halftonerenderalgorithm# downloaddithermatrix#bytes Pixelplacement#

PCLMacros
Ec &f#Y Ec &f0X Ec &f1X Ec &f2X Ec &f3X Ec &f4X Ec &f5X Ec &f6X Ec &f7X Ec &f8X Ec &f9X Ec &f10X

DefineMacroID# StartMacroDefinition EndMacroDefinition ExecuteMacro CallMacro EnableOverlay DisableOverlay DeleteMacros DeleteAllT emporaryMacros DeleteMacroID MakeT emporary MakePermanent

PCLdiagnosticsRe se tandSe lfTe st


Ec E Ec z Ec Y Ec Z

Reset Self_T est DisplayFunctionsOn DisplayFunctionsOff

PCLUnde rline
Ec &d0D Ec &d2D Ec &d3D Ec &d4D Ec &d#D Ec &d@

SinglefixedUnderlineOn DoublefixedUnderlineOn SinglefloatingUnderlineOn DoublefloatingUnderlineOn Underline(#)On UnderlineOff

PCLLine e nding
Ec &s0C Ec &s1C

EnableLineWrap DisableLineWrap

PCLPape rControl
Ec &l#X Ec &l#G Ec &r#F Ec &l1H Ec &l0H Ec &l0V Ec &l1H Ec &l2H

Select#Copies Selectbin# Flushpages# FeedZfoldmedia EjectPage Conditionalpagefeed FeedfromT ray1(upper) ManualFeed

pcl.to/reference/

7/8

9/28/12

Printer Command Language Reference


Ec &l3H Ec &l4H Ec &l5H Ec &l#H Ec &l#T Ec &l0L Ec &l1L Ec &a0G Ec &a1G Ec &a2G Ec &l0S Ec &l1S Ec &l2S Ec &l1T

ManualEnvelopeFeed FeedfromT ray2(lower) Feedfrompaperdeck Feedfromsource# Jobseparation(#) DisablePerfSkip EnablePerfSkip Nextside Frontside Backside Simplex DuplexLongedgebinding DuplexShortedgebinding Jobseparationpaperoffset

PCL/HPGL
Ec *c#X Ec *c#Y Ec *c0T Ec *c#K Ec *c#L

HPGLPictureframewidth#decipoints HPGLPictureframeheight#decipoints HPGLPictureanchorpoint=currentposition #inchesHPGLplotwidth #inchesHPGLplotheight

PCLLine Te rmination
Ec &k0G Ec &k1G Ec &k2G Ec &k3G

CR=CRLF=LFFF=FF CR=CR+LFLf=LFFF=FF CR=CRLF=CR+LFFF=CR+FF CR=CR+LFLF=CR+LFFF=CR+FF

PCLTranspare ntPrintdata
Ec &p#X...

T ransparentPrintData#Bytes...

RedT itanT echnology2005.Allrightsreserved.

|companyinfo|search|

pcl.to/reference/

8/8