The text of a manual · part 13 of 17
UBI EasyCoder 91 Instruction Book: PROGRAMMING, pages 102 to 111
Pages 102 to 111 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 102
UBI EasyCoder 91 – Programming q COMMAND – SET LABEL WIDTH Description
This command is used to set the label width when using less than full width labels.
Syntax qp1
Parameters p1
Remarks
The q command will cause the image buffer (see M command) to be formatted to match the label width, i.e. width is traded off for increased length within the same memory size. This allows printing long narrow labels with a minimum of memory. The q-value will automatically be rounded off to the closest multiple of 8, e.g. if q is entered as 500, the actual q-value will be 496 (62 × 8). The q command will also automatically set the margins according to the following rule:
Width of label measured in dots (default 832)
(832 – label width in dots)/2 (centre aligned) There are 8 dots per mm and 203.2 dots per inch.
Important! If an R command (Reference Point) is sent after a q command, the image buffer will be automatically reformatted to match the width of the printhead (832 dots) and the margins will be reset accordingly. Example q416 ↵
:Sets label width to 416 dots (52 mm/2.05")
102
Page 103
UBI EasyCoder 91 – Programming R COMMAND – SET REFERENCE POINT Description
This command is used to move the reference point for the X and Y axes. All horizontal and vertical measurements in other commands use the setting for R as the origin for measurements.
Syntax
Rp1,p2
Parameters p1 p2
Remarks
The reference point command is used to establish top and left margins to prevent printing off the edge of the label. A minimum margin of 1 mm should be used on all sides of the label. Warning! Repeated printing off the edge of the label can cause excessive printhead wear. Note that for narrow labels, the R command could be substituted by a q command, which has the benefit of making better use of a limited image buffer. However, the q command cannot affect the vertical margin. Any R command after a q command will revoke the latter. The print direction commands ZB and ZT affect the location of the reference point, as illustrated below:
Horizontal (left) margin measured in dots (default 000) Vertical (top) margin measured in dots (default 000)
Maximum Print Width Label path orientated in the centre
Printhead Dot Line (832 dots)
p1 p2 Reference Point Direction ZB Reference Point Direction ZT p p1
2
Feed Direction
Example
R50,100 ↵
:Creates a 50 dot left margin and a 100 dot top margin.
103
Page 104
UBI EasyCoder 91 – Programming S COMMAND – SPEED SELECT Description
This command is used to select the label speed while printing.
Syntax
Sp1
Parameters p1
Speed select value: 0 25 mm/sec. (1"/sec.) 1 37 mm/sec. (1.5"/sec.) 2 50 mm/sec. (2"/sec.)
(default)
Remarks
Changing the print speed will affect the blackness of the printout, which may have to be adjusted by means of a D command.
Example
S0 ↵
:Sets the print speed to 25 mm/sec (1"/sec.).
104
Page 105
UBI EasyCoder 91 – Programming TD COMMAND – DEFINE DATE LAYOUT Description
This command is used to define the date format when printing.
Syntax
TDp1[/p2/p3]
Parameters p1–p3
/
The parameters describe the format of the date display. At least one parameter must be supplied. Each parameter can be any of the acceptable values listed below: y2 Year displayed as 2 digits, e.g. 96 y4 Year displayed as 4 digits, e.g. 1996 me Month displayed as a 3-letter English abbreviation, e.g. JAN, FEB, MAR, APR, MAY etc. mn Month displayed as 2 digits, e.g. 01 dd Day displayed as 2 digits, e.g. 15 Represents an optional separator character, which can be any character in the range between ASCII 32 dec. and ASCII 63 dec. The separator is printed between the results of each of the supplied parameters.
Remarks
This command works only if the printer is fitted with a Memory Cartridge containing an optional real-time clock circuit (RTC).
Examples
If the current date is January 15, 1996: TDy2/me/dd ↵ TDdd-me-y4 ↵ TDdd,mn,y4 ↵ TDy4-mn-dd ↵
:Prints as 96/JAN/15 :Prints as 15-JAN-1996 :Prints as 15,01,1996 :Prints as 1996-01-15
105
Page 106
UBI EasyCoder 91 – Programming TS COMMAND – SET REAL TIME CLOCK Description
This command is used to set the time and date in the printer's optional realtime clock circuit.
Syntax
TSp1,p2,p3,p4,p5,p6
Parameters p1 p2 p3 p4 p5 p6
Remarks
This command works only if the printer is fitted with a Memory Cartridge containing an optional real-time clock circuit (RTC).
Example
TS01,15,96,12,45,23 ↵
Month (01–12) Day (01–31) Year, two last digits (e.g. 96) Hour in 24 hour format (00–23) Minutes (00-59) Seconds (00-59)
:Sets the date to January 15, 1996 and the time to 12:45:23 p.m.
106
Page 107
UBI EasyCoder 91 – Programming TT COMMAND – DEFINE TIME LAYOUT Description
This command is used to define the time format when printing.
Syntax
TTp1[/p2/p3][+]
Parameters p1–p3
/
+
These parameters describe the format of the time display. At least one parameter must be supplied. Each parameter can be any of the acceptable values listed below: h Hours displayed as 2 digits, e.g. 12 m Minutes displayed as 2 digits, e.g. 15 s Seconds displayed as 2 digits, e.g. 00 Represents an optional separator character, which can be any character in the range between ASCII 32 dec. and ASCII 63 dec. The separator is printed between the results of each of the supplied parameters. Optionally selects 12-hour mode, where the time will appended with an “AM” or “PM” indicator. If there is no trailing + sign in command, 24-hour mode will be selected.
Remarks
This command works only if the printer is fitted with a Memory Cartridge containing an optional real-time clock circuit (RTC).
Example
If the current time is 1:25:00 PM: TTh:m:s+ ↵ TTh,m ↵ TTh+ ↵
:Prints as 01:25:00 PM :Prints as 13,25 :Prints as 01 PM
107
Page 108
UBI EasyCoder 91 – Programming U COMMAND – PRINT CONFIGURATION (General) Description
This command is used to print the current printer configuration.
Syntax
U
Remarks
This command produces a single label identical to the one printed in the Test Mode (see page 32), but without entering the Dump Mode.
Example
U ↵
:Produces e.g. the following label
Version Serial port setup (see Y command) Test pattern Amount of SRAM installed in printer and memory cartridge (if any) Image buffer size (see M command) Form memory size (see M command) Graphic memory size (see M command) External font memory size (see M command) Character set (see I command) Speed – Density – Ref. point – Dir – Errors (see S, D, R, Z & UN/US commands) Label width –Form length (see q & Q commands) Options (see O command) LSS values (backing paper/gap – current setup – label)
Note: If a real-time clock circuit is fitted in an inserted optional memory cartridge, the present time and date according to the clock circuit will also be printed at the bottom of the label.
108
Page 109
UBI EasyCoder 91 – Programming UF COMMAND – FORM INFORMATION INQUIRY Description
This command will cause the printer to send information about forms currently stored in the printer back to the host.
Syntax
UF
Remarks
The printer will send the number of forms stored and the name of each form to the host through the serial RS 232C port. The UF command will be executed directly, without appending any Linefeed.
Example
UF
:Returns number of forms and all form names, e.g.:
UF006 TEST1 TEST2 TEST3 TEST4 TEST5 TEST6
109
Page 110
UBI EasyCoder 91 – Programming UG COMMAND – GRAPHICS INFORMATION INQUIRY Description
This command will cause the printer to send information about graphics currently stored in the printer back to the host.
Syntax
UG
Remarks
The printer will send the number of graphics and the name of each graphic to the host through the serial RS 232C port. The UG command will be executed directly, without appending any Linefeed.
Example
UG
:Returns number of graphics and all graphic names, e.g.:
UG001 UBILOGO
110
Page 111
UBI EasyCoder 91 – Programming UI COMMAND – ENABLE PROMPTS/CODEPAGE INQUIRY Description
This command will cause the printer to enable prompts to be sent to the host and to send the currently selected code page to the host through the serial RS 232C port.
Syntax
UI The printer will send information on the currently selected code page back to the host in the following format: UIp1,p2,p3
Parameters p1 p2 p3
Remarks
The KDU (Keyboard Display Unit, see Appendix 4) automatically sends this command each time power is applied. The UI command is disabled by removing power from the printer for 60 seconds.
Example
UI ↵
Number of data bits Code page Country code
:Enables prompts from host and returns current code page, e.g.:
UI80,001 See Also:
I and U commands
111