The text of a manual · part 10 of 17
UBI EasyCoder 91 Instruction Book: PROGRAMMING, pages 72 to 81
Pages 72 to 81 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 72
UBI EasyCoder 91 – Programming C COMMAND – COUNTER, cont'd. Protecting Counters
When the optional Keyboard Display Unit (KDU) is used, the label form can be designed to “skip” a consecutive number prompt, thereby protecting the data. This feature is especially useful when the counter represents a serial number or other types of number, that should never be repeated. By placing one (1) minus sign as the first character of the prompt, the prompt will appear only once after the form is retrieved. Example: C0,10,L+1,"-Enter Serial Number:" ↵ By placing two (2) minus signs as the first two characters of the prompt, the prompt will never be displayed. Example: C0,10,L+1,"- -Enter Serial Number:" ↵ The protected consecutive number is accessed and modified from the optional Keyboard Display Unit only. Enter the following when the KDU is displaying: FORM - retrieve form F2 - list forms vx.x 1. If necessary, press <Exit> key to display above. 2. Press <F1> key. 3. Press 4 9 1 6. 4. Press <Form> key. 5. Key in Form name and press <Enter> to retrieve. 6. Enter or modify the consecutive number. 7. When complete, print label to store new number in memory.
72
Page 73
UBI EasyCoder 91 – Programming D COMMAND – DENSITY Description
This command is used to select the print density.
Syntax
Dp1
Parameters p1
Remarks
The density command is used to control the energy to the printhead. There are a number of factors that affect the actual darkness of the printout: • Direct thermal printing or thermal transfer printing • Print speed • Different brands of direct thermal paper • Different combination between transfer ribbons and receiving face materials The printed information may also require the density to be adjusted. Typically, this applies to horizontal (picket fence) and vertical (ladder) bar codes, but text and graphics may also require adjustment. Thus, we recommend the following settings to be used initially. Test after the print speed has been set (see S command) and make further adjustments until you have found the settings which apply to your unique application:
Density setting (0 – 15). Default value 7. 0 is the lightest printing and 15 is the darkest
Type of Printing
Example
Rec. Density at S= 2 (50 mm/sec)
Direct thermal printing: UBI Economy UBI Premium
9 9
Thermal transfer printing (Europe): GP91 ribbon UBI Vellum paper GP91 ribbon UBI Matte coated paper HP91 ribbon UBI Matte coated paper HP91 ribbon Semi gloss paper HR91 ribbon Synthetic gloss
4 4 7 6 8
Thermal transfer printing (USA): GP92 ribbon Bond paper GP92 ribbon Matte coated paper HP92 ribbon Matte coated paper HP92 ribbon Semi gloss paper HR91 ribbon Synthetic gloss
3 0 4 8 8
D9 ↵
:Selects density 9
73
Page 74
UBI EasyCoder 91 – Programming FE COMMAND – END FORM STORE Description
This command is used to end a Form Store sequence.
Syntax
FE
Remarks
The Form Store sequence is started with the FS command and ended with the FE command.
Example
FS"formname" ↵ ..... FE ↵
:Starts Form Store :Ends Form Store
74
Page 75
UBI EasyCoder 91 – Programming FI COMMAND – PRINT FORM INFORMATION Description
This command makes the printer produce a list of all forms stored in memory.
Syntax
FI
Remarks
The FI command will be executed directly, without appending any Linefeed. Hint: Issue a FI command after having stored a form to make sure the storing was successful and to check the amount of free form memory.
Example
FI
:Prints forms list
75
Page 76
UBI EasyCoder 91 – Programming FK COMMAND – DELETE FORM Description
This command is used to delete a specified form or all forms from memory.
Syntax
FK "name" | "*"
Parameters
"name" "*"
Examples
By entering a name of a form, that form only will be deleted from memory By entering an asterisk (*) as wildcard, all forms will be deleted from memory
FK"FORM1" ↵ FK "*" ↵
:Deletes “FORM1” :Deletes all forms
76
Page 77
UBI EasyCoder 91 – Programming FR COMMAND – RETRIEVE FORM Description
This command is used to retrieve a form that was previously stored in memory.
Syntax
FR"name"
Parameters
"name"
Remarks
To print a list of the forms currently stored in memory, use the FI command.
Example
FR"Test1" ↵
This is the form name used when the form was stored. The printer is case sensitive, i.e. the use of upper and lower case letters must match the original name.
:Retrieves the form named “Test1”
77
Page 78
UBI EasyCoder 91 – Programming FS COMMAND – FORM STORE Description
This command is used to begin a Form Store sequence.
Syntax
FS"name"
Parameters
"name"
Remarks
All commands following FS will be stored in the Forms memory until a FE command is received, ending the form store process. If a form with the same name is already stored in memory, the FS command will result in an error and the old form will be retained. When updating a form, use the FK command to delete the old version before storing the new version. To print a list of the forms currently stored in memory, use the FI command. Some commands are not allowed in the form store process. Refer to the list on page 48 to check which commands can be used. 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.
This is the form name that will be used when retrieving the stored form. The name may be from 1 to 8 characters. The printer is case sensitive, i.e. form names will be stored with the exact case entered on the FS command line.
Startup Form A special case of forms is the startup form, that is automatically retrieved and prompted for variables (if necessary) each time power is applied to the printer. A startup form is created by naming the form "AUTOFR". To exit the "AUTOFR" mode, send XOFF or NULL to the printer on the serial interface. Important! Always test the form using another name before making it a startup form. If a startup form causes an error, there are two ways of clearing it: • If the indicator lamp shines green, send XOFF or NULL to exit "AUTOFR" mode. Then delete the startup file using FK "AUTOFR" • If the indicator lamp shines orange, there is no communication and the RAM memory must be erased by removing the backup battery on the CPU board and possibly also in the optional Memory Cartridge. Example
FS"TEST1" ↵ ..... FE ↵
:Begins the form store sequence of “TEST1” :Ends the form store sequence of “TEST1”
78
Page 79
UBI EasyCoder 91 – Programming GG COMMAND – PRINT GRAPHICS Description
This command is used to print a graphic that has been previously stored in memory.
Syntax
GGp1,p2,"name"
Parameters p1 p2 "name"
Remarks
A graphic can only be printed in same direction and size as when it was saved. There are no means of magnification or rotation of an individual graphic. However, the entire print image including all text, bar codes, graphics, lines, and boxes can be rotated 180° using the Z command.
Example
GG50,50,"LOGO1" ↵
Horizontal start position (X) in dots Vertical start position (Y) in dots This is the name used when the graphic was stored. The name may be from 1 to 8 characters. The printer is case sensitive, i.e. the use of upper and lower case letters must match the original name.
:Prints the graphic “LOGO1”
79
Page 80
UBI EasyCoder 91 – Programming GI COMMAND – PRINT GRAPHICS INFORMATION Description
This command will cause the printer to print a list of all graphics stored in memory.
Syntax
GI
Remarks
The GI command will be executed directly, without appending any Linefeed. Hint: Issue a GI command after having stored a graphic to make sure the storing was successful and to check the amount of free graphic memory.
Example
GI
:Prints graphics list
80
Page 81
UBI EasyCoder 91 – Programming GK COMMAND – DELETE GRAPHICS Description
This command is used to delete a specified graphic or all graphics from memory.
Syntax
GK "name" | "*"
Parameters
"name" "*"
Examples
By entering a name of a form, that form only will be deleted from memory By entering an asterisk (*) as wildcard, all forms will be deleted from memory
GK"LOGO1" ↵ GK "*" ↵
:Deletes “LOGO1” :Deletes all graphics
81