Compuprint 4247 Serial Matrix Printers Compuprint 4247 Model X03/Z03 Printers: Programmer Manual MAN10299.00.
Before using this information and the product it supports, read the information in “Notices” on page 357. First edition (October 2011) This edition applies to the Compuprint 4247 X03-Z03 printers and to all subsequent releases and modifications until otherwise indicated in new edition. Internet Visit our home page: http://www.compuprint.com You can send comments by e-mail to : support@compuprint.com or by mail to: Compuprint s.r.l.
Contents Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv The 4247 Model X03/Z03 Serial Matrix Printers Printer description . . . . . . . . . . . . Print speeds . . . . . . . . . . . . . Paper paths . . . . . . . . . . . . . Print qualities . . . . . . . . . . . . Printer interfaces . . . . . . . . . . . Printer datastream emulations . . . . . . How to Use This Manual. . . . . . . . . . . .
Auto Underscore (ESC -) . . . . . . . . . . . . Set 1/8 Inch Line Spacing (ESC 0) . . . . . . . . . Set 7/72 Inch Line Spacing (ESC 1) . . . . . . . . Invoke Text Line Spacing (ESC 2) . . . . . . . . . Set Graphics Line Spacing (ESC 3) . . . . . . . . . Set Top of Form (ESC 4). . . . . . . . . . . . . Set Auto Line Feed (ESC 5) . . . . . . . . . . . Select PC Character Set 2 (ESC 6) . . . . . . . . . Select PC Character Set 1 (ESC 7) . . . . . . . . . Set 12 CPI (ESC :) . . . . . . . . . . . . . . .
Select 2 of 5 INTERLEAVED Bar Code (DC4 DC4 ESC ! NN 17 PP EM) . . . . . Select 2 of 5 INDUSTRIAL Bar Code (DC4 DC4 ESC ! NN 18 PP EM). . . . . . Select 2 of 5 MATRIX Bar Code (DC4 DC4 ESC ! NN 19 PP EM) . . . . . . . Select CODE 3 of 9 Bar Code (DC4 DC4 ESC ! NN 20 PP EM) . . . . . . . . Select CODABAR Bar Code (DC4 DC4 ESC ! NN 22 PP EM) . . . . . . . . . Select CODE 128 Bar Code (DC4 DC4 ESC ! NN 23 PP EM) . . . . . . . . . Select POSTNET Bar Code (DC4 DC4 ESC ! NN 24 PP EM) . . . . . . . . .
Horizontal Tab (ESC HT) . . . . . . . . . . . . . Line Feed (ESC LF) . . . . . . . . . . . . . . Vertical Tab (ESC VT) . . . . . . . . . . . . . . Form Feed (ESC FF) . . . . . . . . . . . . . . Carriage Return (ESC CR) . . . . . . . . . . . . Shift Out (ESC SO) / Double-Wide Print . . . . . . . Shift In (ESC SI) / Condensed Print . . . . . . . . . Device Control 1 (ESC DC1) / Select . . . . . . . . Device Control 2 (ESC DC2) / Cancel Condensed Print . Device Control 3 (ESC DC3) / Deselect . . . . . . .
Double-Wide Continuous Mode (ESC W) . . . . . . . . . . . . . . . . . Dual Density Bit Image Graphics Type 2 (ESC Y) . . . . . . . . . . . . . High Density Bit Image Graphics (ESC Z) . . . . . . . . . . . . . . . . Set Relative Position (ESC \) . . . . . . . . . . . . . . . . . . . . . Set Letter Quality Justification (ESC a) . . . . . . . . . . . . . . . . . Select Vertical Tabs in Channels (ESC b). . . . . . . . . . . . . . . . . Relative Move Right n/120 (ESC d) . . . . . . . . . . . . . . . . . . .
Overview . . . . . . . . . . . . . . . Physical Medium. . . . . . . . . . . . . IPDS Coordinate Systems . . . . . . . . . X and Y Medium Coordinate System . . . . Logical Page Layout . . . . . . . . . . I and B Coordinate System . . . . . . . . Processing IPDS Commands . . . . . . . . IPDS Command Format . . . . . . . . . . Acknowledge Requests and Replies . . . . . Acknowledge Reply (ACK) . . . . . . . . Host Acknowledgment Requests . . . . . . Printer Acknowledgment Replies . . . . . . IPDS Data . . . . .
Drawing Order Coordinate System. . Graphic Medium Presentation Space . Graphic Window . . . . . . . . Graphic Block Area . . . . . . . Positioning the Graphic Window in the Write Graphics Control (WGC) . . . Write Graphics (WG) . . . . . . . Related Drawing Orders . . . . . . Bar Code Function Set Commands . . Write Bar Code Control (WBCC) . . Write Bar Code (WBC) . . . . . . Code 128 Character Set (EBCDIC) . . Overlay Function Set Commands . . . Begin Overlay (BO) . . . . . . . Delete Overlay (DO) . . . .
Arabic . . . . . . . . . . . Greek (Old) . . . . . . . . . Hebrew Bulletin. . . . . . . . International 5/Swiss/Belgian . . . Greek/Latin (ISO 8859-7) + euro . Korean . . . . . . . . . . . Thai . . . . . . . . . . . . Latin 2/ROECE . . . . . . . . Icelandic . . . . . . . . . . Greek New + euro . . . . . . Cyrillic . . . . . . . . . . . Yugoslav (Old) . . . . . . . . OCR-A . . . . . . . . . . . OCR-B . . . . . . . . . . . Latin 9 (ISO 8859) + euro . . . . Cyrillic Multilingual. . . . . . . Latin-5 Turkey . .
Cyrillic (ISO 8859-5) . . . . . . . Latin 8 (ISO 8859-8) . . . . . . . Latin 5 (ISO 8859-9) . . . . . . . Baltic Multilingual . . . . . . . . Estonian . . . . . . . . . . . Latin 9 (ISO 8859-15) + euro. . . . Urdu . . . . . . . . . . . . . Arabic Extended . . . . . . . . Latin 6 (ISO 8859-6) . . . . . . . Farsi (Personal Computer). . . . . Estonian (Personal Computer) . . . Latvian (Personal Computer) . . . . Lithuanian (Personal Computer). . . Central Europe Latin 2 . . . . . . Cyrillic Windows + euro . .
8983237, Configuring a Remote Output Queue (RMTOUTQ) . . . . . . . . . . . . . . . 343 18762910, Configuring a *LAN 3812 Device Description that Uses the LPR Print Driver (TSPLPRD) Exit Program . . . . . . . . . . . . . . . . . . . . . . . . . . . 343 IPDS Services Facility (PSF) printing . . . . . . . . . . . . . . . . . . . . . . . . 343 Appendix G. LAN Interface MIB Support . . . . . . . . . . . . . . . . . . . . . . 345 Appendix H. The Remote Printer Management Utility. . . . . . . . . . . . . . . . .
Figures 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. The Physical Medium . . . . . . . . . . . . . . . . . . . . . . The Xm,Ym Medium Coordinate System . . . . . . . . . . . . . . . The Physical-Logical Page Relationship . . . . . . . . . . . . . . . The X and Y Coordinate System and the Logical Page . . . . . . . . . . The I and B Coordinate System on the Logical Page . . . . . . . . . . An Example of the IPDS Data Stream . . . . .
xiv Programmer Manual
Tables 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. Valid IPDS Command Codes for the 4247 Printer . . . . . IPDS Command Code Summary for the 4247 Printer . . . An Example of an IPDS Command Sequence . . . . . . IPDS Initialization Defaults . . . . . . . . . . . . . Front and Rear with no linking . . . . . . . . . . . Related Drawing Order . . . . . . . . . . . . . . Code 128 Character Set (EBCDIC) . . . . . . . . . Exception Reporting Group Codes . . . . . . . . . . IPDS Coding Example .
xvi Programmer Manual
The 4247 Model X03/Z03 Serial Matrix Printers The 4247 Model X03/Z03 printers are professional, industrial impact-matrix printers. The 4247 Model X03/Z03 printers are rugged printers designed for harsh environments and demanding applications. Each of the 4247 models offers user-installable interface cards. The 4247 Model X03/Z03 printers can have either one or two straight continuous-forms paper paths. One paper path is standard, and the second path is an optional feature.
Print qualities Fast Draft is a print quality available only for the 4247 Model Z03 printer. The Data Processing (DP), Data Processing Text (DP Text), Near Letter Quality (NLQ), OCR-A, and OCR-B print qualities on the 4247 Model X03 printer is equivalent in character size, shape, and resolution to the print qualities available on the 4247 Models Z03 printer. Print quality selection Print quality can be selected using program control or through the printer operator panel.
How to Use This Manual The following lists describes the contents of each chapter and the appendixes: Chapter 1, “Personal Printer Data Stream (PPDS),” on page 1 describes the Personal Printer Data Stream (PPDS) programming commands for use when your printer is attached and emulation mode is set to 4247, 4202 III XL, or 2381 Personal Printer.
xx Programmer Manual
Chapter 1. Personal Printer Data Stream (PPDS) The 4247 Model X03/Z03 printers implement a subset of PPDS. The environment in which the printer data stream processor operates is described below. Print Job Processing There are no PPDS controls that explicitly define print job boundaries. A print job for the 4247 is established by the host system and consists of any set of related print objects. A print job could be as short as one character or could be many pages long.
relationships of some of these parameters. CPP CPL MPP PMPP LM RM MPL Current Print Position (LM ≤ CPP ≤ RM). Current Print Line Maximum Print Position (in characters at current CPI) Physical Maximum Print Position. The largest number of characters that can be placed on one line of the surface (the largest value that MPP can assume). Left Margin Right Margin Maximum Page Length (in lines at current LPI) Notes: 1.
RM HT VT Equal to MPP Horizontal tabs are set at each 8th column, starting with column 9 (9, 17, 25, 33, and so on.) Vertical tabs are all cleared Graphic and Control Character Sequences PPDS uses an ASCII encoding scheme to define controls and printable graphics. Multiple code pages for printable graphics are supported. Control characters are interpreted based on the environment established by any preceding control characters and signals. The 4247 supports several ASCII code pages.
PPDS Compatibility PPDS is supported in 4247, 2381 Personal Printer, and 4202 Proprinter III XL emulation modes. When 4247 is selected, PPDS control codes are supported in the same manner as if emulating the 2381 Personal Printer. The Emulation Mode can be selected from the Configuration Menu using the operator panel. Emulation mode may also be selected using the Set Initial Conditions (ESC [ K) control sequence, if the printer is set to 4247 or 2381 Personal Printer emulation mode.
Backspace (BS) 08 This control moves the print position horizontally one character width to the left. If the current print position is at the left margin, the printer ignores this command. Horizontal Tab (HT) 09 This control moves the print position to the next horizontal tab stop. If there are no tab stops to the right, or if the next tab stop is beyond the current right margin, the control is ignored. Line Feed (LF) 0A This control advances the paper one line.
This control moves the current horizontal print position to the left margin. The vertical print position does not change unless automatic line feed mode is active (see “Set Auto Line Feed (ESC 5)” on page 13). Shift Out (SO) / Double-Wide Print 0E This control causes the printer to start double-width printing. Double-width printing prints the characters twice as wide as the current character spacing. This results in half as many characters per inch.
This control is treated as a NUL. Device Control 4 (DC4) / Select 14 This control cancels double-wide printing if double wide was selected with the Shift Out control. The characters-per-inch setting returns to the previous value. Cancel (CAN) 18 This control purges all buffered data. All data received after the most recent buffer terminating control is discarded. For a list of buffer terminating controls, see “Buffer Terminating Conditions” on page 38.
Control Hex Name ESC DC3 1B 13 Device Control 3 (Deselect) ESC DC4 1B 14 Device Control 4 (Cancel Double-Wide Print) ESC CAN 1B 18 Cancel ESC EM 1B 19 Turn Auto Sheet Feeder On or Off ESC - 1B 2D Auto Underscore ESC 0 1B 30 Set 1/8 Inch Line Spacing ESC 1 1B 31 Set 7/72 Inch Vertical Spacing ESC 2 1B 32 Invoke Text Line Spacing ESC 3 1B 33 Set Graphics Line Spacing ESC 4 1B 34 Set Top of Form ESC 5 1B 35 Set Auto Line Feed ESC 6 1B 36 Select PC Character Set 2 ESC 7 1
Control Hex Name ESC ] 1B 5D Reverse Line Feed ESC ^ 1B 5E Print Single Characters ESC _ 1B 5F Continuous Overscore ESC d 1B 64 Relative Move Right ESC e 1B 65 Relative Move Left ESC [ - (See Note) 1B 5B 2D Select Line Scoring ESC [ @ 1B 5B 40 Set Presentation Highlights (SPH) ESC [ I (See Note) 1B 5B 49 Set Font Global (SFG) ESC [ K 1B 5B 4B Set Initial Conditions (SIC) ESC [ T (See Note) 1B 5B 54 Select Code Page (SCP) ESC [ d (See Note) 1B 5B 64 Set Print Quality (SPQ)
This control advances the paper one line. The horizontal position does not change unless automatic carriage return mode is activated from the operator panel Configuration Menu. If the paper advance crosses the bottom margin, the printer completes all deferred printing on the current page and then does an automatic form feed. If skip perforation mode is active and the bottom margin is crossed, the vertical position on the new page following the automatic form feed will be the top-of-form position.
Shift In is a buffer terminating control; if printable data at a different character-per-inch setting is buffered, that data is printed before the setting is changed. The current print position becomes the next printable column at the new character-per-inch setting. CPI can be changed within a print line, and this control changes the maximum number of characters that can be printed on one line.
Auto Underscore (ESC -) 1B 2D NN This control turns on and off the continuous underscore function. If NN is 1, the printer underscores all text characters and spaces following this sequence. The printer does not underscore white space caused by horizontal tabs. If NN is 0, the printers stops the underscore of all data following this sequence. Set 1/8 Inch Line Spacing (ESC 0) 1B 30 This control sets the line spacing to eight lines per inch.
Set Top of Form (ESC 4) 1B 34 This control establishes the current vertical position as the top of form. Set Auto Line Feed (ESC 5) 1B 35 NN This control sets the automatic line feed mode of the printer. When automatic line feed is on, the printer does a line feed each time it receives a carriage return. When automatic line feed if off, a carriage return is processed normally. This control overrides the automatic line feed mode set in the operator panel Configuration Menu.
This command selects unidirectional printing for one line only. The print head moves to the home position at the left side of the printer and prints one line, left to right. The command is then cancelled by the carriage return that sends the print head back to the home position. Character Font Image Download (ESC =) 1B 3D LL HH FF LF W H CP N XX...XX This control downloads special character images. A two-byte count (LL HH) indicates the number of bytes that follow in this control.
Image Length = 11 with a remainder of 2 Image Length = 12 bytes per character If both printer provided images and downloaded images are to be printed from the same local font ID, we recommend that the downloaded images be sent, using this control, at the start of a print job when the print environment for the job is established. This ensures that the actual printed output appears as intended. It is also recommended that image data bits for the last vertical column of NLQ character patterns be all zeros.
IN is a one-byte hexadecimal number that specifies the page length in inches. IN is present only if parameter LL equals 0. Valid values for IN are X'01' to X'71'. If IN is greater than the maximum value, the maximum value is used. If both LL and IN are zero, the control is ignored. Set Horizontal Tabs (ESC D) 1B 44 TT...TT 00 This control sets the horizontal tab stops. The maximum number of tab stops supported is 28. The sequence terminates with the NUL control code.
NN is the one-byte local font identifier number that specifies the font. The mapping of the local font identifier is dependent upon the printer's emulation mode setting. In the Configuration Menu, if the emulation mode is set to 4202 III XL, the Change Font control code selects fonts compatible with the 4202 Proprinter III XL Printer. If the emulation mode is set to 4247 or 2381, Change Font selects the fonts compatible with the 2381 Personal Printer.
NN is a one-byte hexadecimal value that specifies the move amount in units of 1/216 inch. The printer will adjust the value to the nearest 1/144 inch. If Automatic Carriage Return on Line Feed is set in the operator panel Configuration Menu, a carriage return is also performed when a Relative Move Baseline code is received (see “Carriage Return (CR)” on page 5). Normal Density Bit Image Graphics (ESC K) 1B 4B LL HH NN...
This control ends skip perforation. Proportional Space Mode (ESC P) 1B 50 NN This control starts or stops proportional space mode. NN is a one-byte hexadecimal value that sets proportional space mode on or off. v If NN is 1, proportional space mode is on. v If NN is 0, proportional space mode is off.
End Subscript/Superscript (ESC T) 1B 54 This controls stops subscript and superscript printing. Set Print Direction (ESC U) 1B 55 NN This control specifies bidirectional or unidirectional printing. v If NN is 1, unidirectional printing is selected. v If NN is 0, bidirectional printing (default) is selected. Double-Wide Continuous Mode (ESC W) 1B 57 NN This control turns double-wide printing on or off.
Dual Density Bit Image Graphics Type 2 (ESC Y) 1B 59 LL HH NN...NN This control prints the supplied bit image data at 120 horizontal pel by 72 vertical pel. Bit image data can be mixed with text data on the same line. Horizontally adjacent dots are not allowed and will be removed if specified. A two-byte count (LL HH) indicates the number of bytes that follow in this control. LL is the least significant byte of the count; HH is the most significant byte.
Note: If Printer Compatibility 4 - Automatic Carriage Return on Line Feed is set to Enabled in the Configuration Menu, the next print position is print position 1 at the left margin. If Printer Compatibility 4 - Automatic Carriage Return on Line Feed is set to Disabled, the next print position is the current print position.
The values for N1 are: X'01' Underscore X'02' Strikethrough X'03' Overscore X'00' Cancel X'01' Single Line X'02' Double Line Set Presentation Highlight (SPH) (ESC [ @) 1B 5B 40 LL HH M1 M2 M3 M4 SPH activates or deactivates double wide, double high, and italic printing. This command is supported in 4247, 4202 III XL, and 2381 emulation with some exceptions as noted. Once these highlights are active, they remain active until terminated, either by another SPH command or an initialization.
HF LF Font and Pitch 00 0B Courier 10 01 EB Courier 12 01 EC Courier 15 01 ED Courier 17 01 EE Courier 20 00 AB Courier Proportional HF LF Font and Pitch 00 24 Gothic 10 01 8F Gothic 12 01 8E Gothic 15 01 8D Gothic 17 01 8C Gothic 20 00 AE Gothic Proportional Set Initial Conditions (SIC) (ESC [ K) 1B 5B 4B LL HH INIT ID P1 P2 This control initializes the printer. A two-byte count (LL HH) indicates the number of bytes that follow in this control.
P1 Parameter Byte for 4201 III XL Emulation Bit On Off 7 Discard Byte Ignore Process 5 Alarm Disable Enable 4 Auto CR CR on Vertical Movement No CR on Vertical Movement 3 Auto LF Auto LF after CR No Auto LF after CR 2 Form Length 12 inch forms 11 inch forms 6 Reserved 1 Zero Slashed Zero Normal Zero 0 Character Set PC Char Set 2 PC Char Set 1 P2 Parameter Byte for 4202 III XL Emulation Bit On Off 7 Discard Byte Ignore Process 6 Print Language CP 850 Multilingual CP 437 ASC
v v v v v – Printer Compatibility 7 – Condensed Print – Interface Type – Input Buffer Size – Select-In Signal – AutoFeed XT All Printer Adjustments Values All Printer Setup Values Display Language All Vital Product Data Active Form Path Select Code Page (SCP) (ESC [ T) 1B 5B 54 04 00 00 00 HC LC This control selects a code page for printing where HC and LC specify the code page in hexadecimal. (Supported in 4247 or 2381 emulation mode only.
HC LC Character Set 03 93 CP915 Cyrillic (ISO 8859-5) 03 94 CP916 Latin 8 (ISO 8859-8) 03 98 CP920 Latin 5 (ISO 8859-9) 03 99 CP921 Baltic Multilingual 03 9A CP922 Estonian 03 9B CP923 Latin 9 (ISO 8859-15) 03 EE CP1006 Urdu 04 16 CP1046 Arabic Extended 04 41 CP1089 Latin 6 (ISO 8859-6) 04 4A CP1098 Farsi (Personal Computer) 04 5C CP1116 Estonian (Personal Computer) 04 5D CP1117 Latvian (Personal Computer) 04 5E CP1118 Lithuanian (Personal Computer) 04 E2 CP1250 C
Hex Function Note: If printer configuration Host Fast Draft setting is Enabled then Fast Draft quality is selected. If Host Fast Draft is disabled then DP quality is selected.
Control Hex Name DC4 DC4 ESC p 14 14 1B 70 Select Print Quality Select EAN-8 Bar Code (DC4 DC4 ESC ! NN 1 PP EM) 14 14 1B 21 NN 01 PP 19 This control selects the EAN-8 bar code. The DATA field must contain only ASCII numeric (0 to 9) data, and must be eight bytes long, check digit included. NN is a one-byte hexadecimal number that specifies the height of the bar code symbol as 1 to 12 (1/6 to 12/6 inch, or 2 inches).
00 01 Do not print human readable characters Print human readable characters Select MSI Bar Code (DC4 DC4 ESC ! NN 4 PP EM) 14 14 1B 21 NN 04 PP 19 The control selects the MSI bar code. The DATA field for this bar code does not have a defined length, but the DATA field must contain only ASCII numeric (0 to 9) data. NN is a one-byte hexadecimal number that specifies the height of the bar code symbol as 1 to 12 (1/6 to 12/6 inch, or 2 inches).
01 Print human readable characters Select UPC 5-Digit Bar Code (Magazine) (DC4 DC4 ESC ! NN 7 PP EM) 14 14 1B 21 NN 07 PP 19 This control selects the UPC 5-Digit bar code. The DATA field must contain only ASCII numeric (0 to 9) data, and must be six bytes long, check digit included. NN is a one-byte hexadecimal number that specifies the height of the bar code symbol as 1 to 12 (1/6 to 12/6 inch, or 2 inches).
Select 2 of 5 MATRIX Bar Code (DC4 DC4 ESC ! NN 19 PP EM) 14 14 1B 21 NN 13 PP 19 The control selects the 2 of 5 Matrix bar code. The DATA field for this bar code does not have a defined length, but the DATA field must contain only ASCII numeric (0 to 9) data. NN is a one-byte hexadecimal number that specifies the height of the bar code symbol as 1 to 12 (1/6 to 12/6 inch, or 2 inches).
NN is a one-byte hexadecimal number that specifies the height of the bar code symbol as 1 to 12 (1/6 to 12/6 inch, or 2 inches). PP is a one-byte hexadecimal number that specifies whether or not to print the bar code in Human Readable Characters as follows: 00 Do not print human readable characters 01 Print human readable characters Select CODE 128 Bar Code (DC4 DC4 ESC ! NN 23 PP EM) 14 14 1B 21 NN 17 PP 19 This control selects the Code 128 bar code.
Print Bar Code Selection (DC4 DC4 ESC ( GS {N1} {DATA1} GS {N2} {DATA2} EM) 14 14 1B 28 1D DD...DD 1D DD...DD 19 This sequence causes the bar code symbol to be printed according to the Bar Code Selection command. Sequential bar codes of the same type and height may be printed. GS N# defines the distance from the beginning of the line or between two bar code symbols in multiples of 1/72 of an inch. This command must be closed with an EM character.
This command sets line spacing to 3 lines per 30 mm. Set Vertical Spacing 4 Lines/30mm (DC4 DC4 ESC 3 4) 14 14 1B 33 34 This command sets line spacing to 4 lines per 30 mm. Set Vertical Spacing 6 Lines/30mm (DC4 DC4 ESC 3 6) 14 14 1B 33 36 This command sets line spacing to 6 lines per 30 mm. Set Vertical Spacing 8 Lines/30mm (DC4 DC4 ESC 3 8) 14 14 1B 33 38 This command sets line spacing to 8 lines per 30 mm.
Load or Park Fanfold from a Front Path (DC4 DC4 ESC T) 14 14 1B 54 NN This command loads or performs the Park function for fanfold paper fed from the front path. The values for NN are: 0 The printer selects the front path. If fanfold paper is already loaded in a paper path that is not requested, the printer automatically performs the Park function before loading the front path. The printer will then load the fanfold paper once data is received.
Printer Configuration Response (DC4 DC4 ESC h) 14 14 1B 68 LL HH TT SS D1...DN CS This is the response Request to Read Configuration command. The printer must be configured for 1284 Parallel mode. LL and HH indicate the number of bytes that follow this control. LL is the least significant byte of the count and HH is the most significant byte. (The number of bytes that follow equal HH x 256 + LL.) The other values are: TT Model Type SS Model Sub-type D1...
0 1 2 3 Fast Draft (Model Z03 only) DP DP Text NLQ Buffer Terminating Conditions The following controls cause buffered data to be released for printing: v Carriage Return v Line Feed v Reverse Line Feed v Form Feed v Horizontal Tab (if there is print head movement) v Vertical Tab v Backspace v Set 1/8 Inch Line Spacing v Set 7/72 Inch Line Spacing v Set Graphics Line Spacing v Select n/72 Inch Line Spacing v Invoke Text Line Spacing (if the line spacing is changed) v Relative Move Right v Relative Move Le
Chapter 2. Epson FX-1050 Data Stream When the 4247 is in Epson emulation mode, the printer can print files coded for the Epson FX-1050 printer using the Epson ESC/P printer control language. Use the Configuration menu to select Epson FX emulation mode as the active printer configuration. The following chapter describes the Epson FX-1050 emulation host control codes that are supported for the printer. Print Job Processing There are no Epson FX-1050 controls that explicitly define print job boundaries.
Length, Set Horizontal Margins, for example). The physical print position does not move outside the range of these two parameters. The left margin (LM) and right margin (RM) are variable parameters within the presentation surface. The logical print position does not move outside the range of the vertical margins nor outside the horizontal margins + 1. The following figure shows the presentation surface and the relationships of some of these parameters.
MPP (depth) CPI LPI LM RM HT Operator panel setting Operator panel setting Operator panel setting 0 inches (Column 1) Equal to MPP Horizontal tabs are set at each 8th column, starting with column 9 (9, 17, 25, 33, and so on.) Vertical tabs are all cleared VT One-Byte Controls Note: Control hex values within parentheses are recognized only within PC Character Set 1.
Backspace (BS) 08 This control moves the print position horizontally one character width to the left. If the current print position is at the left margin, the printer ignores this command. Horizontal Tab (HT) 09 This control moves the print position to the next horizontal tab stop. If there are no tab stops to the right, or if the next tab stop is beyond the current right margin, the control is ignored. Line Feed (LF) 0A This control advances the paper one line.
This control moves the current horizontal print position to the left margin. If Carriage Return equals Carriage Return + Line Feed, a Line Feed is executed when Carriage Return is received. Otherwise, the vertical position does not change. Carriage Return is a line ending control code that causes buffered data to print. Shift Out (SO) / Double-Wide Print 0E This control causes the printer to start double-width printing.
Device Control 4 (DC4) / Cancel Double-Wide Print 14 This control cancels double-wide printing if double wide was selected with the Shift Out control. The characters-per-inch setting returns to the previous value. Cancel (CAN) 18 This control purges all buffered data. All data received after the most recent buffer terminating control is discarded. For a list of buffer terminating controls, see “Buffer Terminating Conditions” on page 72. Any data received after Cancel is processed normally.
Control Hex Name ESC DC3 1B 13 Device Control 3 (Deselect) ESC DC4 1B 14 Device Control 4 (Cancel Double-Wide Print) ESC CAN 1B 18 Cancel ESC EM 1B 19 Turn Auto Sheet Feed On or Off ESC SP 1B 20 Set Intercharacter Spacing ESC ! 1B 21 Master Select ESC # 1B 23 Cancel MSB Control ESC $ 1B 24 Set Absolute Print Position ESC % 1B 25 Select User-defined Set ESC & 1B 26 Define User-defined Characters ESC * 1B 2A Select Graphics Mode ESC - 1B 2D Auto Underscore ESC / 1B 2F
Control Hex Name ESC O 1B 4F End Skip Perforation ESC P 1B 50 Select 10 CPI ESC Q 1B 51 Set Right Margin ESC R 1B 52 Select Character Set ESC S 1B 53 Begin Subscript/Superscript ESC T 1B 54 End Subscript/Superscript ESC U 1B 55 Set Print Direction ESC W 1B 57 Double-Wide Continuous Mode ESC Y 1B 59 Dual Density Bit Image Graphics Type 2 ESC Z 1B 5A High Density Bit Image Graphics ESC \ 1B 5C Set Relative Position ESC a 1B 61 Set Letter Quality Justification ESC b 1B 6
This control causes the audible alarm to sound, if enabled. The alarm may be disabled or enabled from the Configuration menu. Backspace (ESC BS) 1B 08 This control moves the print position horizontally one character width to the left. If the current print position is at the left margin, the printer ignores this command. Horizontal Tab (ESC HT) 1B 09 This control moves the print position to the next horizontal tab stop.
Carriage Return (ESC CR) 1B 0D This control moves the current horizontal print position to the left margin. The vertical print position does not change unless automatic line feed mode is active. Shift Out (ESC SO) / Double-Wide Print 1B 0E This control causes the printer to start double-width printing. Double-width printing prints the characters twice as wide as the current character spacing. This results in half as many characters per inch.
Device Control 4 (ESC DC4) / Cancel Double-Wide Print 1B 14 This control cancels double-wide printing if double wide was selected with the Shift Out control. The characters-per-inch setting returns to the previous value. Cancel (ESC CAN) 1B 18 This control purges all buffered data. All data received after the most recent buffer terminating control is discarded. For a list of buffer terminating controls, see “Buffer Terminating Conditions” on page 72.
Cancels the most significant bit (MSB) control. Set Absolute Print Position (ESC $) 1B 24 N1 N2 This control specifies the distance that subsequent characters are to be printed from the set left margin in 1/60 inch units. Where the total number of dots equals N1 + (N2 × 256). If the position is beyond the right margin, the control is ignored and the previous setting remains active. If the position is within the right margin, subsequent characters will be printed at (N1 + [N2 × 256])/60 inches.
Select Graphics Mode (ESC *) 1B 2A MM N1 N2 This control selects the graphics mode MM from the table below. The total number of columns equals N1 + (N2 ×256). Option Alternate Code MM Horizontal Density (dots/in.
The application program is responsible for keeping track of the vertical position on the current page relative to the current line spacing. Changing the line spacing within a print job without changing the page length can cause printing on the page perforation. For additional information, see “Set Page Length (ESC C)” on page 55. Set 7/72 Inch Line Spacing (ESC 1) 1B 31 This control sets the line spacing to 7/72 inch.
Printable Code Area Expansion (ESC 6) 1B 36 This control enables codes X'80' through X'9F' from the active character set to become printable characters instead of control characters. Cancel Printable Code Area Expansion (ESC 7) 1B 37 This control cancels Printable Code Area Expansion (ESC 6). Copy ROM into Ram (ESC : NUL) 1B 3A 00 This control copies the characters in ROM into RAM. Specific characters may be redefined.
Option Alternate Code NN Horizontal Density (dots/in.) Single-Density ESC K 0 60 Double-Density ESC L 1 120 High-Speed Double-Density * ESC Y 2 120 Quadruple-Density * ESC Z 3 240 CRT I NONE 4 80 Plotter (1:1) NONE 5 72 CRT II NONE 6 90 Double-Density Plotter NONE 7 144 Note: (*) Adjacent dots cannot be printed in this mode.
Set Page Length (ESC C) 1B 43 LL IN This control sets the physical page length in lines or inches and resets skip perforation mode. LL is a one-byte hexadecimal number that specifies the page length in lines. The value is converted to inches based upon the current line spacing. Valid values for LL are X'01' to X'FF', but the resulting page length in inches must be less than 113.8 inches (2890 mm). If LL equals 0, then parameter II (length is inches) is used.
End Double-Strike Print (ESC H) 1B 48 This control ends double-strike printing. Printable Code Area Expansion (ESC I) 1B 49 This control defines whether codes X'00' through X'1F' and codes X'80' through X'9F' are printable characters or control characters of the active character set. When NN equals X'01', the codes become printable characters, which allows them to be used as user-defined characters. When NN equals X'00', the codes are returned to nonprintable characters.
A two-byte count (LL HH) indicates the number of bytes that follow in this control. LL is the least significant byte of the count; HH is the most significant byte. (The number of bytes that follow should equal HH × 256 + LL.) If the count equals X'0000', the control is ignored. NN .. NN are the bytes containing the bit image data. The data format is in 8-bit vertical slices, with the least significant bit the bottom dot and the most significant bit the top dot.
This control specifies an international character set as shown in the table below and is available in both DP and NLQ. The following values for NN are: Hex Codes N Character Set 23 24 40 5B 5C 5D 5E 60 7B 7C 7D 7E 0 USA # $ @ [ \ ] ^ ' { ¦ } - 1 France # $ à ° ç § ^ ' é ù è ..
This control specifies bidirectional or unidirectional printing. v If NN is an odd value (1, 3, 5, ...) unidirectional printing is selected. v If NN is an even value (0, 2, 4, ...), bidirectional printing (default) is selected. Double-Wide Continuous Mode (ESC W) 1B 57 NN This control turns double-wide printing on or off. When double-wide printing is on, the width of subsequent graphic characters is doubled (the characters per inch value is half of the single character value).
Set Relative Position (ESC \) 1B 5C N1 N2 This control moves the print head to a horizontal print position relative to the current print position using 1/120 inch increments. To calculate the correct values for N1 and N2, determine the displacement required in 1/120 of an inch. Send the resulting number using the formula total number of dots equals N1 + (N2 × 256). If the desired formula is to the left, subtract the number from 65536 before using the formula.
This control spaces backward in 1/120s of an inch. To find the values for N1 and N2, determine the required displacement in 1/120s of an inch. Send the resulting number in the formula: N1 + (N2 X 256). Set 15 CPI (ESC g) 1B 67 This control prints any data stored in the print buffer, and initializes following text to print at 15 CPI. Feed Paper n/216 Reverse (ESC j) 1B 6A This command causes fanfold paper to feed backwards n/216 of an inch.
This control activates and deactivates Quiet Mode (half-speed printing). The following are the values for NN: 0 Set Quiet Mode Off 1 Set Quiet Mode On Select Character Table (ESC t) 1B 74 NN This control selects italic characters from the Epson Italic character set. The characters selected are ASCII codes 128 to 255 (X'80' through X'FF').
Control Hex Name DC4 DC4 ESC ! NN 6 PP EM 14 14 1B 21 06 Select UPC 2-Digit Bar Code (Magazine) DC4 DC4 ESC ! NN 7 PP EM 14 14 1B 21 07 Select UPC 5-Digit Bar Code (Magazine) DC4 DC4 ESC ! NN 17 PP EM 14 14 1B 21 11 Select 2 of 5 INTERLEAVED Bar Code DC4 DC4 ESC ! NN 18 PP EM 14 14 1B 21 12 Select 2 of 5 INDUSTRIAL Bar Code DC4 DC4 ESC ! NN 19 PP EM 14 14 1B 21 13 Select 2 of 5 MATRIX Bar Code DC4 DC4 ESC ! NN 20 PP EM 14 14 1B 21 14 Select CODE 3 of 9 Bar Code DC4 DC4 ESC ! NN 22 PP EM
NN is a one-byte hexadecimal number that specifies the height of the bar code symbol as 1 to 12 (1/6 to 12/6 inch, or 2 inches). PP is a one-byte hexadecimal number that specifies whether or not to print the bar code in Human Readable Characters as follows: 00 Do not print human readable characters 01 Print human readable characters Select EAN-13 Bar Code (DC4 DC4 ESC ! NN 2 PP EM) 14 14 1B 21 NN 02 PP 19 The control selects the EAN-13 bar code.
PP is a one-byte hexadecimal number that specifies whether or not to print the bar code in Human Readable Characters as follows: 00 Do not print human readable characters 01 Print human readable characters Select UPC-E Bar Code (DC4 DC4 ESC ! NN 5 PP EM) 14 14 1B 21 NN 05 PP 19 The control selects the UPC-E bar code.
PP is a one-byte hexadecimal number that specifies whether or not to print the bar code in Human Readable Characters as follows: 00 Do not print human readable characters 01 Print human readable characters Select 2 of 5 INTERLEAVED Bar Code (DC4 DC4 ESC ! NN 17 PP EM) 14 14 1B 21 NN 11 PP 19 The control selects the 2 of 5 Interleaved bar code. The DATA field for this bar code does not have a defined length, but the number of data bytes must be even.
00 01 Do not print human readable characters Print human readable characters Select CODE 3 of 9 Bar Code (DC4 DC4 ESC ! NN 20 PP EM) 14 14 1B 21 NN 14 PP 19 This control selects the Code 3 of 9 bar code. The DATA field for this bar code does not have a defined length, but must start and end with an *. The DATA field may contain alphanumeric data as follows: 0 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z Space - .
The DATA field for this bar code does not have a defined length, and must contain only the data characters belonging to the selected ASCII character set, including control characters. Since GS and EM are control codes, the host application must set the high-order bit of the control code to allow the printer to distinguish between encodable data and terminator strings. Human Readable Characters will be centered below the bar code and can be wider than the encoded area.
ASCII: DC4 DC4 ESC ( GS 72 12345678 EM HEX: 14 14 1B 28 1D 48 31 32 33 34 35 36 37 38 19 Example 2: Print two Code 3 of 9 bar code symbols. The first symbol on the right margin; the second symbol one inch to the right of the first symbol. Data sets are ABC+0123 and 12345678 ASCII: DC4 DC4 ESC ( GS 0 *ABC+123* GS 72 *1234* EM HEX: 14 14 1B 28 1D 00 2A 41 42 43 2B 31 32 33 2A 1D 48 2A 31 32 33 34 2A 19 Reinitialize Printer (DC4 DC4 ESC @) 14 14 1B 40 This command reinitializes the printer.
Set Vertical Spacing 8 Lines/30mm (DC4 DC4 ESC 3 8) 14 14 1B 33 38 This command sets line spacing to 8 lines per 30 mm. Eject Single Sheet or Form Feed (DC4 DC4 ESC 5) 14 14 1B 35 This command causes a form feed on fanfold forms. Set 15, 17.1, 20 CPI (DC4 DC4 ESC A) 14 14 1B 41 NN This command sets horizontal spacing (characters per inch) to 15, 17.1 or 20. The values for NN are: 4 15 CPI 5 17.
Select Emulation (DC4 DC4 ESC Y) 14 14 1B 59 NN This command selects the printer emulation mode. The values for NN are: 1 Epson FX 1050 2 4202 Proprinter III XL 5 4247 or 2381 Personal Printer Select AFTA in Column (DC4 DC4 ESC Z) 14 14 1B 5A NN This command selects the column at 10 CPI where the Automatic Forms Thickness Adjustment (AFTA) will be made. The value for NN is the column number.
D1...DN CS Configuration Data Checksum of the data bytes Write Configuration Response (DC4 DC4 ESC i) 14 14 1B 69 LL HH TT SS D1...DN CS This command writes configuration data to non-volatile memory (NVM). The printer must be configured for 1284 Parallel mode. LL and HH indicate the number of bytes that follow this control. LL is the least significant byte of the count and HH is the most significant byte. (The number of bytes that follow equal HH x 256 + LL.
v v v v v v v v v v v v v v v v v v v v v v v v v v v v v v v v v v Backspace Set 1/8 Inch Line Spacing Set 7/72 Inch Line Spacing Set 1/6 Inch Line Spacing Set n/216 Inch Line Spacing Set n/72 Inch Line Spacing Invoke Text Line Spacing (if the line spacing is changed) Move Right n/120 Move Left n/120 Feed Paper n/216 Reverse Relative Move Baseline Shift Out/Double-Wide Print Device Control 4/Cancel Double-Wide Print Begin Subscript/Superscript End Subscript/Superscript Begin Double-Strike Print End Double
74 Programmer Manual
Chapter 3. Intelligent Printer Data Stream This chapter explains the concepts of the Intelligent Printer Data Stream (IPDS). IPDS is an orderable feature for your printer. The intent of this chapter is to provide a basic overview of how IPDS works.
Figure 1. The Physical Medium The physical medium defined above is assumed to coincide with the actual physical medium (form) as that terminology is used in the following discussion. IPDS Coordinate Systems IPDS uses coordinate systems to define any point on a page. All IPDS commands containing location parameters use these coordinate systems to define distance measurements. The coordinate systems specify these distances in logical units called units.
Figure 2. The Xm,Ym Medium Coordinate System Logical Page Layout IPDS describes the printed output in terms of logical pages. The logical page does not have to be contained completely on the physical medium. However, printing can only occur where the two areas overlap. Figure 3 shows the physical-logical page relationship. Figure 3. The Physical-Logical Page Relationship The logical page reference corner is the corner of the logical page that is at the smallest Xp, Yp position.
between the X and Y coordinates and the logical and physical medium. Figure 4. The X and Y Coordinate System and the Logical Page I and B Coordinate System In addition to the X,Y coordinate system, IPDS uses another coordinate system, the I-B coordinate system. These coordinates describe the placement and orientation of text or images on the logical page. The printer places characters along the I-axis for a line of text.
Figure 5. The I and B Coordinate System on the Logical Page Notes: 1. The 4247 Printer text character box is 180 units high by 144 units wide at 10 CPI when the XpYp units equal 1,440 per inch. The left edge of the character box is at the specified inline position and the bottom edge of the character box is 20 units below the specified baseline position. 2. If the bottom edge of the character box falls below the printable area on the physical medium, the character will not print.
IPDS Command Format All of the printer commands use the following format: Length Command Flag Correlation ID Data Note: Bit numbering follows the EBCDIC convention with bit zero being the most significant bit. A description of each field follows. Length Length is a two-byte field that specifies the length of this command. This count includes the two-byte length field, the command field, the flag byte, and the optional fields (Correlation ID and Data Fields).
Data is an optional field and is not present for all commands. This field contains specific subcommands, parameters, and data appropriate for the given command. The length of the data field can range from 0 to 32760 (X'7FF8') if the correlation ID is present. If the correlation ID is not present, the length of the data field can range from 0 to 32762 (X'7FFA'). Table 1 lists the valid IPDS commands for the 4247 Printer. Table 1.
Acknowledge Reply (ACK) The printer uses the Acknowledge Reply to return device status, sense information, and any additionally requested information to the host application program. The application program uses the Acknowledge data to maintain control of the printing application and to initiate error recovery actions when necessary.
DATA is the field that follows the correlation ID field or the flag byte if no correlation ID is present. The length of this field can be 0-250 (X'00'-X'FA') if no correlation ID is present, and 0-248 (X'00'-X'F8') if the correlation ID is present. The first byte of the data field is the acknowledgment type. Values of 00, 01, 04, and 06 for this byte indicate a positive acknowledgment (ACK). A value of X'80' for this byte indicates a negative acknowledgment (NACK).
The printer sends a Negative Acknowledge Reply (NACK) to the host to indicate that an error has occurred. The printer can send an ACK or a NACK in response to an ARQ. If an error occurs, the printer can send a NACK without receiving an ARQ. The following general rules apply to the printer replies: v If the printer receives a command requesting acknowledgment and this command also requests specific printer information, then: 1. The printer sends a positive acknowledgment to the host, and 2.
Overlay (BO)” on page 194. Figure 7 shows various data types on a page. Figure 7. A Sample Page Constructed on an IPDS Printer Notes: 1. Overlays and page segments can be merged on this page. 2. Text and data blocks can be positioned at different places on this page. 3. A logical page can be positioned anywhere with respect to the physical medium. Mixing Rules IPDS allows the same physical pel to be overwritten an unlimited number of times. Overwriting can occur both within a block and across blocks.
v v v v v The The The The The pels of a rule one pels of an image pels of a graphic line or arc one pels of a filled area one pels of a bar code. Background pels are all other pels. Text data, because it prints at a different physical resolution than the data in the other blocks, does not logically mix with any other data type. The only mixing that takes place between text data and any other data type is the (possible) physical mixing of ink on forms.
Control, or Write Bar Code (block) Control commands in the data stream indicates that the printed page contains individual blocks of image, graphics, or bar code data for positioning on the page. These commands cause a state transition to occur to an appropriate page block state. In the block state, the printer establishes the initial conditions and processes the block of data onto the page. Receiving an End command in a page block state terminates that state and returns processing back to the page state.
Figure 9. The Relationship between Home State, Overlay State, and Block State Page Segment State The printer enters the page segment state from the home state as a result of receiving a Begin Page Segment command. A parameter in the Begin Page Segment command provides an identifier for later references to this segment. Page segments assume the environment (Logical Page Descriptor, Load Font Equivalence, and Load Equivalence) that is active at the time the segment is presented.
Figure 10. The Relationship between Home State, Page Segment State, and Block States A Summary of the IPDS States and Commands Table 2 shows all the valid IPDS commands for the 4247 Printer and the initial and ending states for each command. The printer must be in the initial state shown for each command for that command to be valid. The ending state is the resulting state the printer enters after a valid command processes. Table 2.
Table 2.
Figure 11. The Complete IPDS State Diagram A Typical IPDS Command Sequence The following chart shows an example of a typical IPDS command sequence. This sequence contains five basic categories: 1. Initialization 2. Preparation 3. Page Segment 4. Overlay 5. Page Chapter 3.
Each category starts with a command from the host to the printer and ends with an acknowledgment from the printer to the host. An analysis of each category follows this example. Note: → indicates a command from the host to the printer. ← indicates a reply from the printer to the host. Table 3.
Table 3.
ACK (Acknowledgment Reply): If the previous command had the ARQ bit on, the printer responds with type and model information to the host. This information includes printer number (4247), model, and the various function set vector information. SHS (Set Home State): The host sends the SHS command to make sure the printer is in the home state before the start of a print job. LPD (Logical Page Descriptor): The LPD command sets print characteristics for the logical page.
WT (Write Text): The WT command sends text data to the printer. Because the printer is currently in a page segment state, this text information does not print at this time. Instead, the data becomes part of the page segment. The host can send multiple WT commands to the printer while in the page segment state. WIC (Write Image Control): The WIC command causes the printer to enter the image block state. Parameters in this command define the image size, scale, initial coordinates, and color of the image.
WGC (Write Graphics Control): The WGC command causes the printer to enter the graphics block state. Parameters in this command specify the placement, size, and orientation of the graphics block. WG (Write Graphics): The WG command sends graphics data to the printer. The graphics data (contained in drawing orders) specifies the various elements of the graphic. These include color, size, line type, line width, and other parameters. One or more WG commands present the graphics picture.
IO (Include Overlay): The IO command causes a previously stored overlay to merge onto the current page. This command contains an ID field, which selects the desired overlay. IPS (Include Page Segment): The IPS command causes a previously stored page segment to merge onto the current page. An ID in this command specifies the selected page segment. The selected page segment now prints on the current page. WIC (Write Image Control): The WIC command causes the printer to enter the image block state.
The host application program can use the Exception Handling Control order to accomplish many specific control capabilities necessary in data printing environments. For example, through the proper selection of settings, it is possible to: v Enforce control over printing of page information v Enable automatic skipping of data types not supported by the printer v Suppress the return of meaningless or redundant exception reports when alternate actions are acceptable to the user.
Chapter 4. IPDS Programming Information This chapter contains programming information for the Intelligent Printer Data Stream (IPDS) commands. The information is for the experienced programmer. A knowledge of data stream requirements, hexadecimal numbering systems, and data processing terminology and concepts is assumed. In addition to the information in this chapter, Chapter 3, “Intelligent Printer Data Stream,” on page 75 contains introductory information about the IPDS.
2. The printer default font is Gothic for DP and fast draft print quality and Courier for DP Text and NLQ print quality. To determine the current values for CPI, language and quality, refer to the User’s Guide for your printer. 3. When Local Font ID equals FF is used, the latest inline sequence established in “Logical Page Descriptor (LPD)” on page 111 determines whether to print in a left-to-right or right-to-left sequence. The default when the printer is powered on is the left-to-right sequence.
Byte Field Description 4 Flag Bit 0 0 = Acknowledge Response Not Required 1 = Acknowledge Response Required Bit 1 0 = Correlation ID Not Included 1 = Correlation ID Included Bit 2 0 = Acknowledge Reply Response is Complete 1 = Second Buffer of XOH - OPC Reply Required Bit 3 - 6 Reserved (Always Zero) Bit 7 0 = Persistent NACK is inactive 1 = Persistent NACK 5-6 Correlation ID Identifier Name (Valid Only if Byte 4, Bit 1 Is On) 7-n Data Specific Subcommands, Operands, Parameters, and Data Fields a
Command Hex Code Description LPP D66D Logical Page Position WBCC D680 Write Bar Code Control WBC D681 Write Bar Code WGC D684 Write Graphics Control WG D685 Write Graphics WIC D63D Write Image Control WI D64D Write Image WT D62D Write Text BO D6DF Begin Overlay DO D6EF Deactivate Overlay IO D67D Include Overlay BPS D65F Begin Page Segment DPS D66F Deactivate Page Segment IPS D67F Include Page Segment LE D61D Load Equivalence LFE D63F Load Font Equivalence D
Command Hex Code Description LPP D66D Logical Page Position LPD D6CF Logical Page Descriptor BP D6AF Begin Page DF D64F Deactivate Font EP D6BF End Page END D65D End XOH D68F Execute Order Home State XOA D633 Execute Order Any State The following pages describe the device control function set commands in detail. No Operation (NOP) Length D603 Flag Correlation ID (Optional) DATA An NOP command is valid in any printer state.
Decimal Hex Description 67-78 43-4E Graphics Function Set Vector 79-84 4F-54 Page Segment Function Set Vector 85-92 55-5C Overlay Function Set Vector 93-98 5D-62 Loaded Font Function Set Vector 99-110 63-6E Bar Code Function Set Vector Note: The format for byte 8, the printer model number, is “03 - Ethernet Host Interface” The function set vectors contain information relating to each specific command function set.
Notes: 1. 4247 native mode. 2. 4224 and 4230 emulation mode. 3. For Limited Simulated Color support, all valid but unsupported color values for text data are accepted and result in simulation of the specified colors without generation of unsupported color exceptions. In the 4247 Printer, simulation of Color of Medium is done by printing in Color of Medium, except where not possible because of different resolutions when text overlays graphics, image, or bar code.
Decimal Hex Value Description 93-94 5D-5E 0006 Vector Length 95-96 5F-60 C3C6 Loaded Font Function Set Identifier 97-98 61-62 FF20 Symbol Sets Bar Code Function Set Vector Decimal Hex Value Description 99-100 63-64 000C Vector Length 101-102 65-66 C2C3 Bar Code Function Set Identifier 103-104 67-68 FF10 BC/1 Level Identifier 105-106 69-6A 1001 Unordered Bar Code Blocks Supported 107-108 6B-6C 4022 (see note 1) 4002 (see note 2) Limited Simulated Color and Color of Medi
v Whenever the printer detects a command stream error or device error and a negative response must be sent. A negative response has priority over a positive response. If the printer can identify the command and the command has a correlation ID, the Acknowledge Reply contains a correlation ID that matches the command. The maximum length of this command is 255 bytes. If there is a five-byte command header (no correlation ID present), the data field can be up to 250 bytes long.
of the page segment add to the font equivalence tables during the include page segment process up to a maximum of 20 loaded font ID/print quality combinations. Each Begin Overlay command starts the overlay with the loaded font IDs currently defined and will add its LFE entries during the overlay’s definition up to a maximum of 20 loaded font ID/print quality combinations total.
6. A font cannot be both double high and italicized.
– – – – – – – – – – Code Code Code Code Code Code Code Code Code Code Page Page Page Page Page Page Page Page Page Page 290 Katakana 293 APL (4224) 310 APL 420 Arabic 833 Korean 838 Thai 880 Cyrillic (Old) 1002 DCF Compatibility 1025 Cyrillic Multilingual 1097 Farsi Load Copy Control (LCC) Length D69F Flag Correlation ID (Optional) DATA The Load Copy Control command controls the production of output from subsequently received input logical pages.
2. The printer receives a Begin Suppression control (inside a Write Text command) with a suppression ID that matches a value in the LCC command. 3. All subsequent text data does not print (text suppression), until the printer receives an End Suppression control (inside a Write Text command) with the same ID. 4. All text data received after the End Suppression control prints normally. Overlay ID allows later processing of specified overlays.
Decimal Hex Value Description 24-25 18-19 0000 I-Axis Orientation of 0 Degrees 5A00 I-Axis Orientation of 180 Degrees (See Note 5) FFFF Printer Default (0 Degrees) (See Note 3) 2D00 B-Axis Orientation of 90 Degrees FFFF Printer Default (90 Degrees) 26-27 1A-1B 29-29 1C-1D 0000-FFFF Initial I Displacement in Units (See Note 4) 30-31 1E-1F 0000-FFFF Initial B Displacement in Units 32-33 20-21 0000-FFFF Initial Inline Margin in Units FFFF Printer Default (Use Initialization Value
Figure 12. Using the Load Page Descriptor Command to Specify the Logical Page Logical Page Position (LPP) Length D66D Flag Correlation ID (Optional) DATA This command positions the upper left corner of the logical page (defined by the Logical Page Descriptor control) with respect to the physical medium. The Logical Page Position command is only valid in the home state. Figure 13 shows the LPP command positioning the logical page on the physical medium. Figure 13.
Only positive values are valid for the data field. The format of the data field (DATA) for this command is: Decimal Hex Value Description 0 0 00 Reserved 1-3 1-3 000000-007FFF X Displacement 4 4 00 5-7 5-7 000000-007FFF Y Displacement 8-9 8-9 0000 Reserved Reserved Deactivate Font (DF) Length D64F Flag Correlation ID (Optional) DATA The Deactivate Font command provides a means for the control unit to delete one or more fonts from the printer.
Order Description 0100 Print Buffered Data (PBD) 0500 Erase Residual Print Data (ERPD) 0700 Erase Residual Font Data (ERFD) 0D00 Stack Received Pages (SRP) 1500 Select Input Media Source (SIMS) 1700 Set Media Size (SMS) F300 Obtain Printer Characteristics (OPC) Print Buffered Data (PBD) This subcommand causes the printer to print all buffered data pages prior to sending the Acknowledgment Reply, if requested. The print buffer clears at the completion of this command.
Figure 14. Using the Set Media Size Command to Specify the Physical Medium The data field for the Set Media Size subcommand has the following format: Decimal Hex Value Description 0 0 00 Unit Base (10 in.) 01 Unit Base (10 cm.) 5A0-7FFF Units per Base Value (per 10 in.
Acknowledge Type and Counters: Decimal Hex Value Description 0 0 06 Acknowledgement Type (4 byte) 1-4 1-4 XXXXXXXX Page/Copy Counters Printable Area Self-Defining Field: The page extents are set at initialization time to reflect the operator panel settings. The Set Media Size command can change the page extents.
Decimal Hex Value Description 6 6 14 X-Box Size in Pels (20) 7 7 12 Y-Box Size in Pels (18) 8 8 00 Reserved 9 9 02 Repeating Group Length 10-11 A-B 000B 10 CPI Courier (NLQ) 12-13 C-D 0055 12 CPI Courier (NLQ) 14-15 E-F 00DF 15 CPI Courier (NLQ) 16-17 10-11 0013 10 CPI OCR-A (NLQ) 18-19 12-13 0003 10 CPI OCR-B (NLQ) 20 14 0C Length of Self Defining Parameter 21 15 01 Fixed Box Size Support (Fixed Pitch DP Text) 22 16 14 X-Box Size in Pels (20) 23 17 09
Decimal Hex Value Description 61 3D 00 Reserved 62-63 3E-3F 0960 Units per Unit Base (2400) 64 40 FF Maximum X-Box Size in Pels (255) 65 41 09 Y-Box Size in Pels (9) 66 42 00 Reserved 67 43 02 Repeating Group Length 67-68 44-45 00A0 PSM Essay (DP Text) Image/Coded-Font Self-Defining Field: Decimal Hex Value Description 0-1 0-1 000A Length of this field 2-3 2-3 0003 Image/Coded-Font Resolution ID 4 4 00 Unit Base (10 in.
Available Features Self-Defining Field: Decimal Hex Value Description 0-1 0-1 0006 Length of this field 2-3 2-3 0007 Available Features 4-5 4-5 0B00 Continuous Forms Output Resident-Symbol Set Support Self-Defining Field: For Ethernet interfaces: Decimal Hex Value Description 0-1 0-1 00B6 Length of this field 2-3 2-3 0008 Resident Symbol Set Support 4 4 6A Length of this field 5 5 01 Code Page Support 6 6 56 Length of Code Page List 7 7 02 Length of CP Repeating Gr
Decimal Hex Value Description 62-63 3E-3F 033F CP831 Portuguese (Alternate) 64-65 40-41 037A CP890 Yugoslav 66-67 42-43 0458 CP1112 Baltic Multilingual 68-69 44-45 0462 CP1122 Estonian 70-71 46-47 0474 CP1140 USA/Canada + euro 72-73 48-49 0475 CP1141 Austrian/German + euro 74-75 4A-4B 0476 CP1142 Danish/Norwegian +euro 76-77 4C-4D 0477 CP1143 Finnish/Swedish + euro 78-79 4E-4F 0478 CP1144 Italian + euro 80-81 50-51 0479 CP1145 Spanish/Spanish Speaking + euro 82-83
Decimal Hex Value Description 136-137 88-89 000B 10 CPI Courier (DP Text and NLQ) 138-139 8A-8B 0055 12 CPI Courier (DP Text and NLQ) 140-141 8C-8D 00DF 15 CPI Courier (DP Text and NLQ) 142-143 8E-8F 001A 10 CPI Gothic (Fast Draft and DP) 144-145 90-91 0057 12 CPI Gothic (Fast Draft and DP) 146-147 92-93 00DE 15 CPI Gothic (Fast Draft and DP) 148-149 94-95 0190 16.
Decimal Hex Value Description 5 5 56 DP Text Quality 6 6 AB NLQ These values apply if Host Fast Draft is enabled in the printer configuration menu: Decimal Hex Value Description 0-1 0-1 0008 Length of this field 2-3 2-3 0009 Print Quality ID 4 4 01 Fast Draft Quality 5 5 2B DP Quality 6 6 56 DP Text Quality 7 7 AB NLQ XOA RRL RT & RIDF Support Self-Defining Field: Decimal Hex Value Description 0-1 0-1 0006 Length 2-3 2-3 000A RRL Resource Type Self Defining
Decimal Hex Value Description 44-59 2C-3B XX...
Activate Printer Alarm (APA) The XOA Activate Printer Alarm (APA) subcommand signals the printer to activate the alarm mechanism. As long as the printers alarm function is enabled, the alarm will be turned on in response to this command. It will remain on until Stop is pressed. After processing this command, the printer continues to process the incoming IPDS data stream. If synchronization of actions is desired, the application must ensure if the appropriate commands are sent to the printer.
Acknowledge Reply for Request Resource List: Length D6FF Flag Correlation ID (Optional) DATA The format of the resource list returned with the Acknowledge Reply is as follows: Decimal Hex Value Description 0 0 FF Unordered List 1 1 01 End of List 06 Length of this Entry 2 2 3 3 Resource Type 00 Resource Size equals 0. The queried Resource Type, ID Format, or ID is unknown, unsupported, or inconsistent.
Decimal Bit 1 Hex Value Bit 1 Description Page Position Check 0 Do Not Report Exceptions 1 Report Exceptions Bit 2-6 Bit 2-6 Reserved Bit 7 Bit 7 All other Errors 3 0 Do Not Report Exceptions 1 Report Exceptions 3 Bit 0-6 Bit 0-6 Bit 7 Bit 7 4 Reserved 0 Take Alternate Exception Action and Continue 1 Do Not Take Alternate Exception Action, Proceed per Byte 4 4 Bit 0-5 Bit 0-5 Bit 6 Bit 6 Bit 7 Alternate Exception Action Bit 7 Exception Presentation Processing Reserved
The first asynchronous NACK is the only one reported, even though other synchronous NACKs may be detected before the first NACK is reported. If the printer has a pending exception (the exception has occurred but has not yet been reported), the printer reports the exception when exception handling control directs. Alternate Exception Action: Byte 3 of the EHC subcommand controls Alternate Exception Actions.
- Write Graphics Control - End Page - Set Home State - XOA Discard Buffered Data - Load Font Equivalence. If the following terminating conditions occur, the printer returns to home state and reports the indicated exception: – An asynchronous exception occurs such that the printer cannot recover without host intervention. The asynchronous exception is reported and the exception that caused the skip and continue action is discarded. – A command is received with the ARQ flag set on.
Figure 15.
Figure 15. Exception Handling Control (Part 2 of 3) Chapter 4.
Figure 15. Exception Handling Control (Part 3 of 3) Print Quality Control (PQC) The Print Quality Control subcommand allows the host to specify the desired print quality without changing fonts (see notes). The quality selection (from the PQC subcommand) specifies the quality for printing text associated with fonts selected by the Set Coded Font Local (SCFL) command and defined by the Load Font Equivalence (LFE) command.
The following bytes contain the print quality selection, as shown: Byte Value Description Bit 0-1 F800 PQC Order Code Bit 2 01 - 2A Fast Draft Quality 2B - 55 DP 56 - AA DP Text AB - FE NLQ FF Depends on Operator Panel setting Note: Model Z03 only with Host Fast Draft enabled.
If a Load Copy Control command refers to a suppression identifier that has not been specified as an external value in an LE command, the identifier (external value) will map to itself. This is the only case where the identifier will map to itself unless specified. This mapping remains in effect until the printer receives another Load Equivalence command, at which time its values will totally replace this mapping.
Control Description Control Description CO (C1) Set Inline Margin (SIM) F4 (F5) End Suppression (ESU) C2 (C3) Set Intercharacter Adjustment (SIA) E4 (E5) Draw I-Axis Rule (DIR) D0 (D1) Set Baseline Increment (SBI) E6 (E7) Draw B-Axis Rule (DBR) C6 (C7) Absolute Move Inline (AMI) EE (EF) Repeat String (RPS) D2 (D3) Absolute Move Baseline (AMB) DA (DB) Transparent Data (TRN) C8 (C9) Relative Move Inline (RMI) F8 (F9) No Operation (NOP) D4 (D5) Relative Move Baseline (RMB) C4 (C5)
Description: This control specifies a distance, which the printer adds to the current baseline coordinate when the printer performs a Begin Line control. Parameters P1P2 form a two byte value that specifies the baseline increment in units. All values between X'8000' and X'7FFF' are valid. A value of X'FFFF' causes the printer to use the value in the LPD command. Absolute Move Inline (AMI) 2BD3 04 C6 (C7) P1P2 Description: This control moves the inline coordinate in the I direction.
Description: This control moves the baseline coordinate relative to the current baseline coordinate position. Parameters P1P2 form a two byte value that specifies the displacement value in units. All values between X'8000' and X'FFFF' are valid. Note: Baseline displacement values that require a negative baseline displacement in order to print results in an error if the LPD command specifies ordered printing.
Description: This control marks the beginning of a string of text that the printer can suppress from the printed output. Parameter P1 is a one byte suppression identifier. Valid values are from 1 to X'FF'. An End Suppression control, with the same suppression identifier, must follow the Begin Suppression control. An error results when BSU-ESU text controls are not paired properly or have different suppression IDs.
Parameters P3P4 specify the width of the rule in the inline direction in units. Valid values are from X'8000' to X'7FFF'. Negative values are in twos-complement form. Also valid is X'FFFF'. This selects the printer default of 5 pels wide. Parameter P5 is ignored by the 4247 Printer. Repeat String (RPS) 2BD3 04-FF EE (EF) P1-Pn Description: This control contains a string of coded graphic characters that repeats on the current line. Parameters P1P2 specify the repeat length.
Hex Color Hex Color 0000 Black (Default) 0008 Black FF00 Black FFFF Use Current Default FF07 Black (Default) Note: For Limited Simulated Color Support, all valid but unsupported color values for text data are accepted and result in simulation of the specified colors without generation of unsupported color exceptions.
An OVS command with a bypass value of 00 ends overstrike mode. Underscore (USC) 2BD3 05 76 (77) P1-P3 Description: This control identifies text the printer underscores at the baseline of the current line. The underscore prints using the same print quality as the text. Parameter P1 is the bypass identifier.
01 A substitute font with characteristics identical to the current font may be used to simulate baseline shift (superscript/subscript). FF Same as 00. Note: When subscript or superscript is active, double high printing will not occur. Parameters P3 and P4 are the temporary baseline increments. Its values are: 0000 - 7FFF Temporary Baseline Increment FFFF Half the current baseline increment.
Decimal Hex Value Description 12-13 C-D 0000 Zero Degrees Scan Line Direction 14-15 E-F 2D00 90 Degrees Scan Line Sequence Direction 16 10 Coordinate Type (See note 1) 00 Absolute I, Absolute B 20 Absolute I, Relative B 40 Relative I, Absolute B 60 Relative I, Relative B AD Absolute X, Absolute Y 17-19 11-13 FF8000 - 7FFF First Pel X or I Coordinate 20 14 00 Reserved 21-23 15-17 FF8000 - 7FFF First Pel Y or B Coordinate 24-25 18-19 0000, 0008, FF00, FF07, FF08 Color -
Ym-coordinate origin. When the block is within an overlay that is invoked using an IO command, WIC bytes 11 through 13 and 15 through 17 specify the offset from the X-coordinate and Y-coordinate origin specified in the IO command. Bytes C through D must equal 0 degrees scan line direction and bytes E through F must equal 90 degrees scan line sequence direction. The Coordinate Type byte 10 is not used to modify the image direction.
Note: The Graphics X and Y coordinates are not the same as the media X and Y coordinates. The horizontal axis is Graphics X; the vertical axis is Graphics Y. The intersection of the Graphics X and Y axes is coordinate (0,0). The horizontal axis is positive to the right of center and negative to the left of center. The vertical axis is positive to the top of center and negative to the bottom of center. Therefore, both positive and negative values are valid.
Figure 17. The Graphic Medium Presentation Space and Its Limits Graphic Window The graphic window is a user-defined, rectangular area within the graphic medium presentation space. This area is the source from where information is selected for printing. Figure 18 illustrates the relationship of the graphic window to the graphic medium presentation space. Figure 18.
Figure 19. The Graphic Block Area on the Physical Medium Positioning the Graphic Window in the Graphic Block Area As mentioned previously, the graphic window can be any size within the graphic presentation space limits. The graphic block area size can be the entire physical Medium or a portion of the physical medium. The Write Graphics Control command, described in detail in “Write Graphics Control (WGC)” on page 148, specifies the mapping of the graphic window to the graphic block area.
Write Graphics Control (WGC) Length D684 GAP GOC Flag Correlation ID (Optional) DATA GDD The Write Graphics Control command causes the printer to enter the graphics block state. The parameters of this command define the size, placement, and orientation of the graphic block area and establish the initial conditions for interpreting the graphic data. Receiving the End command in the graphic block state terminates the processing of the graphic data.
Decimal Hex 10 A 11-n B-n Value Description Reference Coordinate System: 00 Absolute I, Absolute B 20 Absolute I, Relative B 40 Relative I, Absolute B 60 Relative I, Relative B A0 Absolute X, Absolute Y Reserved Figure 20 shows the Graphic Block Area Position control specifying the top left reference point for the graphic block area. Figure 20. Graphic Block Area Position Control and the Graphic Block Area Byte A of the GAP specifies the reference coordinate system.
If byte 10A equals X'A0', the current logical page X and Y coordinates determine the origin. When the block is within a page, GAP bytes 4 through 7 specify the offset from the X-coordinate and Y-coordinate origin specified in a previously received LPP command (or from the printer default coordinates if no LPP command was received). When the block is within an overlay that is invoked using an LCC command, GAP bytes 4 through 7 specify the offset from the Xm-coordinate and Ym-coordinate origin.
Decimal Hex 16-17 10-n Value Description Reserved Notes: 1. For bytes 5 through 6 (units per base value), 14400/10 in. is supported precisely. Multiples of 14400/10 in. are also supported. If byte 4 specifies units in centimeters and byte B specifies 20 (center-and-trim) or 30 (position-and-trim), then bytes 5 through 6 must be equivalent to a supported value such as X'1626' or X'2C4C'. 2. See “Area Mapping Control Options” on page 153. 3.
Decimal Hex Value Description 0-1 0-1 001C - (n + 1) Length of this Structured Field 2-3 2-3 A6BB Structured Field ID 4 4 00 Unit Base (10 in.) 01 Unit Base (10 cm) 5 5 00 Reserved 6-7 6-7 05A0 - 7FFF Units per Unit Base (10 in.) (See Note) 1626 - 7FFF Units per Unit Base (10 cm) (See Note) 05A0 - 7FFF Units per Unit Base (10 in.
Figure 22. Graphic Data Descriptor and the Graphic Medium Presentation Space Area Mapping Control Options Byte B in the GOC data field is the area mapping control option byte. The option values are: v 10 - Scale to fit v 20 - Center and trim v 30 - Position and trim.
Notes: 1. The printer will not rescale graphics image data. If the image data does not fit within the output area, clipping of the image data occurs. 2. Graphics markers are not scaled; they are always 3 mm (0.12 in. [17/144-in.]) square. If markers are drawn close to the boundary of a page and the page is then scaled down, the center points of the markers are scaled closer to the boundary of the page but the marker size is still the same.
Figure 24. Center-and-Trim Mapping Position and Trim Mapping: The upper left-hand corner of the graphic window is mapped to the graphic block area using the specified offset and presented at the specified scale. Any portion of the picture that goes outside the graphic block area is clipped to the area boundary. Figure 25 on page 156 shows the result of position-and-trim mapping. For this example, the graphic window is shown smaller than a previously defined graphic picture.
Figure 25. Position-and-Trim Mapping Self-Describing Instructions This portion of the Graphic Data Descriptor structured field contains zero or more self-describing instructions that set the drawing defaults for the graphics picture. The general format of a self-describing instruction is: 21 Length Set Mask Default Data The first byte, 21, indicates that the following parameter is a Set Current Defaults instruction. The Length byte is the length of the following data.
The Data bytes contain immediate data that specifies values for the attributes in this instruction. If the Default byte is 0F, these Data bytes are not present. The Set byte specifies one of the following attributes or parameters: Set Value Description 00 Drawing Attributes 01 Line Attributes 02 Character Attributes 03 Marker Attributes 04 Pattern Attributes 0B Arc Parameters The following charts explain the meaning of the mask bits for each of the Set instructions.
Mask Bit Item Name Length (Bytes) 0-1 Reserved (Mask Bits = 0) – 2 Reserved (Mask Bits = 0) – 3 Precision 1 4 Symbol Set 1 5-6 Reserved (Mask Bits = 0) – 7 Marker Symbol 1 8-15 Reserved (Mask Bits = 0) – Pattern Attributes Set (Set = 04): Mask Bit Item Name Length (Bytes) 0-4 Reserved (Mask Bits = 0) – 5-6 Reserved (Mask Bits = 0) – 7 Pattern Symbol 1 8-15 Reserved (Mask Bits = 0) – Arc Parameters Set (Set = 0B): Mask Bit Item Name Length (Bytes) 0 P Value 2 1 Q
Description Value Arc Parameters P = Q = 1, R = S = 0 Foreground Mix Overpaint Background Mix Leave Alone Character Precision Character Precision Marker Precision Character Precision Marker Symbol Set Resident Set in Printer Note: Standard NLQ text character images (18 1/144 in. high by 20 1/200 in. wide) map to the standard size graphics character so that their upper left corners are coincident.
Decimal Hex Content Description 1 1 0C Length of the Following Parameters in BSI 2-5 2-5 NAME Name of Segment (Printer ignores this field) 6 6 00 Reserved 7 7 Bit 0-2 Reserved (Must be Zeros) Bit 3 Prologue Flag 0 - No Prologue 1 - Prologue Bit 4 Reserved Bit 5-6 Segment Flags 00 - New Segment (Reinitialize Current Drawing Attributes) 11 - Append This Segment to the Previous Segment (Do Not Reinitialize Current Drawing Attributes) Bit 7 Reserved 8-9 8-9 LEN Length of Created S
Code Drawing Code Drawing 00 No Operation 33 Set Character Cell Size 01 Comment 34 Set Character Angle 04 Reserved (Treated as a No-op) 38 Set Character Set 08 Set Pattern Set 39 Set Character Precision 0A Set Color (Graphics) 3A Set Character Direction 0C Set Mix 3B Set Marker Precision 0D Set Background Mix 3C Set Marker Set 11 Set Fractional Line Width 3E End Prologue 18 Set Line Type 43 Reserved (Treated as a No-op) 19 Set Line Width 60 End Area 21 Set Curren
Description: This order is for compatibility with existing products and is a No Operation order. Set Pattern Set 08 P1 Description: This order sets the value of the current pattern set attribute. Parameter byte P1 has the following value: 00 Pattern default Set Color 0A P1 Description: This order sets the value of the current graphic color attribute. The color for non-graphics (for example, text) does not change with this order.
Set Background Mix 0D P1 Description: This order sets the value of the background mix. The background mix controls the way the printer combines the color of the background with the color of the graphics medium presentation space. Parameter byte P1 contains the value of the current mix attribute. The only valid values for this byte are: 00 Use the default (leave alone) 05 Leave Alone - The color attribute value of the medium presentation space does not change.
Set Line Width 19 P1 Description: The Set Line Width order specifies the line width for subsequent graphics. This order changes the fractional line width attribute only. The printer uses the last line width received, no matter which order, Set Fractional Line Width Order or Set Line Width, sets the line width. Parameter P1 specifies the width of the line for the graphic output.
Set Extended Color 26 02 P1 P2 Description: This order functions the same as the Set Color order except that it specifies a length field and the color parameter contains two bytes. The color for non-graphics (for example, text) does not change with this order.This order does not change any other graphic drawing attributes. This order aids graphics interchange compatibility.
Hex Line Type 0F No Shading 10 Solid Shading 40 Blank Set Marker Symbol 29 P1 Description: This order sets the value of the current marker symbol attribute for subsequent markers. See “Marker” on page 174 and “Marker at Current Position” on page 170 orders. Parameter P1 specifies the marker symbol attribute value. This value determines which marker from the marker symbol set the printer uses for subsequent orders.
For the second format, the width and height of the character cell contain both integer and fractional values. Parameters P5P6 form a two byte value that specifies the fractional portion of the width of the character in drawing units. Parameters P7P8 form a two byte value that specifies the fractional portion of the height of the character in drawing units. There is an implied decimal point between P1P2 and P5P6, and between P3P4 and P7P8.
Description: This order sets the value of the current character precision attribute. Parameter P1 specifies the type of precision. Precision 2 (character precision) is the only valid type of precision for this printer. P1 must equal 01 or 02. P1 set to X'00' is the current default. Set Character Direction 3A P1 Description: This order sets the value of the character direction attribute.
Description: This order indicates the end of the boundary of an area specified with a Begin Area order. This order does not change any other graphic drawing attributes. However, orders between a Begin Area/End Area pair can update the current position. L1 is the length of the data, P1 to Pn. If no data is present, the length is zero. Parameters P1 to Pn are optional data bytes, and if present, must be zeros. Within the area boundaries, one or more closed figures can exist.
Bit 1 0 = Do Not Draw Boundary Lines 1 = Draw Boundary Lines Bits 2-7 Reserved The printer uses the current values of color, mix, background mix, pattern, and pattern set when shading the area. If boundary lines are drawn, the printer uses the current values of graphics color, line type, and line width. The printer shades any commented region with an odd number of line crossings from infinity.
and P2 form a two byte value that specifies the second X coordinate. P3 and P4 form a two byte value that specifies the second Y coordinate. Any remaining parameters specify additional coordinate values for additional markers, using the same format. The printer uses the current values of color, mix, background mix, marker, precision marker set, and marker symbol for drawing the marker. This order updates the current graphics position to the value of the last point coordinates.
This order updates the current graphics position to the coordinates of the last point. Full Arc at Current Position 87 02 P1 P2 Description: This order specifies a full arc (circle or ellipse) with the center at the current graphics position. A previous Set Arc Parameters order determines the shape and orientation of the arc. If no Set Arc Parameters order has been received, then the printer draws an arc using the default values of the arc parameters.
Parameters P1 to Pn are values that specify the image dot data, a zero indicating the absence of a dot, a one indicating the presence of a dot. The dots are 0.18 mm (0.007 in. [1/144 in.]) apart horizontally and vertically. The image data is in the form of horizontal scan lines (rows), left to right. Each Image Data order specifies only one scan line (row) of the image.
Line C1 L1 P1-Pn Description: This order specifies one or more connected lines. L1 is a one-byte value that specifies the length of the parameter field that follows. The value of L1 must be a multiple of four and cannot be zero. If L1 equals four, no line is drawn, but the printer updates the graphics current position to the points specified by parameters P1 to P4. Parameters P1 and P2 form a two byte value that specifies the first X coordinate point.
The printer places the character cell of the first character in the string at the specified graphics position. The Set Character Cell, Set Character Angle, and Set Character Direction orders determine the character size, character angle, and character direction, respectively. The printer uses the current values of color, mix, background mix, and character precision when drawing the string. L1 is a one-byte value that specifies the length of the parameter field that follows.
The scale value acts as a multiplier for the arc parameters, as follows: For a circle: The radius is P5P6 x r. A previous Set Arc Parameters order specifies the value of r. For an ellipse: The major axis is P5P6 x a and the minor axis is P5P6 x b. A previous Set Arc Parameters order specifies the values for a and b. The printer uses the current values of color, mix, line type, and line width when drawing the arc. This order does not update the current graphics position.
one-byte value that specifies the Y coordinate of the second end point as an offset from the first end point. The remaining parameters, if present, specify additional X and Y coordinate values as offsets from the previous point, following the same format. The printer draws the line in the current values of color, mix, line type, and line width. This order updates the current graphics position to the coordinates of the last offset point.
Table 6.
Table 6.
Table 6.
Write Bar Code Control (WBCC) Length D680 BCAP BCOC Flag Correlation ID (Optional) DATA BCDD The Write Bar Code Control command causes the printer to enter the bar code block state in the current page, overlay, or page segment state. The parameters of this command define the size, placement, and orientation of the bar code block. Parameters in this command also establish the initial conditions for interpreting the bar code data.
Decimal Hex Content Description 4-5 4-5 8000 - 7FFF X Coordinate of Origin of Bar Code Block 6-7 6-7 8000 - 7FFF Y Coordinate of Origin of Bar Code Block 8-9 8-9 0000 When you use the X,Y coordinate system or the I,B coordinate system with the inline orientation equal to 0 degrees, you must use the 0 or 90 degree orientation for bar codes.
If byte A equals X'20', the absolute I and relative B coordinates determine the top left corner. BCAP bytes 4 and 5 specify the text inline coordinate. BCAP bytes 6 and 7 add to the last text baseline coordinate position prior to bar codes. If byte A equals X'40', the relative I and absolute B coordinates determine the top left corner. BCAP bytes 4 and 5 add to the last text inline coordinate position prior to bar codes. BCAP bytes 6 and 7 specify the text baseline coordinate.
Decimal Hex Content Description 12-13 C-D 8000 - 7FFF X Offset of Medium Presentation Space Origin in Units 14-15 E-F 8000 - 7FFF Y Offset of Medium Presentation Space Origin in Units 16-x 10-x Reserved Figure 27 shows the BCOC field specifying the size of the bar code block on the logical page. Figure 27.
Decimal Hex Content Description 10-11 A-B 1 - 7FFF X-Extent of Medium Presentation Space (Width) FFFF Use BCOC bytes 7-8 if BCOC is present. Otherwise, use LPD value. 1 - 7FFF Y-Extent of Medium Presentation Space (Height) FFFF Use BCOC bytes 9-A if BCOC is present. Otherwise, use LPD value.
Decimal Hex 21 15 22-23 16-17 24 18 25-26 19-1A 27-x Content Description Unit/Module Width (See Note 2) 0E 0.36 mm (0.014 in.) Width 11 0.43 mm (0.017 in.) Width (Must have 0 in bytes 8-9 of BCAP) 15 0.53 mm (0.021 in.) Width 1C 0.71 mm (0.028 in.) Width FF Printer Default 1 - 7FFF Element Height (See Note 3) FFFF Printer Default 1 - FF Height Multiplier (See Note 3) Wide-to-Narrow Ratio (See Note 5) 2, 14 2:1 19, 0FA 2.
OCR-A MSI 2 of 5 Industrial 2 of 5 Matrix 2 of 5 Interleaved Codabar OCR-B UPC - Two Digit Add-On (Magazine) UPC - Five Digit Add-On (Paperback) EAN-8 EAN-13 EAN Two Digit Add-On EAN Five Digit Add-On 5. Wide-to-Narrow ratio is only valid for the following bar code types: v Code 3 of 9 (X'01') v MSI (X'02') v 2 of 5 Industrial (X'0A') v 2 of 5 Matrix (X'0B') v Interleaved 2 of 5 (X'0C') v Codabar (X'0D') The default ratio for Codabar, Code 3 of 9, and the 2 of 5 types is 2.5:1 for unit/module width of 0.
Figure 28. Specifying the Bar Code Medium Presentation Space Size. Using the Bar Code Data Descriptor Modifier Byte: 3 of 9 Code: 01 Print bar code with no printer generated check character. 02 Generate check character and print with bar code. MSI Code: 01 Print bar code with no printer generated check character. 02 Print bar code with IBM Modulus 10 check digit generated by the printer and put at the end of the data. This check digit will be the second check digit.
07 Print bar code with both check digits generated by the printer and put at the end of the data. The second check digit will be IBM Modulus 10. The first check digit will be IBM Modulus 11. Check digit equals 11 minus remainder; check digit of 10 equals zero. 08 Print bar code with both check digits generated by the printer and put at the end of the data. The second check digit will be IBM Modulus 10. The first check digit will be NCR Modulus 11.
data consists of only the add-on digits. The preceding EAN-13 symbol prints under control of separate Write Bar Code Control and Write Bar Code commands. EAN Five Digit Add-On: 00 Print the five add-on digits (bar/space pattern and HRI). The Write Bar Code command variable data consists of only the add-on digits. The preceding EAN-13 symbol prints under control of separate Write Bar Code Control and Write Bar Code commands. Codabar: 01 Print the bar code with no printer generated check digit.
The HRI code prints in the OCR-A or the OCR-B font, depending on the bar code type. The following bar codes print the HRI in OCR-A: v Code 128 v Code 3 of 9 v MSI v 2 of 5 Industrial v 2 of 5 Matrix v 2 of 5 Interleaved v Codabar. The following bar codes print the HRI in OCR-B: v UPC-A v UPC-E v UPC Two Digit Add-On v UPC Five Digit Add-On v EAN-8 v EAN-13 v EAN Two Digit Add-On v EAN Five Digit Add-On. POSTNET bar codes have no HRI.
Decimal Hex Content Description Notes: If bar codes with human readable interpretation (HRI) are placed too close to the page edges, the human readable characters may fall outside the physical medium boundaries. If the HRI falls outside the physical medium boundaries, the characters may not print and a Position Check error, X'041100', may occur. To ensure that the human-readable characters print, choose X and Y parameter values that allow sufficient space for the characters to print.
Table 7.
Begin Overlay (BO) Length D6DF Flag Correlation ID (Optional) DATA The Begin Overlay command causes the printer to leave the home state and enter the overlay state. This command defines data that the printer saves for later use within an overlay. The printer later merges the stored overlay with ordinary printed pages by using the Include Overlay command or the Load Copy Control command.
Decimal Hex 7-9 7-9 Content Description Y Coordinate 000000 007FFF Positive Offset Value Relative to the Logical Page FF8000 FFFFFE Negative Offset Value Relative to the Logical Page FFFFFF Use the Current Baseline Text Position Note: Negative values must be specified in twos-complement form. Page Segment Function Set Commands The page segment function set contains the commands the printer uses to store, delete, and present information in the page segment memory of the printer.
The DATA field is two bytes in length and can be any value between X'01' and X'7F'. This value is the page segment identifier, and it specifies the page segment to include. A value specifying a page segment identifier that is not defined in the printer causes an exception to occur. Deactivate Page Segment (DPS) Length D66F Flag Correlation ID (Optional) DATA The Deactivate Page Segment command deletes (clears) either a single page segment or all page segments from the printer memory.
Decimal Hex Content Description 10 A 00 Reserved 11 B 01-FF Ending Code Point 12 C 00 Reserved 13 D 00 Reserved 14 E 00 Reserved 15-16 F-10 0001 - 7EFF Loaded Font Identifier (See Note 3) 17-x 11-x 00...00 Reserved (See Note 4) (x+1) - xx (x+1) - xx 02FF...XX Self-Defining Fields o-p o-p XX...XX Character Raster Data Notes: 1. Vertical format download refers to the method used to send the character patterns to the printer.
Character Raster Patterns: Data in this field contains the actual code points (bit patterns) for the font specified in bytes 0F and 10. If the font identifier matches an existing font ID, and one or more of the code points specified in bytes 2 and 0B overlap previously specified code points, then the printer replaces the character patterns of the previously specified code points, regardless of how they were originally loaded.
Chapter 5. IPDS Exception Reporting Codes The following tables contain the exception reporting codes, which the printer sends to the host in the NACK reply. These codes are in a three-byte format. The first byte, byte 0, is the error group. The remaining two bytes, bytes 1 and 2, are the individual error identifiers. Table 8 shows the error group meanings: Table 8.
X'400100' Printer Out of Forms Alternate Exception Action: None. X'401300' Tear-Off Required Explanation: The printer needs operator intervention to tear off a continuous forms paper source so paper source switching can be done. Alternate Exception Action: None. Alternate Exception Action: None. X'40E000' Forms Jam Alternate Exception Action: None. X'40E400' Cancel Print Key Pressed Explanation: The Cancel Print key was pressed while the printer was receiving IPDS data.
Explanation: The unit/module width specified in the Write Bar Code Data Descriptor field is not supported. X'040E00' Alternate Exception Action: Use closest smaller width supported or the device default for those devices with only one fixed default value. Explanation: A first check digit calculation resulting in a value of 10 is defined as an error in various of the modifier options (byte 17 of the Bar Code Data Descriptor structured field) for the MSI bar code.
Specification Check-Graphics - X'03' The following exception codes are the valid codes for a graphics specification check condition: X'030001' Unallocated Graphic Order or Command Code Alternate Exception Action: None. Explanation: 1. An attempt was made to execute an unallocated order code that is reserved for future use. 2. An attempt was made to execute an unallocated command code that is reserved for future use. Alternate Exception Action: None.
X'036802' Supported Order Invalid in Area Explanation: A supported order is detected that is not valid within an area. Alternate Exception Action: None. X'036803' Pattern Symbol Set Not Available Explanation: The symbol set identified by the current Pattern Set is not available. Alternate Exception Action: Use the standard default pattern symbol set. X'036804' Undefined Pattern Symbol Explanation: The current pattern symbol is undefined in the pattern symbol set.
X'03D102' Graphic Image Format Not Supported Explanation: The value specified for the graphic image format parameter is not supported. Explanation: The Height value specified in the Begin Image order exceeds the maximum image height supported by the product. Alternate Exception Action: None. Alternate Exception Action: The image height is truncated at the maximum height supported.
command is not a valid or supported value. Alternate Exception Action: None. Alternate Exception Action: None. X'020805' X'020501' Invalid Spanning Sequence Explanation: A Write Text or Write Graphics command is required to complete a partial order, control, or double-byte character code and another command was received other than an XOA command.
Note: In an LPD command, no Alternate Exception Action occurs. X'021802' Invalid Font ID Explanation: X'021202' Font Storage is Full Explanation: There is insufficient pattern storage to store the font transmitted with the Load Symbol Set command. There is insufficient storage to load the data transmitted with the Load Font Equivalence command. Alternate Exception Action: None.
X'021E01' Invalid Text Control Length X'022802' Explanation: The length of a text control is not valid. Alternate Exception Action: None. X'021E02' Mismatch Between Font and XOA Print Quality Control Explanation: The specified pattern download format in LSS is either a reserved value or not supported. Alternate Exception Action: None. X'022902' Explanation: 1. The combination of parameters specified in LFE are not supported together with the quality indicated by XOA Print Quality Control. 2.
X'023F02' Font Index Not Loaded Explanation: 1. The font inline sequence in Load Font Equivalence command is not supported or not supported with the current Text Orientation. 2. The Font Index specified in a Load Font Equivalence command called out by a Set Coded Font Local text control is not loaded. Alternate Exception Action: None. X'024702' Invalid LFE Font Inline Sequence Explanation: The Font Inline Sequence parameter in a Load Font Equivalence command is not a valid or supported value.
X'024A02' Invalid WIC Coordinate Specification Explanation: The Ending Code Point specified in the LSS command is not a valid or supported value. X'026102' Invalid LPD Y Units/Unit-Base Explanation: Alternate Exception Action: None. 1. On the Logical Page Description command, the Y units per unit-base value is not a valid or supported value. X'024B02' 2. On the Set Media Size command, the units per unit-base value is not a valid or supported value.
X'026A01' Insufficient Source Image Data X'028101' Insufficient Storage for Overlay or Page Segment Explanation: The number of source image bytes received < the number implied in the Write Image Control command. Explanation: There is insufficient storage to process an overlay or page segment. Alternate Exception Action: None. Alternate Exception Action: None.
X'029201' Overlay Number Not Loaded Explanation: The overlay identified by the Overlay Identifier on the Include Overlay, Deactivate Overlay or LCC command was not loaded or was already deleted prior to its attempted use. X'029801' Suppression Number Outside Valid Range Explanation: 1. On a Write Text command, the Begin Suppression number value is not a valid or supported value. Alternate Exception Action: None. 2. In a LCC command, the suppression number value is not a valid or supported value.
X'02AD01' Invalid Logical Page Position Parameter Explanation: The X Coordinate value on the Logical Page Position command is not a valid or supported value. The Y Coordinate value on the Logical Page Position command is not a valid or supported value. Alternate Exception Action: None. X'02AE01' Invalid Include Overlay Position Parameter Explanation: 1. The X-Coordinate value on the Include Overlay command is not a valid or supported value. 2.
Conditions Requiring Host Notification - X'01' X'010100' Media Size or Input Media Source ID Changed Explanation: 1. The size of the media in one or more of the installed input media sources was changed. 2. The input media source ID of one or more of the installed input media sources was changed. Alternate Exception Action: None. Note: Not reported in 4224 Emulation Mode. Chapter 5.
214 Programmer Manual
Chapter 6. Print Samples and IPDS Coding Example The following pages contain examples of the printing capabilities of the 4247 Printer and one IPDS coding example. Text Print Samples Various print styles are available with this printer. The data stream sent by the host computer determines the print style, characters per inch, and character set.
Bar Codes The following are sample bar code labels printed with the 4247 Printer: 216 Programmer Manual
Graphics Patterns The following example shows the area fill patterns, line widths, line types, and marker symbols available with this printer. Chapter 6.
Graphics Example The following drawing is an example of the graphics capabilities of the 4247 Printer. The actual IPDS graphics data stream commands necessary to draw this graphic follow the example.
********* Begin Area 6840 ********* Full Arc C706ED680A8CF000 ********* End Area 6000 ********* Color 0A00 ********* Set Pattern Symbol 2803 ********* Begin Area 6840 ********* Full Arc C706F6DC0A8CF000 ********* End Area 6000 ********* Color 0A00 ********* Set Pattern Symbol 280D ********* Begin Area 6840 ********* Full Arc C706FFB00A8CF000 ********* End Area 6000 ********* COlor 0A00 ********* Set Pattern Symbol 280D ********* Set Line Type 1800 ********* Begin Area 6840 ********* Fillet C528EDB80654F1F00
Set Line Type 1800 ********* Begin Area 6840 ********* Fillet C528EDB8021CF1F00087F628 0384FA6001C2FE98FE3E02D0 00B40708FE110B40FFA60CA8FD8A0F78FCD6 ********* Set Line Type 1808 ********* Line 810C0F78FB14EDB8FB14EDB8021C ********* End Area 6000 ********* Color 0A08 ********* Set Pattern Symbol 2800 ********* Set Line Type 1800 ********* Begin Area 6840 ********* Fillet C528EDB8FE3EF1F0FD8AF628 FEC5FA60FE3EFE98FC7C02D FE3E0708FBC80B40FCD6 0CA8FC220F78FBC8 ********* Set Line Type 1808 ********* Line At Curre
********* Line C108EDB8005AED04005A ********* Line C108EDB8021CED04021C ********* Line C108EDB803DEED0403DE ********* Line C108EDB805A0ED0405A0 ********* Line C108EDB80762ED040762 ********* Line C108EDB80924ED040924 ********* Line C108EDB8FBF5ED5EFBF5 ********* Line C108EDB8FDB7ED5EFDB7 ********* Line C108EDB8FF79ED5EFF79 ********* Line C108EDB8013BED5E013B ********* Line C108EDB802FDED5E02FD ********* Line C108EDB804BFED5E04BF ********* Line C108EDB80681ED5E0681 ********* Line C108EDB80843ED5E0843 ********
********* Character C306EB4208ca F8F0 ********* Character C306EB420708 F7F0 ********* Character C306EB420546 F6F0 ********* Character C306EB420384 F5F0 ********* Character C306EB4201C2 F4F0 ********* Character C306EB420000 F3F ********* Character C306EB42FE3E F2F0 ********* Character C306EB42FC7C F1F0 ********* Character C305EBF6FABA F0 String, 80 String, 70 String, 60 String, 50 String, 40 String, 30 String, 20 String, 10 String, 0 ********* Character Angle 3404000005A0 ********* Character String, 1000 C
IPDS Coding Example The 4247 Printer produced this example of text, bar codes, and block graphic characters printing on the front continuous forms paper source. The code used to print the example appears in Figure 30. Figure 30. Print Sample from an IPDS Application Program The following chart is an example of an IPDS application program that prints the block graphic characters, two bar codes, and text information shown in Table 9, printing on the front continuous forms paper source.
Table 9. IPDS Coding Example (continued) IPDS Command Hexadecimal Code Code Explanation — 01 Print All Data and Exit XOA(DBD) 0007 Control Length — D633 Execute Order Any Style — 00 Flag Byte — F200 Discard Buffer Data LPD 0030 Control Length — D6CF Load Page Descriptor — 00 Flag Byte — 00 Units Base Value equals (10 in.
Table 9. IPDS Coding Example (continued) IPDS Command Hexadecimal Code Code Explanation — D68F Execute Order Home State — 00 Flag Byte — 1700 Set Media Size (SMS) — 00 Units Base Value equals (10 in.
Table 9.
Table 9.
Table 9.
Table 9.
Table 9.
Appendix A. Code Pages The EBCDIC code charts page 231 contains information about the code pages that the 4247 Model X03/Z03 Printers use on the Ethernet IPDS attachments. See the “ASCII Code Pages” on page 277 for information about the code pages for Ethernet ASCII attachments. You can use the following charts to determine the actual character printed for any code page and font combination.
Code Page Character Set Name Page 1026 Latin-5 Turkey 263 1097 Farsi 264 1112 Baltic Multilingual 265 1122 Estonian 266 1140 USA/Canada + euro 267 1141 Austrian/German + euro 268 1142 Danish/Norwegian + euro 269 1143 Finnish/Swedish + euro 270 1144 Italian + euro 271 1145 Spanish/Spanish Speaking + euro 272 1146 English/UK + euro 273 1147 French + euro 274 1148 International 5/Belgian New + euro 275 1149 Icelandic + euro 276 232 Programmer Manual
USA/Canada/Canadian Bilingual Appendix A.
Canadian French 234 Programmer Manual
Austrian/German Appendix A.
Belgian Old 236 Programmer Manual
Brazilian Appendix A.
Danish/Norwegian 238 Programmer Manual
Finnish/Swedish Appendix A.
Italian 240 Programmer Manual
Japanese English Appendix A.
Portuguese 242 Programmer Manual
Spanish/Spanish Speaking Appendix A.
English (UK)/Ireland 244 Programmer Manual
Japanese Katakana Appendix A.
French/French Azerty 246 Programmer Manual
Arabic Appendix A.
Greek (Old) 248 Programmer Manual
Hebrew Bulletin Appendix A.
International 5/Swiss/Belgian 250 Programmer Manual
Greek/Latin (ISO 8859-7) + euro Appendix A.
Korean 252 Programmer Manual
Thai Appendix A.
Latin 2/ROECE 254 Programmer Manual
Icelandic Appendix A.
Greek New + euro 256 Programmer Manual
Cyrillic Appendix A.
Yugoslav (Old) 258 Programmer Manual
OCR-A Appendix A.
OCR-B 260 Programmer Manual
Latin 9 (ISO 8859) + euro Appendix A.
Cyrillic Multilingual 262 Programmer Manual
Latin-5 Turkey Appendix A.
Farsi 264 Programmer Manual
Baltic Multilingual Appendix A.
Estonian 266 Programmer Manual
USA/Canada + euro Appendix A.
Austrian/German + euro 268 Programmer Manual
Danish/Norwegian + euro Appendix A.
Finnish/Swedish + euro 270 Programmer Manual
Italian + euro Appendix A.
Spanish/Spanish Speaking + euro 272 Programmer Manual
English/UK + euro Appendix A.
French + euro 274 Programmer Manual
International 5/Belgian New + euro Appendix A.
Icelandic + euro 276 Programmer Manual
ASCII Code Pages The table below lists the ASCII code pages used by the 4247 Printer, and also provides page references so you can determine what code page contains the characters you want to use.
Code Page Character Set Name Page 1117 Latvian (Personal Computer) 314 1118 Lithuanian (Personal Computer) 315 1250 Central Europe Latin 2 316 1251 Cyrillic Windows + euro 317 Extended Graphics Character Table 318 Italic Character Table 319 Epson Extended Character Variables 320 USA (Personal Computer) A-54 278 Programmer Manual
Greek (MS DOS) Appendix A.
Greek/Latin (ISO 8859-7) 280 Programmer Manual
Latin 1 (ISO 8859-1) Appendix A.
PC Multilingual 282 Programmer Manual
Old Greek Appendix A.
Latin 2/ROECE 284 Programmer Manual
Latin 3 (PC) Appendix A.
Cyrillic (PC) 286 Programmer Manual
Latin 5-Turkey + euro Appendix A.
PC Multilingual + euro 288 Programmer Manual
Portuguese Appendix A.
Icelandic 290 Programmer Manual
Hebrew Appendix A.
Canadian French 292 Programmer Manual
Arabic Appendix A.
Danish/Norwegian 294 Programmer Manual
PC Data, Cyrillic, Russian Appendix A.
Greek New + euro 296 Programmer Manual
Thai Appendix A.
OCR-A 298 Programmer Manual
OCR-B Appendix A.
Latin 2 (ISO 8859-2) 300 Programmer Manual
Latin 3 (ISO 8859-3) Appendix A.
Latin 4 (ISO 8859-4) 302 Programmer Manual
Cyrillic (ISO 8859-5) Appendix A.
Latin 8 (ISO 8859-8) 304 Programmer Manual
Latin 5 (ISO 8859-9) Appendix A.
Baltic Multilingual 306 Programmer Manual
Estonian Appendix A.
Latin 9 (ISO 8859-15) + euro 308 Programmer Manual
Urdu Appendix A.
Arabic Extended 310 Programmer Manual
Latin 6 (ISO 8859-6) Appendix A.
Farsi (Personal Computer) 312 Programmer Manual
Estonian (Personal Computer) Appendix A.
Latvian (Personal Computer) 314 Programmer Manual
Lithuanian (Personal Computer) Appendix A.
Central Europe Latin 2 316 Programmer Manual
Cyrillic Windows + euro Appendix A.
Epson FX-series Code Pages The following Epson code charts provide information on the character tables available for Epson FX-series emulation mode. Extended Graphics Character Table Table 10.
Italic Character Table Appendix A.
Epson Extended Character Variables The following table shows characters that vary, by language, from the Epson Extended Character Graphics set. The code points shown are the only ones that vary. For example, in the United Kingdom, only code point X'23' is different from the basic Epson table, shown on page 304.
Appendix B. Application Paper Source Selection Application-controlled paper-source selection This section describes the identifiers to use in selecting the various available paper sources on the 4247 printer for key IPDS applications. These selections will cause the appropriate forms path selection commands to be sent to the printer from the host applications.
Rear CF: FORMFEED (*CONT2) In this case, the AS/400® is aware that the Rear Continuous Forms is in fact a continuous form feed. Therefore a drawer parameter is not required and the Forms Alignment message can be issued. 2. When you are switching from one continuous forms path to the other, printed output must be manually torn off and removed from the printer before the first forms path can be parked.
Appendix C. 4247 Bar Code and OCR Printing Options This appendix contains information about the options that are available for printing bar codes and Optical Character Recognition (OCR) characters. The bar code charts detail the element (bar/space) width options, the wide-to-narrow element ratios, the magnification percentages, and the characters printed per inch plus whether the bar codes can be printed in low-contrast or high-contrast modes.
Table 11. Bar Code Printing Options for Non-UPC Family Bar Codes (continued) Narrow Element Width Options (mils) Wide-to-Narrow Element Ratio Low-Contrast Mode Horzontal Low-Contrast Mode - Vertical Bar Code Char. Per Inch (CPI) Industrial 2 of 5 13.9 13.9 13.9 16.7 16.7 16.7 20.8 20.8 20.8 27.8 27.8 27.8 2:1 2.5:1 3:1 2:1 2.5:1 3:1 2:1 2.5:1 3:1 2:1 2.5:1 3:1 Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No No Yes Yes Yes Yes Yes Yes 6.0 5.54 5.14 7.2 6.65 6.17 4.0 3.6 3.43 3.
Table 11. Bar Code Printing Options for Non-UPC Family Bar Codes (continued) Bar Code Type POSTNET Narrow Element Width Options (mils) Wide-to-Narrow Element Ratio Low-Contrast Mode Horzontal Low-Contrast Mode - Vertical Bar Code Char. Per Inch (CPI) 21.2 N/A Yes Yes 4.3 Note: The CPI shown for Code 128 is for code sets A or B. The CPI for code set C is approximately double the values shown. Table 12.
OCR Scanning We have tested the following OCR symbol subsets for readability: Table 13.
Appendix D. Configuration Menu Lockout Configuration Menu Lockout should be used by the application programmer or printer operator to lock the Configuration Menu when you want to prevent a casual operator from changing parameter values that have been set for print jobs. To set Configuration Menu Lockout: 1. Press STOP if the READY indicator is on. The printer goes to the NOT READY state. 2. In the NOT READY state, press and hold TEST, then press START. Release both keys.
328 Programmer Manual
Appendix E. Interfaces This section provides technical information for the parallel and serial interfaces. The Parallel Interface The parallel interface of this printer fully supports the Centronics protocol plus the specific features requested by the EPSON and IBM printer connection in monodirectional mode and the Compatibility and Nibbles modes in bidirectional mode, plus the negotiation phases and the device identifier (as IEEE P1284).
This phase is initiated by the host and returns the interface to the compatibility mode. Parallel Interface Signals Description of the signals in monodirectional link: Signal Name Pin N° Source STROBE 1 HOST Clock signal which controls data transmission with its falling edge. ACK 10 PRINTER Negative pulsed signal indicating that the printer has received data and is ready to accept the next set of data.
The pins 1 to 14 of the printer are connected to the pins with the same number of the parallel port of the host. The pins 19 to 30 of the printer are connected to the pins 18 to 25 of the parallel port of the host. The pins 31, 32 and 36 of the printer are connected respectively to the pins 16, 15 and 17 of the parallel port of the host. 1284 Mode signal names are shown with their Compatibility mode (Centronics) names in parenthesis ( ) for the bidirectional link.
AD1 ... AD8 (Data 1 ... Data 8) Negotiation Phase: Extendibility request value. Reverse Data Transfer Phase: Nibble Mode: NOT USED. Byte Mode: Reverse channel data. PrtClk (nAck) Compatibility Mode: Pulsed low by the printer to acknowledge the transfer of a data from the host. Negotiation Phase: Set low to acknowledge 1284 support, then set high to indicate that the Xflag (Select) and data available flags may be read.
Xflag (Select) Reverse Data Transfer Phase: Reverse Idle phase: Nibble Mode: Set low to indicate that host can receive printer-to-host data then set high to acknowledge receipts of that nibble. Byte Mode: Same as Nibble Mode to request and acknowledge bytes. Following a reverse channel transfer the interface transitions to idle phase when HostBusy (nAutoFd) is set low and printer‘s no data available. Set high in response to PtrClk (nAck) low pulse to re-enter reverse data transfer phase.
Interface Timing Timing and Handshaking depend upon the connection mode. DATA /STROBE /ACK BUSY Figure 31. Mode Centronics Our Centronics mode supports the BUSY-WHILE-STROBE busy signal timing and ACK-INBUSY as BUSY-ACK relationship. Legend Time interval A Data Setup Time 1.0 B Strobe pulse width 1.0 C Data hold time 1.0 t Busy while Strobe 0.25 1.0 a Ack in Busy 0 2.5 334 Programmer Manual Min. Max.
Mode IEEE 1284 Figure 32. Mode IEEE 1284 The Serial Interface This printer provides the RS-232/C serial interfaces. The interface mode is selected via menu. v Transmission Type Data is sent and received in start/stop (asynchronous) transmission. v Character Format Each character is transmitted in the following format: 1 START BIT + 8 DATA BITS + 1 PARITY BIT + 1 STOP BIT The least significant bit of the data bits is sent first after the start bit. The number of data bits is selected via menu.
Serial Interface Signals The following table lists the RS-232/C serial interface signals: Pin Number Local Connect. Source Remote Connect. Source SIGNAL GROUND 5 – – TXD 3 Printer Printer RXD 2 Host Data Set RTS 7 Printer Printer Request to Send Signal (an output from printer). Active HIGH level signal. It is HIGH until the printer is powered off, then an indeterminate state is present .
Appendix F. Network Interface Technical Reference 4247 Network Configuration Parameters IP Address Assignment Fixed: Assigns the static or fixed IP address. DHCP: Assigns the dynamic IP address (DHCP protocol). Default value is Fixed. Fixed and DHCP assignments of IP addresses are supported. On most networks, you will want to assign a permanent IP address and disable DHCP. IP Address These values set the IP Address.
SMTP Service SMTP (Simple Mail Transfer Protocol) allows a mail server address to be entered into the printer configuration to send automated e-mail notifications with printer alert conditions. Disabled: Disables the SMTP (Simple Mail Transfer Protocol) service, that is disables the reception/transfer/error service of the e-mail. Enabled: Enables the SMTP service, that is it enables the reception/transfer/error service of the e-mail. Default is Disabled. Below is a list of SMTP display error messages: 1.
Managing a Single Printer Configuration Using the 4247 Internal Webpage Configuration Password The 4247's configuration settings can be protected by a password to keep unauthorized users from making changes. When you try to submit any 4247 configuration change, you will be asked for your user name and password. At the prompt, enter the default user name = root and default password = root, unless you have setup another user name and password with root privileges.
WINS Yes DDNS Yes SYSTEM / OS IBM System i OS 400 ® Yes IBM pSeries AIX Yes Sun Solaris Yes Unix Yes Linux ® Yes Windows 95,98,2000,NT,XP, 2003 Server Yes NETBIOS over TCP Yes NETBEUI No Novell Netware No OS2 No MacIntosh / Apple EtherTalk No PRINTING METHODS Raw Port 9100 Yes LPD/LPR Port 515 Yes LPR print queue name Any name (PR1, d1PRN, etc.) can be used.
PSF VSE Yes PSF VM Yes NETWORK MANAGEMENT 4247 Remote Printer Management Utility Yes IBM NPM Yes (generic printer) HP JetAdmin Yes (generic printer) E-mail SMTP Yes Internal Web page Yes PRINTER STATUS AND ERROR REPORTING Ready Yes Not ready Yes Paper out Yes Paper jam Yes Cover open Yes Machine check (carriage fault, ribbon blocked...) Yes NETWORK CONFIGURATION PARAMETERS (see above) LINK LAYER Ethernet II Yes 802.2 Yes 802.
HTTP Yes PING Yes SNMP Yes MIB II (RFC 1514) Yes (see note) Host Resource MIB (RFC 1514) Yes Printer MIB (RFC1759) Yes 4247 Private MIB Yes Reverse Telnet No PROS No IPP No SLPv2 No HARDWARE RISC processor Yes Flash memory 4MB RAM 16MB Attachment connector type RJ-45 Network traffic led Yes (green) Network speed led Yes (yellow) FIRMWARE UPGRADE Firmware upgrade over network Yes Firmware upgrade through parallel interface Yes Note: All relevant parts of MIB-II (RFC1231)
19934440, Recommended SNMP Port Number Values for *LAN 3812 SNMP Device Descriptions This document contains a list of recommended SNMP Port Number Values for *LAN 3812 SNMP printer device descriptions, depending on the type of network interface or print server being used with your printer.
The following documents and many others can be found by selecting the “Technical databases” link at the System i Technical Support area of the IBM website. Configuring a *LAN IPDS Device Description This document contains information on configuring *LAN IPDS device descriptions for LAN attached IPDS printers. Support for *LAN IPDS device descriptions is available in the base code for R410 OS/400 and above, as well as R370 OS/400 (which is no longer supported).
Appendix G. LAN Interface MIB Support Table 14. SYSTEM GROUP - RFC 1213 OBJECT ID MIB TYPE sysDescr.0 1.2.6.1.2.1.1.1.0 (octet string) sysObjectID.0 1.2.6.1.2.1.1.2.0 (object identifier) sysUpTime.0 1.2.6.1.2.1.1.3.0 (timeticks) sysContact.0 1.2.6.1.2.1.1.4.0 (octet string) sysName.0 1.2.6.1.2.1.1.5.0 (octet string) sysLocation.0 1.2.6.1.2.1.1.6.0 (octet string) sysServices.0 1.2.6.1.2.1.1.7.0 (integer) OBJECT ID MIB TYPE ifNumber.0 1.3.6.1.2.1.2.1.0 (integer) ifIndex.1 1.3.6.
Table 16. ADDRESS GROUP - RFC 1213 (continued) OBJECT ID MIB TYPE IpAdEntNetMask.1 1.3.6.1.2.1.4.20.1.1.3 (ipaddress) IpAdEntBcastAddr.1 1.3.6.1.2.1.4.20.1.1.4 (integer) IpAdEntReasmMaxSize.1 1.3.6.1.2.1.4.20.1.1.5 (integer) OBJECT ID MIB TYPE hrSystemUptime.0 1.3.6.1.3.1.25.1.1.0 (timeticks) hrStorageIndex.1 1.3.6.1.3.1.25.2.3.1.1.1 (integer) hrStorageIndex.2 1.3.6.1.3.1.25.2.3.1.1.2 (integer) hrStorageIndex.3 1.3.6.1.3.1.25.2.3.1.1.3 (integer) hrStorageIndex.4 1.3.6.1.3.1.25.2.
Table 17. HOST RESOURCES - RFC 1213 (continued) OBJECT ID MIB TYPE hrDeviceDescr.2 1.3.6.1.3.1.25.3.2.1.3.2 (octet string) hrDeviceID.1 1.3.6.1.3.1.25.3.2.1.4.1 (object identifier) hrDeviceID.2 1.3.6.1.3.1.25.3.2.1.4.2 (object identifier) hrDeviceStatus.1 1.3.6.1.3.1.25.3.2.1.5.1 (integer) hrDeviceStatus.2 1.3.6.1.3.1.25.3.2.1.5.2 (integer) hrDeviceErrors.1 1.3.6.1.3.1.25.3.2.1.6.1 (counter) hrDeviceErrors.2 1.3.6.1.3.1.25.3.2.1.6.2 (counter) hrPrinterStatus.1 1.3.6.1.3.1.25.3.5.1.
Table 18. PRINTER - RFC 1759 (continued) OBJECT ID MIB TYPE prtLocalizationCountry.1.3 1.3.6.1.2.1.43.7.1.1.3.1.3 (octet string) prtLocalizationCountry.1.4 1.3.6.1.2.1.43.7.1.1.3.1.4 (octet string) prtLocalizationCountry.1.5 1.3.6.1.2.1.43.7.1.1.3.1.5 (octet string) prtLocalizationCountry.1.6 1.3.6.1.2.1.43.7.1.1.3.1.6 (octet string) prtLocalizationCountry.1.7 1.3.6.1.2.1.43.7.1.1.3.1.7 (octet string) prtLocalizationCountry.1.8 1.3.6.1.2.1.43.7.1.1.3.1.
Table 18. PRINTER - RFC 1759 (continued) OBJECT ID MIB TYPE prtInputMediaName.1.1 1.3.6.1.2.1.43.8.2.1.12.1.1 (octet string) prtInputMediaName.1.2 1.3.6.1.2.1.43.8.2.1.12.1.2 (octet string) prtInputName.1.1 1.3.6.1.2.1.43.8.2.1.13.1.1 (octet string) prtInputName.1.2 1.3.6.1.2.1.43.8.2.1.13.1.2 (octet string) prtInputVendorName.1.1 1.3.6.1.2.1.43.8.2.1.14.1.1 (octet string) prtInputVendorName.1.2 1.3.6.1.2.1.43.8.2.1.14.1.2 (octet string) prtInputModel.1.1 1.3.6.1.2.1.43.8.2.1.15.1.
Table 18. PRINTER - RFC 1759 (continued) OBJECT ID MIB TYPE prtMediaPathMaxSpeed.1.2 1.3.6.1.2.1.43.13.4.1.4.1.2 (integer) prtMediaPathMaxMediaFeedDir.1.1 1.3.6.1.2.1.43.13.4.1.5.1.1 (integer) prtMediaPathMaxMediaFeedDir.1.2 1.3.6.1.2.1.43.13.4.1.5.1.2 (integer) prtMediaPathMaxMediaXFeedDir.1.1 1.3.6.1.2.1.43.13.4.1.6.1.1 (integer) prtMediaPathMaxMediaXFeedDir.1.2 1.3.6.1.2.1.43.13.4.1.6.1.2 (integer) prtMediaPathMinMediaFeedDir.1.1 1.3.6.1.2.1.43.13.4.1.7.1.
Table 18. PRINTER - RFC 1759 (continued) OBJECT ID MIB TYPE prtInterpreterLangVersion.1.3 1.3.6.1.2.1.43.15.1.1.4.1.3 (octet string) prtInterpreterLangVersion.1.4 1.3.6.1.2.1.43.15.1.1.4.1.4 (octet string) prtInterpreterLangVersion.1.1 1.3.6.1.2.1.43.15.1.1.5.1.1 (octet string) prtInterpreterLangVersion.1.2 1.3.6.1.2.1.43.15.1.1.5.1.2 (octet string) prtInterpreterLangVersion.1.3 1.3.6.1.2.1.43.15.1.1.5.1.3 (octet string) prtInterpreterDescription.1.4 1.3.6.1.2.1.43.15.1.1.5.1.
Table 18. PRINTER - RFC 1759 (continued) OBJECT ID MIB TYPE prtConsoleOnTime.1.5 1.3.6.1.2.1.43.17.6.1.2.1.5 (integer) prtConsoleOnTime.1.6 1.3.6.1.2.1.43.17.6.1.2.1.6 (integer) prtConsoleOffTime.1.1 1.3.6.1.2.1.43.17.6.1.3.1.1 (integer) prtConsoleOffTime.1.2 1.3.6.1.2.1.43.17.6.1.3.1.2 (integer) prtConsoleOffTime.1.3 1.3.6.1.2.1.43.17.6.1.3.1.3 (integer) prtConsoleOffTime.1.4 1.3.6.1.2.1.43.17.6.1.3.1.4 (integer) prtConsoleOffTime.1.5 1.3.6.1.2.1.43.17.6.1.3.1.
prtAlertTable This MIB can assume the following values: 3 (untrained) in paper jam or cover open condition. 1 (other) in all other conditions prtAlertGroup.1.1 read only INTEGER 1.3.6.1.2.1.43.18.1.1.4.1.1 This MIB can assume the following values: 6 (cover) in cover open condition. 9 (output) in ribbon jam condition. 13 (mediapath) in paper jam condition. 5 (generalPrinter) in all other conditions. prtAlertGroupIndex.1.1 read only 1.3.6.1.2.1.43.18.1.1.5.1.
354 Programmer Manual
Appendix H. The Remote Printer Management Utility The Remote Printer Management Utility is a software tool for network administrators that allows the configuration and control of printers remotely connected to the Ethernet LAN. With this tool the installed printers may be controlled, configured and organized easily. The main features are: Device Discovery Searches for the devices within a range of IP addresses.
356 Programmer Manual
Notices Thanks for choosing the 4247 printer. Your printer is a reliable working equipment that will be very useful in your daily job. Our printers have been designed to be compact and respectful of the work environment. They offer a wide range of features and multiple functions that confirm the high technological level reached by the printers with Compuprint brand.
European Union (EU) Conformity Statement Compuprint srl declares that this product is in compliance with the essential requirements and other relevant provisions of Directive 2006/95/EC, 2004/108/EC. Per the applicable requirements of EU directive 98/37/EC (“machines”) sound pressure of the above product (measured according to EN27779) does not exceed 70dBA. This product has been tested and found to comply with the limits for Class A Information Technology Equipment according to European standard EN 55022.
MAN10299.00.00 Printed in Italy MAN10299.00.