SATO D512 Programming Manual Download Page 1

D512 PCL PROGRAMMING MANUAL

PN: 9001180B

  

Summary of Contents for D512

Page 1: ...D512 PCL PROGRAMMING MANUAL PN 9001180B...

Page 2: ...s satoamerica com techsupport satoamerica com www satoamerica com Copyright 2008 SATO America Inc All rights reserved WARNING THE EQUIPMENT REFERENCED IN THIS DOCUMENT COMPLIES WITH THE REQUIREMENTS I...

Page 3: ...ter Job Language Printer Job Language 2 2 PJL Command Notation 2 2 Kernel Commands 2 3 Job Separation Commands 2 4 Environment Commands and Variables 2 7 Status Readback Commands 2 12 Status Message F...

Page 4: ...PN 9001180B SATO D512 PCL PROGRAMMING MANUAL...

Page 5: ...D512 PCL Programming Manual Page 1 1 1PCL EMULATION Selecting PCL Emulation Page Formatting Font and Symbol Set Support Command Structure PCL Emulation Commands GL 2 Commands Raster Image Graphics Ma...

Page 6: ...ATION USING YOUR SOFTWARE PROGRAM The D512 requires a PJL prologue or series of commands at the start of each print job including the Printer Job Language PJL Enter Language Command See ENTER LANGUAGE...

Page 7: ...l page width E Distance between the side edge of the physical page and the logical page in portrait F Distance between the side edge of the physical page and the logical page in landscape G Distance b...

Page 8: ...esident symbol sets The table beginning on page 1 5 shows the symbol sets available for each font in PCL emulation Not all fonts support all symbol sets STANDARD PCL EMULATION FONTS The following tabl...

Page 9: ...1 5T Windows Latin 1 19L Windows Cyrillic 9R Windows Greek 9G ISO8859 1 0N Latin 1 ISO8859 2 2N Latin 2 ISO8859 9 5N Latin 5 ISO8859 10 6N Latin 6 ISO8859 5 10N Cyrillic Roman 8 8U IBM CP850 12U OCR...

Page 10: ...are not control codes or data to be printed Table 1 3 Control Codes Code Dec Hex Function Result BS 8 08 Backspace Moves the cursor toward the left margin one horizontal space equal to the last print...

Page 11: ...alue is the value shown in the bottom of the cell or box with that parameter To find a hex value go straight up the grid from the desired parameter and read the value in the top heading This is the fi...

Page 12: ...first 3 bytes only once in the string To combine commands Use the first 3 bytes characters of the command only once at the start of the command string Make the last letter of each command in the strin...

Page 13: ...999 number of Copies Number of Collated Copies Turns collation of pages off or sets the number of collated copies ESC l X number of Copies 1 to 32767 Default 1 Number of Copies Affects the page curren...

Page 14: ...Printer Job Language Table 1 6 Page Control Command Parameters Function Result ESC l A Set Page Size This command is parsed and ignored ESC l H Paper Source This command is parsed and ignored ESC f G...

Page 15: ...the printable area ESC l1T Job Separation This command is parsed and ignored ESC l F number of lines Default 60 or 64 Country specific Set Text Length Sets the bottom margin length in lines measured...

Page 16: ...any earlier VMI setting ESC a G Duplex Page Side Selection This command is parsed and ignored ESC l P number from 0 to 14 0 default page length is used 1 to 14 new page length is set Set Page Length S...

Page 17: ...y either the Vertical Motion Index VMI or the Set Line Spacing Command ESC a V number of Decipoints1 1 Decipoint 1 720 inch Vertical Cursor Position in Decipoints Moves the cursor to a new position al...

Page 18: ...a fixed space bitmapped or monospaced scalable font Valid to 2 decimal places Note Pitch is not needed for proportional spaced fonts ESC s V primary ESC s V secondary height in points 25 to 999 75 Def...

Page 19: ...Symbol Set Support on page 4 Select Typeface Selects the best fit font design ESC X primary ESC X secondary Font ID 0 32767 Select Font by Font ID Selects the font by the identification number ESC 3 p...

Page 20: ...and Secondary Pitch Selects the pitch for the primary and secondary font Table 1 9 User Defined Symbol Set Command Parameters Function Result ESC c R Symbol Set ID 0 32767 Default 0 Symbol Set ID Code...

Page 21: ...ter downloaded or deleted ESC s W data number of data bytes Load Character Downloads character descriptor and data to the current character code Table 1 11 Macros Command Parameters Function Result ES...

Page 22: ...o set the user defined pattern ID Cross Hatch Fills are not supported ESC v N 0 Transparent Default 1 Opaque Source Transparency Mode Affects copying of white pixels from the source onto the destinati...

