The text of a manual · part 7 of 15
EasyCoder E4 Direct Protocol 2.01 Programmer's Guide: Chapter 5: Feeding and Printing Commands
Pages 41 to 45 of 113, from EasyCoder E4 Direct Protocol 2.01 Programmer's Guide
The original document is the PDF (2.3 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Intermec E4
Page 41
Chapter 5
Feeding and Printing Commands 1. Paper Feed
In order to provide maximum flexibility, there is a number of commands for controlling the paper feed: • CLEANFEED • FORMFEED • TESTFEED CLEANFEED <feed length in dots>
Runs the printer's paper feed mechanism in order to facilitate cleaning of the print roller. FORMFEED | FF [<feed length in dots>]
Feeds out a blank label or optionally feeds out (+) or pulls back (-) a certain amount of paper without printing. TESTFEED
Feeds out a number of blank labels while adjusting the label stop/ black mark sensor and measuring the label length. Max. label length is 24 cm (9.5"), else error 1010 “Hardware error” occurs. Does not work with var. length strip and fix length strip. In case of label lengths exceeding 24 cm (9.5"), the label length can be set manually using a SETUP string, see chapter 6.17. CUT
Makes the optional paper cutter perform a cutting cycle. The paper is fed past the printhead by a rubber-coated roller driven by a stepper motor. The firmware can control the stepper motor with an accuracy of one dot in either direction. The movement of the paper is detected by the label stop sensor (LSS) or black mark sensor (BMS), except when various types of paper strip are used. The printer's setup with regard to Detection, Media Size, Length and Media Type determines how the paper feed will work. There are five different types of Media Type options (also see the EasyCoder E4 Installation and Operation Manual): • Label (w gaps) • Ticket (w mark) • Ticket (w gaps) • Fix length strip • Var length strip 40
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
Page 42
Chapter 5
1. Paper Feed, cont'd.
Feeding & Printing Commands
When a FORMFEED, TESTFEED, or PRINTFEED command is executed, the photoelectrical label stop sensor (LSS) detects the forward edge of each new label or the forward edge of each detection gap, and the black mark sensor (BMS) detects the forward edge of each black mark, as the paper is fed past the sensor. By performing a TESTFEED operation after loading a new supply of paper, the software is able to measure the distance between, for example, the forward edges of two consecutive labels, thereby determining the label length, so that it can adjust the paper feed accordingly. The same principle applies to tickets or tags with detection gaps and to tickets with black marks. In the case of paper strip, the LSS will only detect an out-of-paper condition; the amount of paper feed is decided in two different ways: • Fixed length strip The amount of paper fed for each FORMFEED and PRINTFEED operation is decided by the Media Size: Length setup. • Variable length strip After executing a PRINTFEED, the printer will stop feeding as soon as printing stops. Note that a blank space character or “white” part of an image is also regarded as a printable object. The amount of paper fed by FORMFEED is decided by the Media Size: Length setup.
Recommended Adjustments: See the Installation & Operation manual of the EasyCoder E4 printer model in question.
The Detection setup allows you to perform two global adjustments to the paper feed described above: • Start Adjust • Stop Adjust By default, both these parameters are set to 0, which allows for proper tear-off operation when there is no requirement of printing immediately at the forward edge of the label (equivalent). • Start Adjust decides how much paper will be fed out or pulled back before the FORMFEED or PRINTFEED is executed. There is a small distance between the dispenser shaft or tear off edge and the printhead. Thus, if you want to start printing directly at the forward edge of the label, you must pull back the paper before printing by means of a negative start adjust value. • Stop Adjust decides how much more or less paper will be fed out after the FORMFEED or PRINTFEED is executed.
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
41
Page 43
Chapter 5 Feeding & Printing Commands
1. Paper Feed, cont'd.
If the FORMFEED command is issued without any specification of the feed length, a complete blank label (or the equivalent) will be fed out. By specifying a positive or negative value in the FORMFEED command, the global Start Adjust and Stop Adjust setup can be substituted or supplemented for individual layouts or labels. It is important whether the FORMFEED command is executed before or after the PRINTFEED command: • FORMFEED before PRINTFEED corresponds to Start Adjust. • FORMFEED after PRINTFEED corresponds to Stop Adjust. The relationship between paper and printhead when printing starts decides all positioning along the Y-axis, i.e. along the paper web.
2. Label Printing
Printing Commands When a PRINTFEED command is issued, the software processes all previously entered text fields, bar code fields, image fields, box fields and line fields into a bitmap pattern. The bitmap pattern controls the heating of the printhead dots as the paper is fed past them. Each PRINTFEED command produces one single copy or, optionally, a batch of labels, tickets, tags or pieces of strip. PRINTFEED | PF [<batch size>]
<batch size> Default:
specifies the number of copies to be printed. 1
The execution of a PRINTFEED command resets the following commands to their respective default values: ALIGN BARFONT BARFONTSIZE BARFONTSLANT BARFONT ON/OFF BARFONTD BARFONTDSIZE BARFONTDSLANT BARHEIGHT BARMAG BARRATIO BARSET BARTYPE DIR FONT FONTSIZE FONTSLANT FONTD FONTDSIZE FONTDSLANT INVIMAGE MAG PRPOS This reset only affects commands executed after PRINTFEED, not commands that have already been executed, which makes batch printing possible.
42
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
Page 44
Chapter 5
3. Batch Printing
Feeding & Printing Commands
General Information The term “Batch Printing” means the process of printing several labels. The labels may either be exact copies or different from each other. For batch printing, the most critical factor is the time required to process the print image into a bitmap and store it in the image buffer. The image buffer compensates for differences between processing time and printing time. If the bitmap is too large to be stored in its entirety in the image buffer, it will be divided into a number of segments across the paper feed direction which will be processed one after the other and downloaded to the image buffer. As the buffer is emptied by printing, a new segment can be processed and downloaded. When printing a batch of labels from a predefined layout, the layout is processed before each new copy is printed, in order to allow counter, date and time values to be updated. When a layout is not used, all copies will contain exactly the same information. When using batch printing, take the following into consideration: • Using command abbreviations, e.g. PF instead of PRINTFEED improves the performance. • The more processing a label requires, the slower it will be printed. • In case of small differences between labels, make use of CLL and FIELDNO commands (see below) and edit the layout so that variable data are processed last. • If you are printing scaled TrueType fonts and the printer is working very slowly, use the PRESCALE command to create bitmapped versions of the scaled fonts for quicker access (see chapter 9.3). • Switching verbosity off with SYSVAR(18) may improve printing speed (see chapter 6.13). If you have any problems, e.g. the printer stops between labels, lower the print speed, or make the print image easier to process. You can interrupt batch printing by issuing a break command as described in chapter 6.16.
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1
43
Page 45
Chapter 5 Feeding & Printing Commands
3. Batch Printing, cont'd.
Clearing the Image Buffer The image buffer stores the bitmap pattern of the label between processing and printing. The image buffer can be cleared partially or completely by means of a CLL command. CLL [<field>%]
<field> CLL CLL <field>% the same alphanumeric designator as in the corresponding FIELDNO command, followed by a mandatory % sign. clears the image buffer completely clears the image buffer from the corresponding FIELDNO command to the end of the label
Complete clearing is useful to avoid printing a faulty label after certain errors have occurred. Partial clearing is used in batch printing when only part of the label should be modified between the copies. In this case, the CLL statement must include a reference to a field, specified by a FIELDNO command. When a CLL command is issued, the image buffer will be cleared from the specified field to the end of the label. <field>% = FIELDNO
<field> the same alphanumeric designator as in the corresponding CLL command followed by a mandatory % sign.
Example: FT "Swiss 721 Bold BT" ↵ MAG 2,2 ↵ PP 100,300 ↵ PT "MONTH:" ↵ (kept in the image buffer for re-use) PP 100,200 ↵ A%=FIELDNO ↵ PT "JANUARY":PF ↵ (cleared from the buffer after printing) CLL A% ↵ PP 100,200 ↵ PT "FEBRUARY":PF ↵ (cleared from the buffer after printing) CLL A% ↵ PP 100,200 ↵ PT "MARCH":PF ↵ (cleared from the buffer after printing) CLL A% ↵
44
Intermec EasyCoder E4 Direct Protocol 2.01 – Programmer's Guide Ed. 1