The text of a manual · part 11 of 17
UBI EasyCoder 91 Instruction Book: PROGRAMMING, pages 82 to 91
Pages 82 to 91 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 82
UBI EasyCoder 91 – Programming GM COMMAND – STORE GRAPHICS Description
This command is used to store PCX graphics files in memory.
Syntax
GM"name"p1 ↵ "DATA"
Parameters
"name" p1 "DATA"
This is the graphic name that will be used when retrieving the stored graphic. The name may be from 1 to 8 characters. The printer is case sensitive, i.e. graphic names will be stored with the exact case entered on the GM command line. This is the size of the original .PCX file in bytes. In DOS, use the DIR command can be used to determine the exact file size. The graphic data in 1-bit (black & white) PCX format.
Remarks
In a DOS system, the "DATA" portion can be sent to the printer via the parallel port using the DOS COPY command.
Example
Let us assume you have a PCX file named UBI.PCX in your current directory. Use a text editor, e.g. Windows Notepad, to create a text file called e.g. STOREIT.TXT and store it in the same directory as the .PCX file: ↵ GM"UBI"3768 ↵ At the DOS prompt, type: COPY STOREIT.TXT + UBI.PCX PRN /b (This command stores the image in the default printer). or... COPY STOREIT.TXT + UBI.PCX LPT1: /b (This command stores the image in the printer connected to port LPT1). After downloading, the GI command can be used to verify that the graphic was successfully stored. If the downloading did not succeed, first check that the .PCX file is in 1-bit (black & white) format and that the free graphics memory in the printer is large enough to store the graphics. Important! Always make backup copies on the host! If you need to change the memory allocation (see M command), or if the RAM backup batteries should run out, all formats and graphics store in the printer and memory cartridge will be lost.
82
Page 83
UBI EasyCoder 91 – Programming I COMMAND – CHARACTER SET SELECTION Description
This command is used to select the proper character set.
Syntax
Ip1,p2,p3
Parameters p1 p2 p3
(I is uppercase i) Number of data bits (7 or 8) Printer Code Page (1 digit, see table 1 below) KDU Country Code (3 digits, see table 2 below). Only if p1 = 8
Table 1: Printer Code Page 8 data bits (p1=8) 7 data bits (p1=7) p2 Country p2 Code Page 0 USA 0 437 1 British 1 850 2 German 2 852 3 French 3 860 4 Danish 4 863 5 Italian 5 865 6 Spanish 7 Swedish 8 Swiss
Country English Multilingual (Latin 1) Slavic Portugal Canadian (French) Nordic
Table 2: KDU Country Code (8 bits only) Code Country Code Country Code 032 Belgium 031 Netherlands 034 002 Canada 039 Italy 046 045 Denmark 003 Latin America 041 358 Finland 047 Norway 044 033 France 351 Portugal 001 049 Germany 027 South Africa
Country Spain Sweden Switzerland U.K. U.S.A.
The default setting is I8,0,001. For additional information and code page examples, refer to Appendix 3. Example
I8,5,046 ↵
:Selects 8 bit character set for use in Sweden.
83
Page 84
UBI EasyCoder 91 – Programming JB COMMAND – DISABLE TOP OF FORM BACKUP Description
This command disables automatic top of form backup of the paper.
Syntax
JB
Remarks
Top of form backup is used in connection with the j command, which makes the printer feed out an extra amount of paper after printing the label, so as to allow the paper to be torn off or peeled off properly. By default, the paper is pulled back before printing the first label in next batch as to allow the printing to start at the top of the label, see JF command. The JB command will disable this function, i.e. any j command will be ignored, and the printer will stop feeding when the end of the label becomes aligned with the printhead's dot line. However, the j command is kept stored in memory and can be enabled again using a JF command.
Example
JB ↵
:Disables top of form backup
84
Page 85
UBI EasyCoder 91 – Programming JF COMMAND – ENABLE TOP OF FORM BACKUP Description
This command enables automatic top of form backup of the paper.
Syntax
JF
Remarks
Top of form backup is used in connection with the j command, which makes the printer feed out an extra amount of paper after printing the label, as to allow the paper to be torn off or peeled off properly. By default, top of form is enabled, i.e. the paper is pulled back before printing the first label in next batch as to allow the printing to start at the top of the label. Top of form backup can be disabled by a JB command, i.e. any j command will be ignored, and the printer will stop feeding when the end of the label becomes aligned with the printhead's dot line. However, the j command is kept stored in memory and can be enabled again using a JF command.
Example
JF ↵
:Enables top of form backup
85
Page 86
UBI EasyCoder 91 – Programming j COMMAND – PAPER FEED ADJUSTMENT Description
This command makes it possible to set the paper feed for either tear-off or peel-off operation.
Syntax jp1
Parameters p1
Remarks
When using peel-off operation, the labels should remain slightly stuck to the backing paper so they do not fall off by their own weight, still can be manually removed with ease. In the case of tear-off operation, the paper should be fed so the pre-perforation between tags or the gap between labels become aligned with the tear-off edge. The j command allows the paper feed to be adjusted accordingly, i.e. after the printer has been printed and the rear edge becomes aligned with the printhead's dot line, an extra amount of paper feed is performed. Warning! Do not use extremely small or large values for the j command, since they may cause the printer to feed or pull back the paper continuously. The extra paper feed set by the j command can be enabled or disabled by means of JF and JB “Top of Form Backup” commands respectively. By default “Top of Form Backup” is enabled.
Examples j110 ↵ j140 ↵
Length of paper feed after printing in dots (0–999) Recommended values: Tear-off operation: 140 Peel-off operation: 110
:Adjustment for peel-off operation :Adjustment for tear-off operation
86
Page 87
UBI EasyCoder 91 – Programming LE COMMAND – LINE DRAW EXCLUSIVE Description
This command is used to draw black lines where the line will be white when intersecting a black area or object and vice versa.
Syntax
LEp1,p2,p3,p4
Parameters p1 p2 p3 p4
Example
N ↵ LE50,200,400,20 ↵ LE200,50,20,400 ↵ P1 ↵
Horizontal start position (X) in dots Vertical start position (Y) in dots Horizontal length in dots Vertical length in dots :Clears image buffer :Draws line A :Draws line B :Prints one label
Line A
Line B
Intersection
87
Page 88
UBI EasyCoder 91 – Programming LO COMMAND – LINE DRAW BLACK Description
This command is used to draw black lines, overwriting previous information.
Syntax
LOp1,p2,p3,p4
Parameters p1 p2 p3 p4
Example
N ↵ LO50,200,400,20 ↵ LO200,50,20,400 ↵ P1 ↵
Horizontal start position (X) in dots Vertical start position (Y) in dots Horizontal length in dots Vertical length in dots :Clears image buffer :Draws line A :Draws line B :Prints one label
Line A
Line B
Intersection
88
Page 89
UBI EasyCoder 91 – Programming LS COMMAND – LINE DRAW DIAGONAL Description
This command is used to draw diagonal black lines overwriting previous information.
Syntax
LSp1,p2,p3,p4,p5
Parameters p1 p2 p3 p4 p5
Example
N ↵ LS10,10,20,200,200 ↵ P1 ↵
Horizontal start position (X) in dots Vertical start position (Y) in dots Line thickness in dots Horizontal end position (X) in dots Vertical end position (Y) in dots :Clears image buffer :Draws diagonal line :Prints one label
89
Page 90
UBI EasyCoder 91 – Programming LW COMMAND – LINE DRAW WHITE Description
This command is used to draw white lines, effectively erasing previous information.
Syntax
LWp1,p2,p3,p4
Parameters p1 p2 p3 p4
Example
N ↵ LO50,100,400,20 ↵ LO50,200,400,20 ↵ LO50,300,400,20 ↵ LW200,50,20,400 ↵ P1 ↵
Horizontal start position (X) in dots Vertical start position (Y) in dots Horizontal length in dots Vertical length in dots :Clears image buffer :Draws black line A :Draws black line B :Draws black line C :Draws white line D :Prints one label
Line A Line B Line C
Line D (dotted border not printed in reality)
90
Page 91
UBI EasyCoder 91 – Programming M COMMAND – MEMORY ALLOCATION Description
This command is used to allocate or partition the printer's memory into separate areas for image buffer, forms, graphics, and soft fonts (not used).
Syntax
Mp1,p2,p3
Parameters p1 p2 p3
Remarks
The command to allocate the memory may have to be performed to initialize the printer if the current memory areas are too small.
Image buffer area in whole Kbytes Form memory area in whole Kbytes Graphic memory area in whole Kbytes All remaining memory will be allocated as soft font memory.
IMPORTANT: The M command will also erase all forms and graphics and return printer default settings. The M command line will set image buffer, form and graphic memory area. The remainder will automatically be allocated to a Soft Fonts Memory, a feature presently not used in EasyCoder 91. As standard, the printer is fitted with 128 Kbytes RAM, which by default is allocated like this: • Image buffer: 106 Kbytes • Form memory: 5.1 Kbytes • Graphics memory: 5 Kbytes • Soft fonts memory: 3 Kbytes (also called E-memory) • The printer's firmware requires approx. 9 Kbytes.
1
/. Typical memory setup for a printer with a 128 Kbyte memory cartridge: M118,63,63 The proportions between form and graphics memory may be changed. e.g. M118,20,106
As an option, the EasyCoder 91 can be fitted with a memory cartridge containing an additional 128 kbytes or 384 kbytes of RAM. When memory is allocated, the printer's internal memory is used first. Thus, when using memory cartridges, allocate at least 118 kbytes to the image buffer to make sure that forms and graphics are stored in the removable memory cartridge1. The printer can detect if a memory cartridge if inserted or not: • If a cartridge is present, the printer will take the setup information from the cartridge. • If a cartridge is not present, then the printer will take the setup information from its internal RAM memory. • If a memory cartridge is removed, the printer will use its default setup, see page 49. Therefore, memory cartridges can be moved from printer to printer and function the same way in each one. The amount of memory and the current allocation can be printed on a label using the U command or by printing a test label in the Test Mode, see page 32. Continued! 91