Page 23: ...ser defined patterns Note Use the Area Fill ID command ESC c G to set the ID Table 1 14 Rectangular Area Fill Graphics Command Parameters Function Result ESC c H Number of Decipoints 0 32767 1 Decipoi...

Page 24: ...Fill ID Selects the pattern used to fill the rectangular area Note This command is also used to set the user defined pattern ID Cross Hatch Patterns are not supported ESC c P 0 Black Fill Default 1 Wh...

Page 25: ...s encoded by plane as specified by the Simple Color command or the Configure Image Data command The command sends each plane in the row except the last ESC b Y Number of Raster Lines Y Offset Moves th...

Page 26: ...ight is specified the cursor is moved to the first raster row past the Raster Height ESC rC End Raster Graphics Version C Same as Version B but Resets the compression mode to uncoded Sets the left gra...

Page 27: ...300 or 0x0258 600 Byte 10 11 Y res for C plane 0x012C 300 or 0x0258 600 Byte 12 13 C plane intensity levels 0x02 1 bit plane or 0x04 2 bits plane Byte 14 15 X res for M plane 0x012C 300 or 0x0258 600...

Page 28: ...ority 2 If download permanent otherwise next higher priority Set Status Readback Location Unit Sets the status location unit to the specified value The location unit is used along with the location ty...

Page 29: ...he picture frame ESC c K Size in inches 0 to 32767 GL 2 Horizontal Plot Size Specifies the horizontal scaling factor used when importing an image into the picture frame ESC c L Size in inches 0 to 327...

Page 30: ...6 SATO D512 PCL Programming Manual ESC o M b Print Quality This command is parsed and ignored ESC l M b Paper Type This command is parsed and ignored Table 1 18 Miscellaneous Commands continued Comman...

Page 31: ...and P2 IR GL 2 Input Relative P1 and P2 IW GL 2 Input Window Limited RO GL 2 Rotate Coordinate System SC GL 2 Scale Limited Table 1 20 Vector Group Escape Sequence Function Support AA GL 2 Arc Absolu...

Page 32: ...CF GL 2 Character Fill Mode Not supported CP GL 2 Character Plot Not supported DI GL 2 Absolute Direction Limited only right angles supported DI1 0 DI0 1 DI 1 0 and DI0 1 DR GL 2 Relative Direction No...

Page 33: ...upported SM GL 2 Symbol Mode Limited SP GL 2 Select Pen Limited SV GL 2 Screened Vectors Not supported TR GL 2 Transparency Mode Not supported UL GL 2 User Defined Line Type Not supported WU GL 2 Pen...

Page 34: ...on Mode command determines how raster data is coded It affects the amount of code required to create an image and the efficiency of image printing Syntax ESC b M Parameters 0 Uncoded default 1 Run Len...

Page 35: ...ve the cursor to 1 x 1 1 in from top margin and 1 in from left edge of logical page ESC t100R Set resolution to 100 dots per inch ESC r0F Rotate image to match current orientation ESC b0M Set compress...

Page 36: ...the second byte Can be from 0 no repetition to 255 The second byte is the data byte Example ESC p300x600Y Move cursor to 1 x 2 ESC b1M Set compression to Run Length ESC r1A Start raster graphics at c...

Page 37: ...ugh 127 the next Control 1 byte s uncoded For control values of 1 through 127 FF x 81 x the next byte is repeated Abs Control 1 times Example ESC p300x900Y Move cursor to 1 x 3 ESC b2M Set compression...

Page 38: ...m last unmodified byte 0 30 if the offset is 31 the next byte s is added to the offset until the next byte is not 255 Example ESC p300x1200Y Move cursor to 1 x 4 ESC b3M Set compression to Delta Row E...

Page 39: ...ssion to Adaptive Compression ESC b29W Raster Data 29 bytes follow 03 0009 x E0FFFFFFFFFFFFFFFF x Delta Row 8 at 0 FFFFFFFFFFFFFFFFh x 01 0006 x 0080 FB00 0001 x Run Length 1 80 x 6x 00 x 1 01 x 05 00...

Page 40: ...rs and long strings of bits represent less frequently used characters A probability tree determines which characters are frequently used Repeated patterns in a string of characters are identified and...

Page 41: ...aster Data commands are used Once the image is started with a Transfer Raster Data command no other commands are allowed until the entire image has been sent The following example prints a Group 4 ima...

Page 42: ...o then calls the logo macro in the body of a letter ESC f1Y Set the macro ID to 1 ESC f0X Start the macro definition ESC a 72H Relative move right 1 10 inch 72 720th ESC 8U Select Roman 8 symbol set E...

Page 43: ...O D512 PCL Programming Manual Page 2 1 1PRINTER JOB LANGUAGE PJL Command Notation Kernel Commands Job Separation Commands Environment Commands and Variables Status Readback Commands Status Message For...

