SATO Europe GmbH PROGRAMMING MANUAL SATO RISC PRINTERS CL408/412, CL608/612 (VA), XL400/410, M8400RV, M8459S, M8460S, M8485S, M8490S SATO Europe GmbH Im Hülsenfeld 13 40721 Hilden Germany Tel.:+49 (0)2103 9592-0 Fax.
© Copyright 1999 SATO Europe GmbH
Contents 1. Introduction .................................................................................... 7 1.1 The SATO RISC Programming Language .......................... 8 1.3 Selecting Protocol Control Codes ....................................... 8 1.4 Using Basic ......................................................................... 9 1.5 Printing with the Parallel Port ........................................... 10 1.6 Printing with the RS232 Port .............................................
Line Feed ..................................................................................... 61 Mirror Image (From Firmware Version1E2050, 1E3002 for 6xxVA) .................. 63 Off-Line/Pause ............................................................................. 72 Postnet ......................................................................................... 73 Print Darkness ............................................................................. 74 Print Length, Expanded ..............
Custom Protocol Command Codes Download ...........................117 3. Command Code Quick Reference ..............................................119 3.1 Instruction ........................................................................119 3.2 Calendar Option Commands .......................................... 129 3.3 Memory Card Option Commands ................................... 130 4. Bar Code Specifications ............................................................ 133 Codabar ....................
.2 6.3 6.4 6.5 Initial Checklist ................................................................ 188 Troubleshooting the Centronics (Parallel) Interface ....... 188 Troubleshooting the RS232C (Serial) Interface .............. 190 Error Signals M8400RV and M84S Series Printers (Some procedures are not NA for M-8459S) .................. 191 6.6 Error Signals CL408/412 ................................................ 192 6.7 Error Signals CL608/612 (VA) ........................................ 193 6.
Programming Manual 1. 1. Introduction Introduction This manual presents the commands that are used with the SATO RISC Printers to produce labels with logos, bar codes and alphanumeric data. All of the RISC commands use the same syntax. Some commands reference a physical point on the label using horizontal and vertical dot reference numbers. The allowable range for these references is dependent upon the particular printer to accomodate different print widths and resolutions.
1. Introduction Programming Manual 1.1 The SATO RISC Programming Language A programming language for a printer is a familiar concept to most programmers. It is a group of commands that are designed to use the internal intelligence of the printer. The commands, which are referred to as RISC Command Codes, contain non-printable ASCII characters (such as , , ) and printable characters.
Programming Manual 1. Introduction The Protocol Control codes are selected by a DIP switch DSW2-7 (Refer to the Operation Manual,). Control Character Description Standard DSW2-7 OFF NonStandard DSW2-7 ON STX 02 Hex 7B Hex = { Start of Data ETX 03 Hex 7D Hex = } End of Data ESC 1B Hex 5E Hex = ^ Command Code to follow NULL 7E Hex 7E Hex = ~ Cutter Command ENQ 05 Hex 40 Hex = @ Get printer status, Bi-Com mode CAN 18 Hex 21 Hex = ! Cancel print job, Bi-Com mode 1.
1. Introduction Programming Manual 4. You may want to minimize keystrokes and program size by assigning the character to a string variable since this character is used quite often. The following two examples in BASIC show a typical example using these hints. Both of these examples use the Standard Protocol codes. 1.
Programming Manual 1. Introduction 1.6 Printing with the RS232 Port 10 20 30 50 60 50 60 70 E$=CHR$(27) Sets the “E$” string as an character. OPEN “COM1:9600,N,8,1,CS,DS” AS #1; Opens the COM1 port for output and sets the parameters as 9600 baud, No parity, 8 Data bits, 1 Stop bit and instructs the port to ignore the CTS and DSR control signals. PRINT #1,CHR$ (2); Sends an (ASCII Code a decimal “2”) to the printer instructing it to prepare to receive a message.
1. Introduction Programming Manual 1.7 The Print Area The maximum print area for the various RISC printers are listed in the table on the next pages. Most of your label applications will not require tags/labels that fill the entire print area, therefore it is important to understand how to work with labels that do not use the entire print area.
Programming Manual 1. Introduction Print Area for CL Printers. CL 408 CL 412 CL 608 (VA) CL 612 (VA) Resolution 203 dpi 8 dot/mm 305 dpi 12 dot/mm 203 dpi 8 dot/mm 305 dpi 12 dot/mm Max print width 832 dots 4.1 in. 104 mm 1248 dots 4.1 in. 104 mm 1216 dots 6.0 in. 152 mm 1984 dots 6.5 in. 165 mm Max label width 5.0 in. 128 mm 5.0 in. 128 mm 7.0 in. 178 mm 7.0 in. 178 mm Standard print length 1424 dots 7.0 in. 178 mm 2136 dots 7.0 in. 178 mm 1424 dots 7.0 in. 178 mm 2136 dots 7.0 in.
1. Introduction Programming Manual Print Area for S-Type Printers M8485S M4890S M8460S M8459S Resolution 203 dpi 8 dot/mm 305 dpi 12 dot/mm 203 dpi 8 dot/mm 203 dpi 8 dot/mm Max print width 1024 dots 5.0 in. 128 mm 1344 dots 4.4 in. 112 mm 1216 dots 6.0 in. 152 mm 896 dots 4.4 in. 112 mm Max label width 5.2 in. 134 mm 5.2 in. 134 mm 6.4 in. 165 mm 5.2 in. 134 mm Standard print length 1424 dots 7.0 in. 178 mm 2136 dots 7.0 in. 178 mm 1424 dots 7.0 in. 178 mm 1424 dots 7.0 in.
Programming Manual 1. Introduction Print Area for XL and RV printers XL 400 XL410 M8400RV Resolution 203 dpi 8 dot/mm 305 dpi 12 dot/mm 203 dpi 8 dot/mm Max print width 800 dots 3.9 in. 100 mm 1200 dots 3.9 in. 100 mm 832 dots 4.1 in. 104 mm Max label width 4.0 in. 102 mm 4.0 in. 102 mm 5.0 in. 128 mm Standard print length 1920 dots 9.4 in. 240 mm 1920 dots 9.4 in. 240 mm 1424 dots 7.0 in. 178 mm Expanded print length using AX 2848 dots 14.0 in.
1. Introduction Programming Manual There are two methods available to make sure your printed output will appear correctly on your label. They are as follows: 1.8 First Method: Using Base Reference Point Send the Base Reference Point command as part of your data to the printer to set a new base reference point for your label. Calculate the distance (in dots) from the normal base reference point to the closest edge of the label.
Programming Manual 1. Introduction On the following 2 pages, the methods above are described with a sample tag/label output. These samples reflect how the printed information would appear on a 128mm wide label. If you want to test any of the sample tag/ label outputs and are using tags/labels less than 128mm in width, we suggest that you add the Base Reference Point command to the data stream in order for the images to print on your tags/labels.
1.
95mm 1. Introduction 70mm Label feed direction Programming Manual 165mm The image is moved horizontally to the right 95mm (1140 dots) so that it can be printed on a 70mm wide label. For more information, see the Base Reference Point command description.
1. Introduction Programming Manual This page is intentionally left blank.
Programming Manual 2. 2. Command Codes Command Codes This section contains all the RISC printer Command Codes. The commands must be sent to the printer in an organized fashion in order for the label(s) to print. The objective of this chapter is to explain the different commands and provide examples of their usage, as well as to provide a detailed reference for programming the printers. Each command begins on a separate page with its own heading.
2.
Programming Manual 2. Command Codes Function: To print bar code images on a label. With this command, there are 13 standard bar code symbologies available to be printed and three two dimensional symbols. Each of the bar codes are unique, and it is important to know the differences.
2.
Programming Manual 2.
2. Command Codes Programming Manual Note: 1. UPC and EAN bar codes are not affected by the different types of narrow to wide ratios. Instead, the D command adds descender bars to these codes where needed to meet UPC specifications. The BD command puts decender bars and human readable text below the symbol. 2. The Code 128, UCC 128, MSI, and Code 93 bar codes are not affected by the narrow to wide ratios. 3.
Programming Manual 2. Command Codes Bar Codes, Expansion Command Structure: BWaabbb aa: Expansion factor by which the width of all bars and spaces will be increased (01-12) bbb: Bar height by dot (004-600 dots) Example: BW02100 Placement: Immediately follows the BT command and precedes data to be encoded. Default: None Function: This command works together with the BT command to specify an expansion factor and the bar code height for the particular symbol being printed.
2.
Programming Manual 2. Command Codes Note: 1. This command must be immediately followed by the BW Bar Code Expansion command. 2. You may use only one variable ratio bar code per label. 3. If the data specified in this command is incorrect, the command is ignored and the ratio used will be based on the previous setting.
2. Command Codes Programming Manual Base Reference Point Command Structure: A3H-aaaaVbbbb -: This character is optional. When present, it specifies that the horizontal offset is in the negative direction. If it is left out the offset direction is positive.
Programming Manual 2. Command Codes Note: 1. Use of this command will set the Vertical/Horizontal Offset setting of the printer configuration until a new Base Reference Point command is issued or the setting is changed from the operator panel. 2. This command may be used more than once in a print job. 3. An alternative to using this command is to make changes to your current Horizontal and Vertical Print Position commands.
2. Command Codes Programming Manual Characters, Custom-Designed Command Structure: Store Command Tabcc Recall command Kab90cc a: Matrix size 1: 16x16 matrix 2: 24x24 matrix b: Specifies the character encoding method for the data stream H: Hexadecimal characters B: Binary characters cc: Memory location to store/recall the character.
Programming Manual 2. Command Codes Input: T1H3F 0100038007C00FE01FF03FF87FFCFFFE07C007C007C007C007C00 7C007C007C0 Z A H150V100L0505K1H903F W2434SH Output: Note: 1. When printing the custom character using the Recall command, the character is affected by the following commands: 2. Character Expansion 3. Character Pitch 4. Line Feed 5. Rotate, Fixed Base Reference Point 6. Rotate, Moving Base Reference Point 7.
2. Command Codes Programming Manual Character Expansion Command Structure: Laabb aa: bb: Example: Placement: Default: Multiple to expand horizontally (01-12) Multiple to expand vertically (01-12) L0305 Preceding the data to be expanded L0101 Function: To expand characters independently in both the horizontal and vertical directions. The command allows you to enlarge the base size of each font (except the vector font) up to 12 times in either direction.
Programming Manual 2. Command Codes Note: 1. This command will expand the following fonts: Fonts U, S, M, XU, XS, XM, OA & OB and fonts WB, WL, XB and XL. 2. This command will also affect the following commands: Character Pitch Characters, Custom-Designed 3. The Character Expansion value is in effect for the current print job until a new expansion command is specified. 4. The Line and Box command, if used within the data stream, may return all subsequentext to the default expansion of 1x1.
2. Command Codes Programming Manual Character, Fixed Spacing Command Structure: PR Example: Placement: Default: See Above Preceding the data The default is Proportional Spacing. Function: To reset proportional spacing and place the printer to fixed spacing. Input: A H0025V0050PS L0202XMPROPORTIONAL SPACING H0025V0130PR L0202XMFIXED SPACING Q1Z Output: Note: 1.
Programming Manual 2. Command Codes Character Pitch Command Structure: Paa aa: Example: Placement: Default: Number of dots between characters (00-99) P03 Preceding the text to be printed P02 Funktion: To designate the amount of spacing (in dots) between characters. This command provides a means of altering character spacing for label constraints or to enhance readability.
2. Command Codes Programming Manual Note: 1. This command is affected by the L Character Expansion command . The character pitch is actually the product of the current horizontal expansion multiple and the designated pitch value. Example: L0304 P03 Pitch = (03) x (03) = 9 dots 2. To avoid confusion, you may want to include the L Character Expansion command and this command together in your program. 3.
Programming Manual 2. Command Codes Character, Proportional Spacing Command Structure: Reset to proportional spacing PS (default) Set to fixed spacing PR Example: See above Placement: Preceding the data to be proportional spaced Default: PS Function: To specify the printing of proportional or fixed spacing for proportionally spaced fonts.
2. Command Codes Programming Manual Clear Print Job(s) & Memory Command Structure: *a a: Example: Placement: Default: specifies which part of the memory has to be cleared. If the “a” parameter is not included with this command and the printer is in the multi-buffer mode, this command clears all print jobs in the printer memory, including the current print job.
Programming Manual 2. Command Codes Continuous Forms Printing No Command Structure The printer locates the end of an adhesive label by sensing the backing between labels or through the use of an eye-mark (black rectangle on the reverse side of the backing). It locates the end of a tag from a notch, eye-mark, or a hole between tags. Both sensors should be disabled when printing continuous forms by placing the Label Sensor Selection switch (DSW3-3) in the ON position.
2. Command Codes Programming Manual Copy Image Area Command Structure: WDHaaaaVbbbbXccccYdddd aaaa: Horizontal position of the top left corner of the area to be copied bbbb: Vertical position of the top left corner of the area to be copied cccc: Horizontal length of the image area to be copied dddd: Vertical length of the image area to be copied Example: WDH0100V0050X0600Y0400 Placement: Anywhere within the data stream, after specifying the location of the duplicate image.
Programming Manual 2. Command Codes Note: 1. Use the Print Position commands (V and H) to locate the new area for the duplicate image. 2. Position of the new target area must not be inside the original image. 3. If you use the Rotate command, V, H, X and Y axis will be reversed. 4. If the reference area of the target image exceeds the print area, it will not be printed. 5.
2. Command Codes Programming Manual Cutter Command Command Structure: aaaa aa: Number of labels to print between each cut (01-9999) Example: 0002 Placement: Following the Print Quantity command Q Default: 0001 (if cutter enabled) Function: To control the cutting of labels when using a SATO cutter unit with the printer printer. This command allows the cutting of a multi-part tag or label at a specified interval within a print job.
Programming Manual 2. Command Codes Fonts U, S, M, OA, OB, XU, XS & XM Command Structure: Font XU Font U Font XS Font S Font XM Font M Font OA Font OB Example: Placement: Default: XU U XS S XM M OA OB See above Preceding the data to be printed None Function: To print text images on a label. These are eight of the built-in fonts available on the printer. All matrices include descenders.
2. Command Codes Programming Manual Input: APS H0001V0100L0202XUM-8400RV H0001V0175L0202XSM-8400RV H0001V0250L0202XMM-8400RV H0001V0325L0101OAM-8400RV H 0001V0400L0101OBM-8400RV H0300V0100L0202UM-8400RV H0300V0175L0202SM-8400RV H0300V0250L02 02MM-8400RV Q1Z Output: Note: 1.
Programming Manual 2.
2. Command Codes Programming Manual Output: Note: 1. If the font size designation is out of the specified range, a default value of 50 is used. 2. The Pitch command can be used with Vector fonts. 3. The font width and height values include asenders, desenders and other space. ascenders Äg } 64 % descenders 4. A font must be defined for each field to be printed. There is no default font.
Programming Manual 2. Command Codes Fonts WB, WL, XB & XL Command Structure: Font WB Font XB Font WL Font XL a: Example: Placement: Default: WBa XBa WLa XLa 0 Disables auto-smoothing of font 1 Enables auto-smoothing of font (see Note below) WB1123456 Preceding the data to be printed None Function: To print text images on a label. These are the four auto-smoothing fonts available on the printer.
2. Command Codes Programming Manual Input: APS H0001V0100WB0M-8400RV H0001V0185WB1M-8400RV H0001V0270WL0M-8400RV H0001V0355WL1 M-8400RV H0300V0100XB0M-8400RV H0300V0185XB1M-8400RV H0300V0270XL0M-8400RV H0300V0355XL1M-8400RV Q1Z Output: Note: 1. Auto-smoothing (when enabled) is only effective if the character expansion rate is at least (3) times in each direction. 2.
Programming Manual 2.
2. Command Codes Programming Manual Form Overlay, Recall Command Structure: / Example: Placement: Default: See above Must be preceded by all other data and placed just before the Print Quantity command (Q) None Function: To recall the label image from the form overlay memory for printing. This command recalls a stored image from the overlay memory. Additional or different data can be printed with the recalled image.
Programming Manual 2. Command Codes Form Overlay, Store Command Structure: & Example: Placement: Default: See above Must be preceded by all other data and placed just before the Stop command (Z) None Function: To store a label image in the volatile form overlay memory. Only one label image may be stored in this memory area at a time.
2. Command Codes Programming Manual Graphics, Custom Command Structure: Gabbbccc(data) a: Specifies format of data stream to follow B Binary format H Hexadecimal format bbb: Number of horizontal 8 x 8 blocks (001-248) ccc: Number of vertical 8 x 8 blocks (001-267) (data): Hex data to describe the graphic image Example: GH006006 Placement: May be placed anywhere within the data stream after the necessary position commands.
Programming Manual 2. Command Codes C00003C00003 C00003C00003 C00003C00003 C00003C00003 C00001800003 C00000000003 C00000000003 FFFFFFFFFFFF FFFFFFFFFFFF H0300V0100XSPLEASE PLACE YOUR DISK H0300V0150XSIN A SAFE PLACE Q1Z Output: Note: 1. Do not use ASCII or characters (carriage return or line feed) as line delimiters within the graphic data or the actual image will not be printed as specified. 2.
2. Command Codes Programming Manual Graphics, PCX Command Structure: GPaaaaa,(data) aaaaa: Number of bytes to be downloaded Example: GP32000, ... data... Placement: Anywhere within the job data stream Default: None Function: To allow the creation and printing of graphic images using a PCX file format. Input: A V0150H0100GP03800,(...Data...) Q1 Z Output: Note: 1. The maximum number of bytes that can be downloaded is 32K (compressed).
Programming Manual 2. Command Codes Job ID Store Command Structure: IDaa aa: Example: Placement: Default: Job ID assigned (01 to 99) ID09 Immediately following the A in the job data stream. None Function: To add an identification number to a job. The status of the job can then be determined using the ENQ command in the Bi-Com status mode (See Interface Specifications for more information). Input: A ID02 . . . Job . . .
2. Command Codes Programming Manual Journal Print Command Structure: J Example: Placement: Default: See above Immediately following A None Function: To print text in a line by line format on a label. By specifying this command, you automatically select Font XS with a Character Expansion of 2x2. You also establish a base reference point of H2,V2. The character pitch is 2 dots and the line gap is 16 dots. Simply issue an ASCII at the end of each text line.
Programming Manual 2.
2. Command Codes Programming Manual Note: 1. It is recommended that all lines and boxes be specified in the normal print direction. 2.
Programming Manual 2. Command Codes Line Feed Command Structure: Eaaa aaa: Number of dots (001-999) between the bottom of the characters on one line to the top of the characters on the next line Example: E010 Placement: Preceding the text that will use the line feed function Default: None Function: To print multiple lines of the same character size without specifying a new print position for each line. With the Line Feed command, specify the number of dots you want between each line.
2. Command Codes Programming Manual Note: 1. This command can be used for text as well as for bar codes. 2. It is effective only for the current data stream. 3. When printing lines or boxes in the same data stream with the Line Feed command, the Lines and Boxes command should be specified last, preceding Q Quantity command. 4. This command is invalid only if the value specified is zero. 5. The rotation command can be used with this command. 6.
Programming Manual 2. Command Codes Mirror Image (From Firmware Version1E2050, 1E3002 for 6xxVA) Command Structure: RMaaaa, bbbb aaaa: Horizontal position of the top left corner of the image area to be mirrored 0008 ~ 9999 dot. bbbb: Vertical position of the top left corner of the image area to be mirrored 0008 ~ 9999 dot. Example: RM0150, 0050 Function/Placement: This command allows you to print a data as mirrored, not only whole or part of data.
2.
Programming Manual 2.
2. Command Codes Programming Manual 1.
Programming Manual 2. Command Codes 2. Mirror Image with Rotation Mirror position is changed if is specified with <%> command.
2. Command Codes Programming Manual 3. Mirror Image with specifying area Input: A V100H100XM12345 V100H100RM0150, 0050 V200H100XMABCDEF V300H100XMabcdefgh Q1Z Output: 4.
Programming Manual 2. Command Codes Output: 5. In case of specifying mirror command after the last print field.
2. Command Codes Programming Manual 6. <%> specifying effects on command only In this case a base mirror position is only changed Input: A V100H100XM12345 V200H100XMABCDEF V300H100XMabcdefgh %1RM Q1Z Output: 7.
Programming Manual 2.
2. Command Codes Programming Manual Off-Line/Pause Command Structure: @,nn...n nn...n: Optional message to be displayed on the LCD. Maximum of 32 characters Example: See above Placement: Anywhere in the print job between A and Z Default: None Function: To specify the printer to come to an off-line state. When used within a print job, the printer goes off-line after finishing the print job. Input: A @,Load Blue Labels and place printer On-Line . . . Job . . .
Programming Manual 2. Command Codes Postnet Command Structure: BPn...n n...
2. Command Codes Programming Manual Print Darkness Command Structure: #Ea a: Example: Placement: Default: Print darkness value (see Note for allowable setting) #E2 Must be placed immediately after A and immediately before Z in its own separate data stream See Note Function: To specify a new print darkness setting. This command allows software control of the darkness setting for unique media and ribbon combinations.
Programming Manual 2. Command Codes Print Length, Expanded Command Structure: Normal length AR Expanded length AX AX: Sets the print length to 14" (356 mm) AR: Resets the maximum print length to 7" (178 mm) Example: See above Placement: Must follow the Start Code command and be in it’s own separate data stream. Default: AR Function: To double the maximum print length (in feed direction) for a label.
2. Command Codes Programming Manual Print Position Command Structure: Horizontal Position Haaa Vertical Position Vbbb aaaa: Number of dots horizontally from the base reference point (1 to maximum) bbbb: Number of dots vertically from the base reference point (1 to maximum) Example: H0020V0150 Placement: Preceding any printed field description of lines/boxes, fonts, bar codes or graphics.
Programming Manual 2. Command Codes Note: 1. The print position of a field is affected by both the Rotate (R and A3) commands. 2. For print lengths greater than 14 inches an optional Memory Card must be used. 3. If any part of an image is placed past the maximum number of dots for standard length and or the capacity of the memory card, that part of the image will be lost. 4. If any part of an image is placed past maximum allowable dots across the label, that part of the image will be lost. 5.
2. Command Codes Programming Manual Print Quantity Command Structure: Qaaaaaa aaaaaa: Total number of labels to print (1-999999) Example: Q500 Placement: Just preceding Z, unless NUL exists, then preceding that. This command must be present in every print job. Default: None Function: To specify the total number of labels to print for a given print job. Input: A H0100V0100WB1M-8400RV Q3 Z Output: Three labels containing the data “M-8400RV” will be printed.
Programming Manual 2. Command Codes Print Speed Command Structure: CSa a: Example: Placement: Default: Designates the speed selection See Note for allowable settings CS6 Must be placed immediately after A and immediately before Z in its own separate data stream As previously set in the printer configuration Function: To specify a unique print speed through software for a particular label.
2.
Programming Manual 2. Command Codes Repeat Label Command Structure: C Example: Placement: Default: See above Must be placed immediately after A and immediately before Z in its own separate data stream None Function: To print duplicate of the last label printed Input: A C Z Output: A duplicate of the previous label will be printed. Note: This command will have no effect if the power to the printer was cycled off and back on since printing the previous label.
2. Command Codes Programming Manual Replace Data (Partial Edit) Command Structure: 0 (zero) Example: See above Placement: Must follow A and precede all other print data Default: None Function: To replace a specified area of the previous label with new data. This command will cause the previous label to print along with any changes specified within the current data stream.
Programming Manual 2. Command Codes fewer characters than the old data, then the characters not replaced will still be printed. 2. This command will not function if the power has been cycled off and back on since the last label was printed. 3. Proportional Pitch text cannot be used with this command.
2. Command Codes Programming Manual Reverse Image Command Structure: (aaaa,bbbb a: Horizontal length in dots of reverse image area b: Vertical height in dots of reverse image area. See Note 6 for field ranges Example: (100,50 Placement: This command must be preceded by all other data and be placed just before Q Default: None Function: To reverse an image area from black to white and vice versa.
Programming Manual 2. Command Codes 2. If using reverse images with the form overlay, place this command before the Form Overlay command in the data stream. 3. If the Rotate commands are used with this command, the V and H parameters are reversed. 4. If the height and width to be reversed contain other than alphanumeric data, the area is not printed. 5. If the values specified exceed the maximum ranges, the reverse image is not created. 6.
2. Command Codes Programming Manual Rotate, Fixed Base Reference Point Command Structure: %a a: Example: Placement: Default: 0 Sets print to normal direction 1 Sets print to 90°CCW 2 Sets print to 180° rotated (upside down) 3 Sets print to 270° CCW %3 Preceding any printed data to be rotated %0 Function: To rotate the print direction in 90° increments without changing the location of the base reference point. The diagram below illustrates the use of the % Rotate command.
Programming Manual 2. Command Codes Note: 1. Do not combine this command and the R Rotate command in the same data stream. 2. The specified values are valid until another Rotate (%) command is received. 3. Receipt of a Stop Print (Z) command will reset the setting to the default value.
2. Command Codes Programming Manual Rotate, Moving Base Reference Point Command Structure: Normal Direction: N Rotated Direction: R Example: See above Placement: Preceding any printed data to be rotated Default: N Function: The R command rotates the printing of all subsequent images in a print job by 90° counterclockwise each time it is used. It also moves the base reference point to a different corner of the print area.
Programming Manual 2. Command Codes Output: Note: 1. Do not combine this command and the % rotate command in the same data stream. 2. A custom graphic is not affected by this command. Therefore, always design and locate your graphic image to print in the appropriate orientation. 3. The specified values are valid until another Rotate (R) command is received. 4. Receipt of a Stop Print (Z) command will reset the setting to the default value.
2. Command Codes Programming Manual Sequential Numbering Command Structure: Faaaabcccc,dd,ee aaaa: Number of times to repeat the same data (0001-9999) b: Plus or minus symbol (+ for increments; - for decrements) cccc. Value of step for sequence (0001-9999) ,dd: Number of digits for sequential numbering (01-99). The first incrementing character position starts after the positions exempted from sequential numbering as specified in ee. If these digits are left out, the default is 8.
Programming Manual 2. Command Codes Output: Note: 1. The value specified for Print Quantity should be equal to the number of different sequential values desired multiplied by the number of repeats specified. Example: To print 2 sets each of the numbers 1001-1025 on separate labels, we need 50 total labels. The commands would be as follows: A H0100V0100F002+001XM1001 Q50 Z 2. It is necessary to specify the print position for each sequential field on a label. 3.
2. Command Codes Programming Manual Start/Stop Label Command Structure: Start Command:A Stop Command:Z Example: See above Placement: A must precede data Z must follow data Default: None Function: For all print jobs, the Start command must precede the data, and the Stop command must follow. The print job will not run properly if these are not in place.
Programming Manual 2. Command Codes Calendar Option Commands The following commands in this section require the Calendar option. (SEG No.
2. Command Codes Programming Manual Calendar Increment Command Structure: WPabbb a: Y Years M Months D Days h Hours bbb: Numeric data: Years (0-9), Months (00-99), Days (000-999), Hours (000-999), Example: WPM03 Placement: Anywhere within the data stream Default: None Function: To add a value to the printer’s current date and/or time, which may then be printed on the label. This command does not change the printer’s internal clock setting.
Programming Manual 2. Command Codes Note: 1. This command requires the Calendar Option. See your SATO representative for more details 2. Once the year increments past “99” it will wrap back to “00”. 3. This command can only be used once per data stream. 4. The printer’s internal clock may be set through the Calendar Set command. 5. If a print quantity of more than one label per job is used, the same time and date will be on each label of the entire print job.
2. Command Codes Programming Manual Calendar Print Command Structure: WA aaa...a *YYYY 4 digit Year: 1981 ~ 2080 YY last 2 digit Year: 00 ~ 99 MM Month: 01 ~ 12 DD Day: 01 ~ 31 hh 12 Hour: 00 ~ 23 mm Minute: 00 ~ 59 *ss Second: 00 ~ 59 *TT AM/PM: AM, PM (Do not use for numeric barcode) *HH 24 Hour: 00 ~ 11 *JJJ Julian Date: 001 ~ 366 *WWWeek: 00 ~ 53 *ww Week: 01 ~ 54 Example: XB1WADD/MM/YYYY/WW Placement: Anywhere within the data stream .
Programming Manual 2. Command Codes Output: ** * * * * * Note: 1. This function requires the Calendar Option. See your SATO representative for details. 2. The date and time elements may be placed in any order for printing. 3. Use a slash (/) to separate date elements and a colon (:) to separate time elements. 4. The font for the date/time elements must be specified before this command. 5. The printer’s internal clock may be set through the Calendar Set command. 6.
2. Command Codes Programming Manual Calendar Set Command Structure: WTaabbccddee aa Year (01-99) bb Month (01-12) cc Day (01-31) dd Hour (00-23) ee Minute (00-59) Example: WT9101311200 Placement: This command must be sent in an independent data stream. Default: None Function: To set the time and date of the printer’s internal clock. Input: A WT9312251300 Z Output: There is no printer output for this command.
Programming Manual 2. Command Codes Memory Card Option Commands These commands require the Memory Card Option. Note: Before a Memory Card can be used for the first time, it must be initialized using the BJF command. If it is not initialized, the printer will not recognize the card and respond as if no card was installed.
2.
Programming Manual 2. Command Codes Memory Card Function Expand Memory Area Command Structure: EXa a: Example: Placement: Default: Memory Designation 0 Use Printer Memory 1 Use Memory Card Slot 1 2 Use Memory Card Slot 2 EX1 In its own data stream imediately after powering on. None Function: This command expands the memory available to image labels by using the Memory Card. Input: A EX2 Z Output: There is no printer output as a result of this command. Note: 1.
2. Command Codes Programming Manual Memory Card Function Fonts, TrueType Recall Command Structure: BJRabbccddeeeeff...f a: Font ID (0 thru 9) bb: Horizontal Expansion (01 thru 12) cc: Vertical Expansion (01 thru 12) dd: Character Pitch (01 thru 99) eeee: Number of characters to be printed using the font f f f f: Data to be printed Example: BJR1020201000004SATO Placement: Immediately following the CC Slot Select command.
Programming Manual 2. Command Codes Memory Card Function Fonts, TrueType Store Command Structure: Begin Download BJ( aa...abb..b Download BJDcccccddddee...e End DownloadBJ) aa..a: 40 byte font description bb..b: 10 byte date information ccccc: Memory offset (hexadecimal) dddd: Number of data bytes to be stored (0001-2000) ee...
2. Command Codes Programming Manual Memory Card Function Format/Field Recall Command Structure: YR,aa /D,bb,cc...c aa: Format number to be recalled (01-99) bb: Field number to be recalled (01-99) cc...c: Data to be placed in recalled field. Example: YR,01/D,01,99 Placement: Immediately after CC Slot Select command Default: None Function: To recall a field from a stored format and place new data in the field.
Programming Manual 2. Command Codes Memory Card Function Format/Field Store Command Structure: YS,aa/N,bb,cc{.......} aa: Format number to be stored (01-99) bb: Field number to be stored (01-99) cc: Length of field to be stored (01-99) {.....}: Command stream describing the field to be stored. Example: YS,01/N,01,05 Placement: Immediately after CC Slot Select command. Default: None Function: To store a format field description in the memory card.
2.
Programming Manual 2. Command Codes Memory Card Function Graphics, Custom Recall Command Structure: GRaaa aaa: Graphics storage number (001-999) Example: GR111 Placement: The Recall command is sent in a secondary data stream to print the graphic, and follows any necessary position or size commands. Default: None Function: Use the Recall command any time you want to print a graphic image on a label along with other printed data.
2. Command Codes Programming Manual Note: 1. The graphic image to be stored cannot be rotated before it is stored. It can be rotated when it is recalled. 2. Graphic images cannot be stored as part of a label format. 3. See the GI Custom Graphic Store command.
Programming Manual 2. Command Codes Memory Card Function Graphics, Custom Store Command Structure: GIabbbcccddd{data} a: Specifies character format of the data H Hex data B Binary data bbb: Number of horizontal 8 x 8 blocks (001-248) ccc: Number of vertical 8 x 8 blocks (001-267) ddd: Graphics storage number (001-999) {data}: Hex or binary data to describe the graphic image Placement: Immediately following the CC Slot Select command.
2. Command Codes Programming Manual GIHaaabbb001(DATA) Z A GIHaaabbb002(DATA) Z Example of incorrect data stream: A GIHaaabbb001(DATA) GIHaaabbb002(DATA) Z 5. Do not use ASCII or characters (carriage return or line feed) as line delimiters within the graphic data or the actual image will not be printed as specified. 6. The graphics storage number (ddd) must be specified with this command.
Programming Manual 2. Command Codes Memory Card Function Graphics, PCX Recall Command Structure: PYaaa aa: Storage area number (001 thru 099) Example: PY001 Placement: This command must be placed within its own data stream specifying the placement of the graphic. Default: None Function: To recall for printing a graphic file previously stored in a PCX format in the Memory Card.
2. Command Codes Programming Manual Memory Card Function Graphics, PCX Store Command Structure: PIaaa,bbbbb,{data} aaa: Storage area number (001 thru 999) bbbbb: Size of PCX file in bytes {data}: Data Example: PI001,32000,{data} Placement: This command must be placed within its own data stream Default: None Function: To store for later printing a PCX graphic file in the Memory Card. Input: BASIC Program to Download a PCX file to Memory Card #1, Location #1 OPEN “C:\WIZARD\GRAPHICS\LION.
Programming Manual 2. Command Codes Memory Card Function Initialize Command Structure: BJFaaaaaaaa aaaaaaa: Eight character alphanumeric user ID Example: BJFsatocard Placement: Immediately following the CC Slot Select command. Default: None Function: This clears all of the data from Memory Card in the specified slot and prepares the card to accept data. Input: A CC2BJFsatocard Z Output: There is no printer output as a result of this command. Note: 1.
2. Command Codes Programming Manual Memory Card Function Slot Select Command Structure: CCa a: Example: Placement: Default: Memory Card Slot 1 Slot 1 2 Slot 2 CC1 Immediately following the A Start Code. Last selected Memory Card Slot. Function: Selects the card slot to be used for following Memory Card commands. Input: A CC1 {commands} Z Output: There is no printer output as a result of this command. Note: 114 This command requires the Memory Card option.
Programming Manual 2. Command Codes Memory Card Function Status Command Structure: BJS Example: Placement: Default: BJS After the CC Slot Select command. None Function: Casues the printer to print the card status. Input: A CC1BJS Z Output: Note: 1. This command requires the Memory Card option. See your SATO representative for more information 2.
2.
Programming Manual 2.
2. Command Codes Programming Manual Note 1. Commas must be used to separate the parameters. If a parameter is omitted between two commas, the default Non-Standard Protocol Command codes for that parameter will be used. 2. This command must be sent as an independent data stream immediately following the A Start code and immediately preceding the Z Stop code. No other commands can be included in the data stream. 3.
Programming Manual 3. 3. Command Code Quick Reference Command Code Quick Reference 3.1 Instruction A A(space)Z AR AX A3H-aaaa Vbbbb Babbcccd Start Code. Begins all print jobs. Form Feed. Feeds a blank tag or label. Normal Print Length. This command resets the printer to the Standard print length (7 inches). Expanded Print Length. This command sets the printer to the Expanded print length (14 inches). Base Reference Point. Establishes a new base reference point position in dots for the current label.
3. Command Code Quick Reference Dabbcccd BKaabbcdd eeefffnn...n BPn...n BTabbccddee 120 Programming Manual Bar Codes. Prints a 2:5 ratio bar code, except for UPC, EAN, Code 93, Code 128 and UCC128 symbols, which are fixed width bar codes. For values a, bb, ccc and d see instructions for Babbcccd. For UPC/EAN bar codes, this command puts descender bars and humand readable text below the symbol. PDF417. Prints PDF417 2-D symbols. aa = Minimum module dimension (03-09 dots).
Programming Manual bb cc dd ee BVaaa,bbb, cccccc,dddd, ee...e BWaabbb BXaabbccdd eeefffghh 3. Command Code Quick Reference = Narrow space in dots (01-99) = Wide space in dots (01-99) = Narrow bar in dots (01-99) = Wide bar in dots (01-99) Maxicode. Prints Version 0 2-D Maxicode symbols. aaa = Service class, numeric only (001-999). bbb = Country code, numeric only (001-999). cccccc= ZIP code, alphanumeric (000000-999999). dddd = Extended ZIP code, numeric only (00019999) ee...
3. Command Code Quick Reference C CSa Dabbcccd DCxx...x Eaaa Faaaabcccc ddee FWaaHbbbb FWaabbVccc Hdddd FWccVddd 122 Programming Manual Repeat Label. Prints a duplicate of the last label printed. Print Speed Selection. Specifies a unique print speed in in./sec. through software for a particular label. Bar Codes. Prints 1:2 ratio bar code. For UPC and EAN bar codes, this will add descender bars. For values a, bb, ccc and d see instructions for Babbcccd. Data Matrix. Print Data.
Programming Manual FXaaabccc dddeee Gabbbccc (data) GPaaaaa Haaaa IDaa J Kab90cc 3. Command Code Quick Reference Data Matrix. Sequential Numbering. Prints sequential numbered Data Matrix 2-D symbols. aaa = Number of duplicate labels (001-999) b = Increment or decrement + Increment - Decrement ccc = Increment/decrement steps (001-999) ddd = Sequential numbering start position (001-999). Referenced to left side. eee = Incremented data length (001-999). Measured from start position. Custom Graphics.
3. Command Code Quick Reference Laabb LD,a,b,c,d, e,f,g,i M N OA OB Paa PR PS Qaaaaaa 124 Programming Manual 2 24 x 24 matrix b = Indicates the format that data stream was stored in B Binary H Hexadecimal bb = Memory location where the character was stored. Valid locations are 21 to 52 or “!” to “R” in hex values. Character Expansion. Expands characters in both directions. aa = Multiple to expand horizontally (01-12) bb = Multiple to expand vertically (01-12) Download Protocol Command Codes.
Programming Manual R S Tabcc(data) U Vbbbb WBa 3. Command Code Quick Reference Rotate, Moving Base Reference Point. Rotates the printing of all subsequent images by 90 degrees counterclockwise each time it is used. Also moves the base reference point. Font type. Specifies the 8W x 15H dot matrix font (including descenders). Store Custom Designed Characters. To create and store custom characters or images in the printer’s volatile memory. See Kab90cc to recall the character for printing.
3. Command Code Quick Reference WLa XBa XLa XM XS XU XWa Z %a $a,b,c,d 126 Programming Manual Font type. Specifies the 28W x 52H dot matrix font (including decenders). a = 0 Disables auto-smoothing of font 1 Enables auto-smoothing if expansion is greater than 3 Font type. Specifies the 48W x 48L dot matrix font (including descenders). a = 0 Disables auto-smoothing of font 1 Enables auto-smoothing if expansion is greater than 3 Font type. Specifies the428W x 48H dot matrix font (including decenders).
Programming Manual $=(data) #Ea (aaaa,bbbb & / 0 (zero) *a @, nn...n 3. Command Code Quick Reference b = Font width (50-999 dots*) c = Font height (50-999 dots*) d = Font variation (0-9) as follows: 0 Standard 1 Standard open (outlined) 2 Gray (mesh) pattern 1 3 Gray (mesh) pattern 2 4 Gray (mesh) pattern 3 5 Standard, shadow 1 6 Standard, shadow 2 7 Standard mirror image 8 Italic 9 Italic open (outlined) Data for Vector font. Print Darkness. Specifies a new print darkness setting.
3. Command Code Quick Reference ~aaaa 128 Programming Manual Cutter Command. Controls the cutting of labels when using the optional SATO cutter unit. (A can be used in place of the “~”.
Programming Manual 3. Command Code Quick Reference 3.2 Calendar Option Commands WA(elements) Calendar Print. Prints the date and/or time field (up to 16 characters) from the printer’s internal clock. Use slash to separate date elements and colon to separate time elements.
3. Command Code Quick Reference Programming Manual 3.3 Memory Card Option Commands BJ(aa..abb..b Start TrueType Font Storage. Prepares the Memory Card to accept TrueType font data. aa...a = 40 byte font description bb...b = 10 byte date field BJDcccccdddd ee...e Download TrueType Font Data. Downloads the TrueType font data to the memory area specified. ccccc = Memory Offset (hexadecimal) dddd = Data size in bytes (max = 2000) ee...e = Font data to be downloaded BJ) End TrueType Font Storage.
Programming Manual GIabbbcccdd ee...e GRcc PIaa,bbbbb, cc...c PYaa YR,aa /D,bb,cc...c YS,aa /Nbb,cc *abb 3. Command Code Quick Reference Store Custom Graphics. Stores a graphic image in the memory card to be called later for printing on a label. a = Specifies format of data stream to follow B Binary H Hexadecimal bbb = Number of horizontal 8 x 8 blocks (001-248) ccc = Number of vertical 8 x 8 blocks (001-267 for 7" label) dd = Graphics storage number (01-99) ee...
3.
Programming Manual 4. 4. Bar Code Specifications Bar Code Specifications This section contains detailed information on the printing of bar codes on the SATO RISC printers. Information on printing the following bar code symbologies is provided: Codabar H H H H H H H H H H H H H H H H H H Code 39 Interleaved 2 of 5 UPC-A/EAN-13 EAN-8 Industrial 2 of 5 Matrix 2 of 5 Code 128 MSI Code 93 UPC-E UPC Supplements (Bookland) UCC-128 Postnet Data Matrix Maxicode Vers.
4. Bar Code Specifications Programming Manual Codabar Command Structure: 1:3 ratio 2:5 ratio 1:2 ratio bb: ccc: d: (data): B0bbcccd (data) d BD0bbcccd (data) d D0bbcccd (data) d Width of narrow element in dots (01-12) Bar height in dots (001-600) Required Start and Stop character (A, B, C, or D) Bar code data (alphanumeric) Character Set: 0-9, -,$,:,/,+, .
Programming Manual 4. Bar Code Specifications Code 39 Command Structure: 1:3 ratio: 2:5 ratio: 1:2 ratio: bb: ccc: *: (data): = Blbbccc* (data) * BD1bbccc* (data) * D1bbccc* (data) * Width of narrow element in dots (01-12) Bar height in dots (001-600) Required Start and Stop character (asterisk) Bar code data (alphanumeric) Character Set: 0-9, A-Z, Space, $, %, +, -, .
4.
Programming Manual 4. Bar Code Specifications UPC-A/EAN-13 Command Structure: B3bbccc (data) D3bbccc (data) BD3bbccc (data) bb: Width of narrow element in dots (01-03) ccc: Bar height in dots (001-600) (data): Bar code data (numeric); must be exactly 13 digits. For UPC-A, the first digit must be a zero and the last 11 digits are the actual UPC-A data followed by a check digit. To select UPC-A, 11 digits of data is sent. The printer adds a “0” and automatically generates the check digit.
4. Bar Code Specifications Printer Value of Narrow Resolution “bb” Bar Width (mils) 8 dot/mm 03 15.0 Programming Manual Narrow Magnification Bar Factor Width (mm) 0.375 Example output (scaled 70%) 112% Input: H0100V0375BD30215001234567890 Note: D3 provides guide bars that extend longer than the rest of the bar code. BD3 provides guide bars and the human readable text below the symbol.
Programming Manual 4. Bar Code Specifications EAN-8 Command Structure: B4bbccc (data) D4bbccc (data) bb: Width of narrow element in dots (01-03) ccc: Bar height in dots (001-600) (data): Bar code data (numeric); must be exactly 8 digits. Character Set: 0-9 (numeric only) Density table: Printer Resolution 12 dot/mm 8 dot/mm Value of “bb” Narrow Bar Width (mils) 02 03 04 02 03 04 6.7 10.0 13.0 10.0 15.0 20.
4. Bar Code Specifications Programming Manual Industrial Two of Five Command Structure: 1:3 ratio: 2:5 ratio: 1:2 ratio: bb: ccc: (data): B5bbccc (data) BD5bbccc (data) D5bbccc (data) Width of narrow element in dots (01-12) Bar height in dots (001-600) Bar code data (numeric); must be an even number of digits or else the printer will add a leading zero Character Set: 0-9 (numeric only) Input: H0100V0600BD50310012345 H0300V0710XS12345 Output.
Programming Manual 4. Bar Code Specifications Matrix Two of Five Command Structure: 1:3 ratio: 2:5 ratio: 1:2 ratio: bb: ccc: (data): B6bbccc (data) BD6bbccc (data) D6bbccc (data) Width of narrow element in dots (01-12) Bar height in dots (001-600) Bar code data (numeric only); must be an even number of digits or else the printer will add a leading zero.
4. Bar Code Specifications Programming Manual Code 128 Command Structure: BGbbcccdd (data) bb: Width of narrow element in dots (01-12) ccc: Bar height in dots (001-600) dd: Start code to specify initial subset of bar code data >G Subset A Start code >H Subset B Start code >I Subset C Start code (data): IncludesbarcodedataandsubsetShiftcodes;Shiftcodes are used to change the subset type within the bar code data.
Programming Manual 4.
4.
Programming Manual 4.
4. Bar Code Specifications Programming Manual Code 93 Command Structure: 1:3 ratio:BCbbcccdd (data) bb: Width of narrow element in dots (01-12) ccc: Bar height in dots (001-600) dd: Length of data (number of digits, 00-99) (data): Bar code data (alphanumeric); length must match value of parameter “dd”; check digit is supplied by printer Character Set: 0-9, A-Z, -, .
Programming Manual 4. Bar Code Specifications UPC-E Command Structure: BEbbccc (data) DEbbccc (data) bb: Width of narrow element in dots (01-03) ccc: Bar height in dots (001-600) (data): Bar code data (numeric); must be exactly 6 digits Character Set: 0-9 (numeric only) Density table: Printer Resolution 12 dot/mm 8 dot/mm Value of “bb” Narrow Bar Width (mils) 02 03 04 02 03 04 6.7 10.0 13.0 10.0 15.0 20.
4. Bar Code Specifications Programming Manual Bookland (UPC/EAN Supplements) Command Structure: BFbbccc (data) bb: Width of narrow element in dots (01-03) ccc: Bar height in dots (001-600) (data): Bar code data (numeric); must be exactly 2 or 5 digits Character Set: 0-9 (numeric only) Density table: Printer Resolution 12 dot/mm 8 dot/mm Value of “bb” Narrow Bar Width (mils) 02 03 04 02 03 04 6.7 10.0 13.0 10.0 15.0 20.
Programming Manual 4.
4. Bar Code Specifications Programming Manual With incrementing A H0100V0100F001+001 BI04150101234567000000001 Q2Z Output: Note: 1. The Start, Function, Stop and Extension codes will be created by the printer and added automatically. 2. The internal Modulo 10 check character will be automatically created and added by the printer. The overall Code 128 symbol check character will be automatically created by the printer and added. 3.
Programming Manual 4. Bar Code Specifications Postnet Command Structure: BP (data) data: 5 digits ZIP 6 digits for Postnet 37 9 digits for ZIP+4 11 digits for Dlelivery Point Bar Code Character Set: 1-9 (numeric only) Input: H0100V0120BP94089 H0100V0160BP123456 H0100V0200BP123456789 H0100V0240BP12345678901 Output: Note: 1. Frame bits and check digits added automatically by printer. 2.
4. Bar Code Specifications Programming Manual Two-Dimensional Bar Codes Data Matrix, Data Format Command Structure: BXaabbccddeeefffghh aa: Format ID. 01-06 or 11-16. The values 07 and 17 will not be accepted by the printer. bb: Error correction level. 00 ,01, or 04-14. The values 02, 03 or values of 15 or greater will be processed as a 00. cc: Horizontal cell size. 03 - 12 dots/cell. dd: Vertical cell size. 03 - 12 dots/cell. eee: Number of cells in one line. Must use 000 to optimize.
Programming Manual 4. Bar Code Specifications Note: 1. If any of the parameters entered are outside the valid range, a symbol will not be printed when the DC Print Data command is sent to the printer. 2. The number of cells per line (eee) and the number of cell lines (fff) should be specified as all zeroes, allowing the printer to automatically calculate the optimum configuration for the symbol. 3. The Reference Point for the Data Matrix symbol is the upper-left corner.
4. Bar Code Specifications Programming Manual Two-Dimensional Bar Codes Data Matrix, Print Data Command Structure: DCxx...x xx...x: Data, maximum of 500 characters Example: DC00006000 Placement: Immediately following the BC Data Format designation command or the FX Sequentia Numbering command. Default: None Function: To print a Data Matrix two-dimensional bar code image on a label.
Programming Manual 4. Bar Code Specifications Two-Dimensional Bar Codes Data Matrix, Sequential Numbering Command Structure: FXaaabcccdddeee aaa: Number of duplicate labels to be printed (001 -999) b: Increment or Decrement + = Increment - =Decrement ccc: Increment/Decrement Steps (001 - 999) ddd: Sequential numbering start position (001 - 999) Referenced to left side.
4. Bar Code Specifications Programming Manual Label Set #2 Note: 1. The maximum number of FX Sequential Numbering commands that can be used in one job is eight. 2. In the example above four total labels will be printed (FX002+005003DC00006000), the sequential numbering will start at position 5 and the three digits “600” will be incremented in steps of 1.
Programming Manual 4. Bar Code Specifications Two-Dimensional Bar Codes Maxicode Vers. 3 Command Structure: BVa,b,c,ddddddddd,eee,fff,DDD a: Symbol Number 1 - 8 b: Number Symbol 1 - 8 c: Mode 2: Structured Carrier Message 3: Structured Carrier Message 4: Standard Symbol 6: Reader Programming ddd..d: Postal Code ee...e: Country Code fff: Service Class DDD: Data Message (Do not enter Null Code!) Function: To print a Maxicode two-dimensional bar code image on a label.
4. Bar Code Specifications Programming Manual Two-Dimensional Bar Codes PDF417 Command Structure: BKaabbcddeeffffnn...n aa: Minimum module dimension (03-09 dots). Will not print if values of 01, 02 or greater than 10 are specified. bb: Minimum module pitch dimension (04-24 dots). Will not print if values of 01, 02, 03 or greater than 25 are specified. c: Security (error detection) Level (1-8). dd: Code words per line (01-30).
Programming Manual 4. Bar Code Specifications Note: 1. When the code words per line and the number of rows per symbol (“dd” and“ee”) are set to all zeroes, the printer will calculate the optimum configuration. 2. If the product of the values entered for “dd” and “ee” are not equal to or less than the value of “fff” (i.e.,“ffff” is greater that “dd” x “ee”), an error will occur and the symbol will not be printed.
4.
Programming Manual 4.
4.
Programming Manual 4.
4.
Programming Manual 4.
4.
Programming Manual 4. Bar Code Specifications Note: 1. The data command should be used according to the input mode or data type. Please refer to the attached programm sample and print sample. 2. With automatic mode, the data for 80 - 9F hex or E0 - FF hex will be handled for Kanji data, not Binary data. 3. With manual mode, the multiple data fields for Numeric, Alphanumeric, Kanji and Binary can be specified in one job. Also, the maximum data size should be less than 7000 bytes.
4. Bar Code Specifications Programming Manual This page is intentionally left blank.
Programming Manual 5. 5. Interface Specifications Interface Specifications 5.1 Overview This section explains the interface specifications for the SATO RISC printers. These specifications include detailed information on how to properly interface your printer with your host system and includes data about the following: • Interface Types • Using The Receive Buffer • RS232C Serial Interface • Centronics Parallel Interface • I/F Connector 5.
5. Interface Specifications Programming Manual 5.3 The Receive Buffer The SATO RISC printers have the ability to receive a data stream from the host in one of two ways. The receive buffer may be configured to accept one print job at a time or multiple print jobs. The single job print buffer is generally used by software programs that wish to maintain control of the job print queue so that it can move a high priority job in front of ones of lesser importance.
Programming Manual 5. Interface Specifications from being full). At this time, DTR will go “high” or an X-On is sent to tell the host that it can again receive data. 56K 0 64K DTR High or X-On DTR Low or X-Off Buffer Available All printer error conditions (i.e., label out, ribbon out) will cause the printer to go busy (DTR “low” or X-Off) until the problem is corrected and the printer is placed on-line. The printer will also be busy if taken off-line from the front panel. 5.
5. Interface Specifications Programming Manual Electrical Specifications Connector DB-25S (Female) PIN 13 PIN 1 PIN 14 PIN 25 Cable DB-25P (Male), 50 ft. maximum length. For cable configuration, refer to cable requirements appropriate to the RS232C protocol chosen.
Programming Manual 5. Interface Specifications 5 To Printer CTS (Clear to Send) - When this line is high, the printer assumes that data is ready to be transmitted. The printer will not receive data when this line is low. If this line is not being used, it should be tied high (to pin 4). 6 To Printer DSR (Data Set Ready) - When this line is high, the printer will be ready to receive data. This line must be high before data is transmitted.
5. Interface Specifications Programming Manual Ready/Busy Flow Control Ready/Busy is the hardware flow control for the serial interface on the printer. By raising/lowering the voltage level on Pin 20 of the RS232 port, the printer notifies the host when it is ready to receive data. Pin 4 (RTS) and Pin 20 (DTR) are the important signals on the printer for this method of flow control. The host must be capable of supporting this flow control method for it to function properly.
Programming Manual 5. Interface Specifications on-line, an X-On is sent out. In the Single Job Buffer mode, when the printer receives a print job, it transmits an X-Off and begins printing. When it is done printing, it transmits an X-On. In the Multi Job Buffer mode, the printer sends an X-Off when the “Buffer Near Full” level is reached and a X-On when the data level of the buffer drops below the “Buffer Available” mark.
5. Interface Specifications Programming Manual Bi-Directional Communications This is a two-way communications protocol between the host computer and the printer, thus enabling the host to check printer status. When this protocol is selected, there is no busy signal from the printer (pin 20, DTR, is always high). The host must request the complete status from the printer, including ready/busy.
Programming Manual 5. Interface Specifications Status - A single byte defining the current status of the printer. Label Remaining - Six bytes defining the number of labels remaining in the current print job. The range is from 000000 to 999999 labels.
5.
Programming Manual 5. Interface Specifications 5.5 Centronics Parallel Interface Electrical Specifications Printer Connector AMP 57-40360 (DDK) or equivalent Cable Connector AMP 57-30360 (DDK) or equivalent Cable Length 10 ft. or less Signal Level High = +2.4V to +5.0V Low = 0V to -0.
5. Interface Specifications Programming Manual DATA STREAMS Single Job Buffer: The Single Job Buffer mode is not available when using the Centronics interface. Multi Job Buffer:A . . Job#1 . . Z A . . Job#n . . Z Note: For parallel communications, the STX and ETX characters are not required . 5.
Programming Manual 5. Interface Specifications dition and 0V when a false condition exists. The maximum voltage that can be applied to these pins is +50V and the maximum current they can sink is 500 milliamps.
5.
Programming Manual 5.
5. Interface Specifications Programming Manual PIN Assignments CL 408/412 and CL608/612 (VA) PIN DIRECTION 1 To Host 2 Reference 3 To Host Ribbon Out - This pin goes low when the ribbon is out. 4 To Host Error - This pin goes low when the printer detects an error condition such as head open or receiving buffer full. 5 To Printer Print Start - The printer will print one label when this pin is pulled to ground.
Programming Manual 5. Interface Specifications that can be applied to these pins is +50V and the maximum current they can sink is 500 milliamps.
5. Interface Specifications Programming Manual PIN Assignments XL400/410 PIN DIRECTION 1 2 3 SIGNAL DESCRIPTION No Connection Reference Signal Ground To Rewinder Enables the rewinder 4 No Connection 5 To Printer Full switch - Stops the printer when the stacker or rewinder is full 6 To Stacker Enables the stacker 7 No Connection 10 No Connection 12 To Host +24V - Used to power accessory items.
Programming Manual 6. 6. Troubleshooting Troubleshooting 6.1 Overview The design of SATO RISC printers is based upon proven technology and reliable components. When a problem occurs, the solution can be easily traced using the troubleshooting tables in this section. This table list symptoms, probable causes, and suggested corrective actions. Both print quality and general operational problems are listed in the troubleshooting table.
6. Troubleshooting Programming Manual 6.2 Initial Checklist If you are unable to produce output on your printer, check the following before deciding you are unable to proceed any further. 1. Is the printer switched up and ON-LINE? 2. Do any of the Front Panel LEDs indicate an error condition? If this light is ON, it may indicate the print head assembly is open. 3. Is the Print Head and the Label Hold Down in the down and latched position? Other areas that may need looking at include: 6.
Programming Manual 6. Troubleshooting 4. When you send the print job to the printer and it does not respond, and there is no error message on the PC: a) Check your data stream for some of the basics. Is your job framed as follows? A—DATA---Z b) Verify that you’ve included all required parameters in the data stream. c) Verify the following: • You have not typed a “0” (zero) for an “O” (letter) or vice-versa. • You have not missed any characters where they’re needed.
6. Troubleshooting Programming Manual 6.4 Troubleshooting the RS232C (Serial) Interface 1. Is the RS232C Serial cable connected securely to your serial port on the PC (DB-25S Male) and to the RS232C connector on the printer? Warning: Never connect or disconnect interface cables (or use a switch box) with power applied to either the printer or the host. This may cause damage to the interface circuitry and is not covered by warranty. 2.
Programming Manual 6. Troubleshooting 6.
6. Troubleshooting Programming Manual 6.
Programming Manual 6. Troubleshooting 6.
6. Troubleshooting Programming Manual 6.
Programming Manual Error Blinks Error Blinks Error Blinks Error Blinks Stacker Full Rewinder Full Cutter Error Cutter Sensor Error 3 Short 3 Short 6.
6. Troubleshooting Programming Manual This page is intentionally left blank.
Programming Manual 7. 7. Custom Protocol Command Codes Custom Protocol Command Codes 7.1 Description This section contains information on creating custom Protocol Command Codes for operating the RISC printer. The Protocol Command codes are used to tell the printer that a specific type of information is being transmitted to the printer.
7. Custom Protocol Command Codes Programming Manual 7.2 Download Command Structure The command for downloading a new set of Protocol Command Codes takes the form of LD,a,b,c,d,e,f,g,h,i. The parameters specified for “a” through “i” can be transmitted in either ASCII characters or hex notation, allowing a complete 128 character (except for the “,”) set to be used for selecting the custom code.
Programming Manual 7. Custom Protocol Command Codes 7.3 Download Procedure The procedure for downloading a custom Protocol Command Code set is: 1. Reset the printer to the default settings using the Reset procedure. 2. Place DIP switch DS2-7 in the ON position. 3. Turn the POWER switch ON while simultaneously pressing the LINE switch. This places the printer in the USER DOWNLOAD mode as signified by a “User Download” displayed on the LCD panel. USER DOWNLOAD 4. 5. 6. 7. 8.
7.
Programming Manual 8. 8. Custom Characters And Graphics Custom Characters And Graphics 8.1 Custom-designed Character Example The following example is presented to help understand the use of the Custom-Designed Characters command. It demonstrates the design and printing of an “arrow” in a 16 x 16 matrix. 1. Determine which matrix size to use • 16 dot x 16 dots • 24 dots by 24 dots 2. Lay out a grid and draw the image on the grid.
8. Custom Characters And Graphics Programming Manual 3. Transfer the image into two bit map representations and then into hexadecimal or binary format.
Programming Manual 8. Custom Characters And Graphics 6. To store the custom designed character in memory using a binary data stream, the command would be: A T1B3F 01H 00H 03H 80H 07H C0H 0FH E0H 1FH F0H 3FH F8H 7FH FCH FFH FEH 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H 07H C0H Z Note: Spaces are shown between hexidecimal values in the above example for clarity only and are not included in the data string. Note that the data stream is only half as long as the hexadecimal format.
8. Custom Characters And Graphics Programming Manual The following example is presented to help you understand the use of the Custom Graphics command. It demonstrates the design and printing of a “diskette” in a 48 x 48 matrix. 1. Determine the matrix size for the graphic. It must be in 8 dot by 8 dot blocks. The example here has six blocks horizontally and six blocks vertically (48 x 48 dots). 2. Lay out a grid and draw the image on the grid.
Programming Manual 8. Custom Characters And Graphics 3.
8.
Programming Manual 8. Custom Characters And Graphics 4. Using the hexadecimal data, send the following code to print the graphic image as designed.
8. Custom Characters And Graphics Programming Manual 5. To send the data in binary format, the software must convert the data into binary format before transmitting it to the printer. Using the BASIC programming language for example, this is done by notation “CHR$ (&HC0)” which sends the hexidecimal value of “C0” as binary data (11000000).
Programming Manual PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&H6); CHR$(&H3); PRINT #1, CHR$(&HC0); CHR$(&HFC); CHR$(&H3); PRINT #1
8.
Programming Manual 8. Custom Characters And Graphics 8.2 PCX Graphics Example A graphics file in a PCX format may also be transmitted to the printer. The file must not be larger than 32K bytes (DOS file size reported in a DIR listing). For example, the Lion.PCX image shown below has a file size of 3800 bytes. The uncompressed size (PCX is a compressed file) of the file must not be greater than 64K bytes.
8. Custom Characters And Graphics Programming Manual This page is intentionally left blank.