The text of a manual · part 12 of 17
UBI EasyCoder 91 Instruction Book: PROGRAMMING, pages 92 to 101
Pages 92 to 101 of 142, from UBI EasyCoder 91 Instruction Book
The original document is the PDF (1.8 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 UBI EasyCoder 91
Page 92
UBI EasyCoder 91 – Programming M COMMAND – MEMORY ALLOCATION, cont'd. Remarks, cont'd.
When is it necessary to reconfigure memory in the printer? • If your label size is larger then the current image buffer. • If you need to change the size of the forms memory to accommodate more or less forms. • If you need to change the size of the graphics memory to accommodate more or less graphics. • If you have replaced the EPROM • If you have fitted an unformatted memory cartridge. Image Buffer The image buffer is the area where the active print image is temporarily stored. Calculate the memory size needed for your image area by measuring the largest form intended to be printed (take future needs into consideration). For less than full width labels, also refer to the q command, which allows trading off print width for increased label length with the same image buffer size. Formulas: [(Height in mm x Dots per mm) x (Width in mm x Dots per mm)]/ (1024 x 8) = Kbytes required or [(Height in inches x Dots per inch) x (Width in inches x Dots per inch)]/ (1024 x 8) = Kbytes required The printhead has a density of 8 dots per mm or 203.2 dots per inch.
Rule of thumb for full width labels: Label height in inches × 22Kb (Min. 44Kb) Label height in mm × 1Kb (Min. 44Kb) Round off to the next higher whole number. Form Memory The Form memory is for permanent storage of label forms. A typical form requires 1 kbyte of memory. The size of each form can, for example, be displayed with a DIR command at the DOS prompt. Graphics Memory The Graphics memory is for permanent storage of label graphics. Graphic files can vary greatly in size. The size of each PCX file can, for example, be displayed with a DIR command at the DOS prompt. Examples
Resetting the memory via the serial port: M104,5,5 ↵ :Sets the memory to the default value 106,5.1.5,3 1
Continued! 92
Page 93
UBI EasyCoder 91 – Programming M COMMAND – MEMORY ALLOCATION, cont'd. Examples, cont'd.
1
/. The default settings above format memory for a 127 mm (5)" long full width label. Also note that the memory allocation values returned e.g. by a U command may differ slightly from the values entered using an M command because of certain round off calculations in the firmware. This should have few practical consequences and can generally be ignored. 2
/. The example assumes that MS Windows 3.1x is installed in drive C:\ and that the printer is connected to LPT1:
Resetting the memory via the parallel port (Windows driver): When installing a memory cartridge, or when you need to print extra long labels (see below), you may want to change the memory allocation without having to set up a serial communication. Using the MS-DOS Prompt in Windows 3.1x, you can send the necessary M command via the parallel port as follows: In a text editor, e.g. Windows Notepad, write the desired M command, e.g.: M118,20,106 ↵ Save the text file in the directory c:\windows\ under a suitable name (e.g. memsetup.txt). In the Main group of Windows 3.1x Program Manager, double-click the MS-DOS Prompt icon. In MS-DOS, the directory c:\windows\ is selected by default: C:\WINDOWS>_ Enter the following DOS command: C:\WINDOWS>copy memsetup.txt lpt1: ↵ MS-DOS responds by displaying: 1 file(s) copied C\:WINDOWS> Exit MS-DOS by typing: C\:WINDOWS> exit ↵ Maximizing the Image Buffer: When using the Windows printer driver, or the Direct Mode only, you have no need for any form or soft font (E) memory. In the Windows printer driver, you do not need any graphics memory at all, and possibly you can also dispense with graphics in the Direct Mode. Thus, to be able to print as long labels as possible, you can allocate most of or the entire RAM memory to the image buffer: M117,0,0 ↵ :Sets max. image buffer for printer w/o memory cartridge M245,0,0 ↵ :Sets max. image buffer for printer w. 128 Kbyte cartridge M501,0,0 ↵ :Sets max. image buffer for printer w. 384 Kbyte cartridge This table illustrates the connection between the M command, the memory allocated to the print buffer and the maximum print length at full print width in the Direct Mode: Command
Image Buffer Size
Maximum Print Length
M117,0,0 ↵ M245,0,0 ↵ M501,0,0 ↵
119 Kbyte 250 Kbyte 513 Kbyte
1150 dots = 143.75 mm (5.65") 2400 dots = 300.00 mm (11.81") 4930 dots = 616.25 mm (24.26")
93
Page 94
UBI EasyCoder 91 – Programming N COMMAND – CLEAR IMAGE BUFFER Description
This command is used to clear the image buffer before building a new image.
Syntax
N
Remarks
The N command is essential when printing labels in the Direct Mode. It is not necessary to use an N command before printing a form. An N command must not be used inside a form in the Form Edit Mode.
Example
N ↵
:Clears image buffer
94
Page 95
UBI EasyCoder 91 – Programming O COMMAND – OPTIONS SELECT Description
This command is used to disable or enable various printer options.
Syntax
O[S,N,D]
Parameters
S N D
Reverse operation of label gap sensor, so the sensor will interpret blockage of light as a gap Disable label-taken sensor (LTS) Disable the ribbon end sensor
Remarks
An O command without any trailing parameter resets operation of label gap sensor to normal, enables label-taken sensor, and enables the ribbon end sensor (thermal transfer models only). This is the default settings. An O command supplemented by one, two, or three trailing parameters (S, N and/or D) changes the settings for the parameters included in the command. S Parameter: Before using the S parameter, make sure to load the printer with the appropriate type of paper. N Parameter: EasyCoder 91 Peel-off models are fitted with a label taken sensor. When the label taken sensor is enabled (default), the communication to the printer will be BUSY as long as the sensor detects a label in the outfeed slot. D parameter: The ribbon end sensor detects reflections from the trailing silvery part of the transfer ribbon. Once the ribbon has been removed, the error is cleared and you can either load a new supply of transfer ribbon, or change to direct thermal paper. However, switching between thermal transfer printing and direct thermal printing requires the heat density to be adjusted using a D command, see page 73.
Examples
O ↵ ON ↵ ON,D ↵ OS,N,D ↵
:All options set to default :Normal label gap sensor operation :LTS disabled :Ribbon end sensor enabled :Normal label gap sensor operation :LTS disabled :Ribbon end sensor disabled :Reverse label gap sensor operation :LTS disabled :Ribbon end sensor disabled
95
Page 96
UBI EasyCoder 91 – Programming P COMMAND – PRINT Description
This command is used to print the contents of the image buffer.
Syntax
Pp1[,p2]
Parameters p1 p2
Remarks
Important! The P command cannot be used inside a stored form sequence. For automatic printing of stored forms, use the PA command.
Examples
P ↵ P1 ↵ P2,1 ↵ P5,2 ↵
Numbers of label sets (1–65535). Default 0. Number of copies of each label (1–65535). Used in combination with counters to print multiple copies of the same label.
:Prints one label set :Prints one label set :Prints two label sets of one label each :Prints five label sets of two labels each
The principles for how counters are printed is illustrated by this example, where the print command is P3,2:
Counter: 1
Label No. 1
Counter: 1
Label No. 2
Counter: 2
Label No. 3
Counter: 2
Label No. 4
Counter: 3
Label No. 5
Counter: 3
Label No. 6
96
Page 97
UBI EasyCoder 91 – Programming PA COMMAND – PRINT AUTOMATIC Description
This command is used in a stored form sequence to automatically print the form as soon as all variable data has been supplied.
Syntax
PAp1[,p2]
Parameters p1 p2
Remarks
Refer to the P command for explanations on how to print multiple labels with counters. The PA command follows the same principles. Warning! The PA command can only be used with forms containing at least one variable (see V command). If there is no variable in the form, the printer will enter a loop and print continuously!
Examples
FK"TEST6" ↵ FS"TEST6" ↵ V00,50,N,"Enter text" ↵ A24,24,0,4,1,1,N,V00 ↵ PA1 ↵ FE ↵
Numbers of label sets (1–65535). Default 0. Number of copies of each label (1–65535). Used in combination with counters to print multiple copies of the same label.
FR"TEST6" ↵ ? ↵ This is variable text
:Deletes form “1” :Starts form store sequence :Defines variable :Writes line of text incl variable :Prints 1 label automatically :Ends form store sequence :Retrieves form “1” :Gets variables :Data for variable 00
97
Page 98
UBI EasyCoder 91 – Programming Q COMMAND – SET FORM LENGTH (LSS) Description
This command is used to set the form and gap length when using the standard label stop sensor (LSS).
Syntax
Qp1,p2[±p3]
Parameters p1 p2 ±p3
Remarks
As standard, all EasyCoder 91 printers have a label stop sensor designed to detect the top of each label or tag. It does this in two ways: • By looking through the semi-transparent backing paper in the gap between labels, or • By looking through a hole in the tag. The LSS is located in the centre of the label path. When entering the Test Mode (see page 32), or when printing a form for the first time after power-up using the Windows Driver (see page 22), the printer automatically determines the Q value while feeding a couple of labels. The current Q value is printed on the test label and the label produced by a U command.
Examples
Rectangular label: p1 = 20.0 mm (160 dots) p2 = 3.0 mm (24 dots)
Label length measured in dots Gap length measured in dots Optional offset length measured in dots p
2 p1
The Q command would be: Q160,24 ↵
Continued! 98
Page 99
UBI EasyCoder 91 – Programming Q COMMAND – SET FORM LENGTH (LSS), cont'd. Examples, cont'd.
Butterfly label: p1 = 12.5 mm (100 dots) p2 = 3.0 mm (24 dots) p3 = 3.0 mm (24 dots)
p1 p
2 p3
PRINT DIRECTION
The Q command would be: Q100,24+24 ↵
99
Page 100
UBI EasyCoder 91 – Programming Q COMMAND – SET FORM LENGTH (Black Mark) Description
This command is used switch from label stop sensor (LSS) to the optional black mark sensor (BMS), and to specify the location and height of the black marks on the back of the paper.
Syntax
Qp1Bp2[±p3]
Parameters p1 B p2 ±p3
Remarks
As standard, all EasyCoder 91 printers have a label stop sensor designed to detect the top of each label or tag. It can be supplemented with an optional black mark sensor (factory installed option only) that determines the top of each label or tag by sensing a preprinted black mark on the back of the paper. The black marks should be centre-aligned on the paper and have the following dimensions: Maximum height .............. : 15 mm (0.59") Minimum height ............... : 3 mm (0.12") Recommended height ....... : 5 mm (0.20") Recommended width ........ : ≥ 10 mm (0.39")
Examples
Example of a tag, where the black marks are printed on the perforation: p1 = 31.0 mm (248 dots) p2= 7.0 mm (56 dots) p3= 0.5 mm (4 dots)
Distance between black marks measured in dots Disables LSS, enables BMS Height of black mark measured in dots Optional offset length measured in dots
Perforation p1 p2 p3
The Q command would be: Q248,B56+4 ↵ Continued! 100
Page 101
UBI EasyCoder 91 – Programming Q COMMAND – SET FORM LENGTH (Black Mark), cont'd. Examples, cont'd.
Example of a tag, where the black marks are printed between the perforations: p1 = 31.0 mm (248 dots) p2= 7.0 mm (56 dots) p3= 17 mm (136 dots)
Perforation p1 p2 p3
The Q command would be: Q248,B56-136 ↵
101