Page 44: ...PJL command Note Parameters enclosed in square brackets are optional and not required for command execution The PJL interpreter requires uppercase for the PJL prefix for all PJL commands except the U...

Page 45: ...he PJL of the next PJL command ENTER LANGUAGE Command This command causes the printer to enter PCL emulation Syntax PJL ENTER LANGUAGE pcl CR LF Note You can use uppercase lowercase or mixed case PJL...

Page 46: ...job In addition use the JOB EOJ pair to accomplish the following Provide a job name Indicate which pages of the job should be printed Monitor the job status as it prints Syntax PJL JOB NAME job name S...

Page 47: ...ing of a particular portion of the job The emulator discards pages of a job until the page specified by this parameter is reached The first page range is from 1 to 2 147 483 647 Omission of the START...

Page 48: ...in conjunction with the JOB command Parameter NAME job name Use the NAME parameter to assign a character string name to a particular job The name may be any combination of printable characters spaces...

Page 49: ...environment variables and the PJL commands used to modify or query the variables The following commands modify the environment variables and are described in this section DEFAULT SET INITIALIZE RESET...

Page 50: ...iable value CR LF command modifier value The command modifier value parameter specifies the type of PJL variables to be modified The variables supported are listed in Table 2 2 PJL Variables on page 2...

Page 51: ...value The command modifier value parameter specifies the type of PJL variables to be modified The variables supported are listed in Table 2 2 PJL Variables on page 2 10 variable value The supported va...

Page 52: ...is changed to 255 60 JOBNAME SET only Print and Hold Jobname jobname jobname is a text string truncated to 24 characters Note A null string is an acceptable value and indicates no Print and Hold Jobn...

Page 53: ...invalid pitch is requested the printer selects the closest pitch 10 00 PTSIZE Default point size proportional spaced fonts 1 to 1008 in increments of 0 25 Note If an invalid point size is requested th...

Page 54: ...his section DINQUIRE Command This command is used to query the default setting NVRAM of the specified environment variable Syntax PJL DINQUIRE command modifier value variable CR LF Response Syntax PJL...

Page 55: ...command provides a method of capturing the status information returned by a specific print job Syntax PJL ECHO words CR LF Response Syntax PJL ECHO words CR LF FF words parameter The words parameter...

Page 56: ...F category Table 2 3 lists the supported categories INFO CONFIG Response Syntax An Example PJL INFO CONFIG CR LF USTATUS 4 ENUMERATED CR LF DEVICE CR LF JOB CR LF PAGE CR LF TIMED CR LF MEMORY 2097152...

Page 57: ...mand modifier value variable CR LF value CR LF FF command modifier value The command modifier value parameter specifies the type of PJL variables to be queried The variables supported are listed in Ta...

Page 58: ...CE and USTATUS TIMED commands ustatus variable value The following values are supported for the ustatus variable value parameter Table 2 4 USTATUS Unsolicited Status Variable Values Ustatus Variable V...

Page 59: ...age SATO D512 PCL Programming Manual Page 2 17 USTATUSOFF Command This command turns off unsolicited status Unsolicited status may also be turned off by using the USTATUS command on each variable Synt...

Page 60: ...nd USTATUS TIMED commands is described in this section INFORMATION MESSAGES Information messages are returned in this form CODE status code DISPLAY display string in double quotes ONLINE online status...

Page 61: ...SATO D512 PCL Programming Manual Page3 1 1PCL SUPPORT...

Page 62: ...Test Page 1 25 ESC a C Horizontal Cursor Position in Columns 1 13 ESC a G Duplex Page Side Selection 1 12 ESC a H Horizontal Cursor Position in Decipoints 1 13 ESC a L Set Left Margin 1 11 ESC a M Se...

Page 63: ...egistration 1 9 ESC l X Number of Copies 1 9 ESC l Z Short Edge Offset Registration 1 9 ESC n W operation string id Alphanumeric ID ESC p C Palette Control ESC p I Palette Control ID ESC p S Select Pa...

Page 64: ...1 17 ESC b M Set Raster Compression Mode 1 21 ESC b V data Transfer Raster Data by Plane 1 21 ESC b W data Transfer Raster Data by Row Block 1 22 ESC b Y Y Offset 1 21 ESC c A Horizontal Rectangle Siz...

Page 65: ...13 ESC r A Start Raster Graphics 1 21 ESC r F Raster Graphics Presentation Mode 1 21 ESC r S Raster Width Source 1 21 ESC r T Raster Height Source 1 21 ESC r U Simple Color ESC rB End Raster Graphics...

Page 66: ...1 25 ESC B Enter GL 2 Language 1 25 ESC 12345X Universal Exit Language UEL Start of PJL 1 10 Table 3 2 GL 2 Commands Supported Not Supported Command Page numbers reference command descriptions Printer...

Page 67: ...ll Type 22 1 29 FT Fill Type 9 1 29 IN Initialize 1 27 IP Input P1 and P2 1 27 IR Input Relative P1 and P2 1 27 IW Input Window 1 27 LA Line Attributes 1 29 LB Label Default Terminator 03 x 1 28 LO La...

Page 68: ...27 SD Define Standard Font 1 28 SI Absolute Character Size 1 28 SL Character Slant 1 28 SM Symbol Mode 1 29 SP Select Pen 1 29 SR Relative Character Size 1 28 SS Select Standard Font 1 29 SV Screened...

Page 69: ...SATO D512 PCL Programming Manual Page 4 1 1PJL SUPPORT...

Page 70: ...ay not have a full description Table 4 1 PJL Variables Supported Printer Model Not Supported Page numbers reference variable descriptions and are listed for supported variables only Default values are...

Page 71: ...ENTATION 2 10 OUTBIN PAGEPROTECT PAPER PARALLEL PASSWORD PERSONALITY POWERSAVE POWERSAVETIME PRINTQUALITY QTY RENDERMODE REPRINT RESOLUTION 2 10 RESOURCESAVE RESOURCESAVESIZE RET TIMEOUT Table 4 1 PJL...

Page 72: ...ER FONTSOURCE PITCH PTSIZE SYMSET Table 4 3 Common Variables for PostScript Emulation Supported Printer Model Not Supported Page numbers reference variable descriptions Variable Name Page D512 JAMRECO...

Page 73: ...ire 2 12 Echo 2 13 Info 2 14 Inquire 2 15 Ustatus 2 16 Ustatusoff 2 17 Table 4 5 USTATUS Unsolicited Status Variables Supported Printer Model Not Supported Page numbers reference variable descriptions...

Page 74: ...Unit 4 Printer Job Language Support Page 4 6 SATO D512 PCL Programming Manual...

Page 75: ...SATO D512 PCL Programming Manual Page 5 1 1BARCODE COMMANDS...

Page 76: ...0 5 Note The valid range is 0 to 5 regardless of the selection the human readable is printed with Roman Pillar Bold B size 0 Automatic font size default C style 0 Default bold 1 Bold 2 Bold Italic 3 B...

Page 77: ...4 4 N 14 Yes3 24632 EAN JAN 13 5 digit supplemental 74 4 4 N 17 Yes3 24640 Interleaved 2 of 5 28 8 1 N Even No 24641 Interleaved 2 of 5 check digit 28 8 1 N Odd Yes 24650 Industrial 2 of 5 28 8 1 N No...

Page 78: ...No 24761 MSI mod10 mod10 check digits 28 8 1 N Yes 24762 MSI mod10 mod10 check digits 28 8 1 N Yes 24763 MSI mod11 mod10 check digits 28 8 1 N Yes 24770 POSTNET 5 digit ZIP code 9 1 N 5 Yes 24771 POST...

Page 79: ...e data to be encoded The bar code data is encoded according to what was specified in the last valid Bar Code Descriptor command received If no valid Descriptor is sent then this command is ignored and...

Page 80: ...mode 2 postal code can be 0 to 9 digits Rule 4 A mode 3 postal code can be 0 to 6 alphanumeric characters any printable character in code set A as defined in AIM spec Rule 5 The country code must be 3...

Page 81: ...nted any character size and font available may be selected and the text may be printed anywhere desired near the symbol The text must not interfere with the bar code symbol or the quiet zones FUNCTION...

Page 82: ...level of error correction to use 0 8 In relation to the fields of the Sato Bar Code Descriptor for PDF417 the following correspondences exist when using this technique ECC Level Specified by p parame...

Page 83: ...SATO D512 PCL Programming Manual Page 6 1 1PRINTER LANGUAGE CHANGE COMMANDS Setting the printer to SBPL Setting the printer to PCL...

Page 84: ...inter to SBPL mode and causes all subsequent data to be processed as SBPL data The change is retained even if the printer is turned off Syntax PJL ENTER LANGUAGE SBPL CR LF Response None SETTING THE P...

Page 85: ...Unit 6 PRINTER LANGUAGE CHANGE COMMANDS SATO D512 PCL Programming Manual Page 6 3 ESC RN ESC Z...

Page 86: ...Unit 6 PRINTER LANGUAGE CHANGE COMMANDS Page 6 4 SATO D512 PCL Programming Manual This page intentionally left blank...

Page 87: ...1SATO CONTACTS 2 3 4...

Page 88: ...ERICA INC Regional Headquarters 10350 A Nations Ford Road Charlotte NC 28273 U S A Phone 1 704 644 1650 Fax 1 704 644 1662 Email satosales satoamerica com Website www satoworldwide com www satoamerica...

Reviews: