Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeEnglishEspañolContact

The text of a manual · part 7 of 17

UBI EasyCoder 91 Instruction Book: PROGRAMMING, pages 42 to 51

Pages 42 to 51 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 42

UBI EasyCoder 91 – Programming INTRODUCTION General Information

The EasyCoder 91 is provided with a built-in control program by which you can use any computer or terminal, that can produce ASCII characters, to control the printer. This is a useful alternative to the Windows Driver, which requires a PC operating under Microsoft Windows. With this control program, you can use any editor1 to program the EasyCoder 91, either by means of the serial RS 232C channel or the parallel Centronics channel. The remaining part of the manual will assist you in designing labels using the EasyCoder 91 programming software. It has been organized to provide you with an understanding of the printer’s functions and command structure. If you have any questions regarding the product or this manual, please contact your distributor for technical assistance.

1

/. Hint! In Microsoft Windows 3.1, you can use Write or Notepad to compose strings, which you copy and paste into Terminal, from which you can transmit them via the serial communication channel to your EasyCoder 91.

Dump Mode The printer has the capability to perform in dump mode, which means that the printer will print out the echo of the received ASCII. Use this capability to debug your software when the printer does not perform as you expect. To enter Dump Mode: • Turn off the power to the printer. • For best result, load the printer with full width labels or tags. • Hold down the Feed key and turn on the power again. • Hold the Feed key until the printer starts to feed. Then immediately release the Feed key. This procedure also adjusts the label stop sensor, see page 31, and produces a test label, see page 32. You can also enter the Dump Mode, when an error occurs and the control lamp shines orange, by pressing the Feed key and keep it depressed a few seconds (as opposed to tapping the key, which just resets the printer). In the Dump Mode, the output is the same label as produced by means of a U command, but an extra line will be appended saying “now in DUMP”. Then the printer waits for ASCII dump printing. Send a string of characters or a label form to the printer and tap the Feed key to produce a printout. Dump mode will also print control characters, see character set table on page 138. To return to normal mode, press the Feed key. A label with the message “out of DUMP” will be printed. Continued! 42

Page 43

UBI EasyCoder 91 – Programming INTRODUCTION, cont'd. General Programming Information

Memory The EasyCoder 91 firmware has memory allocation for print image buffer, form, graphic, and external font (soft font) memory. The first time the printer is used, it is automatically initialized to default settings, see page 49. The M memory command sets the image buffer, the form memory, and graphic memory area. The remaining memory space, if any, is allocated to the external font memory, which is presently not used in UBI EasyCoder 91. Direct Mode You can print a label without using a predefined format by sending write commands (text, bar codes, graphics, lines and boxes) to the printer after having cleared the image buffer using an N command. The label remains stored in the image buffer and can be printed over and over again by sending new P print commands, until the buffer is cleared by an N command, or by retrieving and printing a Form (see FR command). The Direct Mode is also used for retrieving and printing preprogrammed label formats, for the issuing of global setup commands, for deleting forms and graphics from memory, and to make the printer produce a number of different reports. Form Edit Mode This mode is used to permanently store label forms, and graphics in the printer memory. In addition to plain text, bar codes, graphics, lines and boxes, form edit mode also allows the use of variables and counters, which are not available in the Direct Mode. The individual label forms can be retrieved and printed in the Direct Mode. Some setup parameters can be included in forms in order to adapt the printer for different applications. However, such setup parameters will affect the global setup after the form has been retrieved and printed. The optional Keyboard Display Unit (KDU) can retrieve a stored form , making it possible to use the EasyCoder 91 as a stand alone system, i.e. without connection to a computer. Form Every label is made up of various fields. A form is the complete set of commands that define the content and the design of the label. A form can be saved in memory and retrieved when required. Continued! 43

Page 44

UBI EasyCoder 91 – Programming INTRODUCTION, cont'd. General Programming Information, cont'd.

Text Editor Use any ASCII output device with a parallel or serial port and a text editor to design the form and programming the EasyCoder 91 printer. Communication is based on the ASCII characters 10 dec., and 32-255 dec. Commands The command syntax is based on upper and lower case characters, numeric characters, commas (as separators), quotation marks and line feeds (LF; ASCII 10 dec.). The LF in this manual is listed as ↵ in the command descriptions. Note that all programming examples start with LF (depicted as ↵). It is strongly recommended to start any sequence of command lines with a Line Feed (LF). LINE FEED (LF) IS REQUIRED TO BE SENT AT THE END OF MOST COMMAND LINES.

Most PC based systems send CR/LF when pressing the Enter key. The CR (carriage return) sent in a CR/LF sequence will be ignored. CR alone will not work. Refer to page 47 for a list showing for which purposes the various command can be used. Syntax Descriptions Later in this section, you will find each command listed on a separate page with a description of its syntax. In the syntax, there are a few conventions for substituting data or indicating how data can be used: • p1 – pn Indicates parameters listed separately below the syntax description. • [ ..... ] Square brackets indicate optional parameters or data. •| A straight vertical lines indicates alternatives. • "Name" Enter the name of the form or graphic within double quotation marks (ASCII 34 dec.), i.e. "UBI".

Continued! 44

Page 45

UBI EasyCoder 91 – Programming INTRODUCTION, cont'd. • "Data" The data could be from another source such as a .PCX file, a database, or entered by the operator. "Data" designates the place in the command sequence to input the data. Because the software program uses " " (ASCII 34 dec.), you need a special designator if you need to print text or bar code which includes these quotation marks1. The backslash character "\" (ASCII 92 dec.) serves that purpose: To print: " enter: " \" " To print: "UBI" enter: " \"UBI\" " To print: \ enter: " \\ " To print: \code\ enter: " \\code\\ " 1

/. If a 7 bit character set is selected, this syntax will not be supported. All backslash (\ ) characters will be printed as entered.

Field Each command line of printable data will create a field, which is defined in regard of start position, rotation, magnification etc. Box

Counter C1

76532

DATE: SEP/01/95

Variable Text V00

FRAGILE

PACKED BY: SAM

Rotated text

Bar Code Date or Time

Line Fixed Text

EASYCODER 91 Graphic

Counter C0

SERIAL NO. 654

General Programming Information, cont'd.

Y Axis

X Axis Paper Feed Direction

The illustration shows how a label is printed and fed out when using the default direction.

Continued! 45

Page 46

UBI EasyCoder 91 – Programming INTRODUCTION, cont'd. Field Positioning The printable area of the label forms a grid, where the X-axis runs across the label and the Y-axis runs along the label web. Dots are used as the unit for establishing position of the upper left corner of each field in relation to a specified reference point, in this example the top left corner of the form. For example, as the printhead density is eight dots per millimetre (203 dots per inch), a field that starts 5 mm (0.197 in.) inside of the left margin and 3 mm (0.118 in.) down should be expressed as 40 dots on the X axis and 24 dots on the Y axis. Text and bar code fields can be rotated around their insertion points, whereas lines, boxes and graphics cannot be rotated. However, the entire print image can be rotated 180°. The illustration below shows coordinates for the default print direction (ZT).

General Programming Information, cont'd.

Y-axis Rotated Text Field X500;Y400 550 500 CODE 39

450

TEXT

400 350 300 250

Bar Code Field X150;Y300

200

TEXT

150 100 50

X-axis 832 800

750

700

650

600

550

500

450

400

350

300

250

200

150

100

Text Field X100;Y100

50

Print Width 104 mm (832 dots) Reference Point at direction ZT X000;Y000

Graphic Field X650;Y050

Paper Feed Direction

Continued! 46

Page 47

UBI EasyCoder 91 – Programming COMMANDS The following list illustrates which commands can be used in the Direct Mode and the Form Edit Mode and for what purposes. Direct Mode Commands

• Setup Commands Used to set up the printer globally, i.e. affects both the Direct Mode and Forms. D Density ..................................................................... 73 I Character Set Selection ............................................. 83 JB Disable Top of Form Backup .................................... 84 JF Enable Top of Form Backup ..................................... 85 j Paper Feed Adjustment ............................................. 86 M Memory Allocation .................................................. 91 O Options Select .......................................................... 95 Q Set Form Length ....................................................... 98 q Set Label Width .......................................................102 R Set Reference Point..................................................103 S Speed Select ............................................................104 TD Define Date Layout .................................................105 TS Set Real Time Clock ................................................106 TT Define Time Layout.................................................107 UN Disable Error Reporting ...........................................113 US Enable Error Reporting ............................................115 W Windows Mode .......................................................118 Y Serial Port Setup ......................................................120 Z Print Direction .........................................................121 • Store Command Used to store graphic files in printer's memory. GM Store Graphics .......................................................... 82 • Clear and Delete Commands Used to erase data from the printer's memory. FK Delete Form.............................................................. 76 GK Delete Graphics ........................................................ 81 N Clear Image Buffer ................................................... 94 • Editing Commands Used to edit labels in the Direct Mode. A Print Text ................................................................. 58 B Print Standard Bar Codes .......................................... 62 b Print Two-Dimensional Codes .................................. 66 GG Print Graphics ........................................................... 79 LE Line Draw Exclusive ................................................ 87 LO Line Draw Black ...................................................... 88 LS Line Draw Diagonal ................................................. 89 LW Line Draw White ...................................................... 90 X Draw Box ................................................................121 Continued! 47

Page 48

UBI EasyCoder 91 – Programming COMMANDS, cont'd. Direct Mode Commands, cont'd.

• Print Commands Used to produce printouts of labels edited in the Direct or retrieved form edited in the Form Edit Mode. FR Retrieve Form ........................................................... 77 ? Download variables .................................................122 P Print ......................................................................... 96 • Report Commands Return information on serial channel and/or produce printed information. FI Print Form Information ............................................. 75 GI Print Graphics Information........................................ 80 U Print Configuration ..................................................108 UF Form Information Inquiry ........................................109 UG Graphics Information Inquiry ...................................110 UI Enable Prompts/Codepage Inquiry ...........................111 UM Codepage & Memory Inquiry ..................................112 UP Codepage & Memory Inquiry/Print ..........................114

Form Edit Mode Commands

• Setup Commands in Forms Will affect the global setup after printing a form including such a command. D Density ..................................................................... 73 Q Set Form Length ....................................................... 98 R Set Reference Point..................................................103 S Speed Select ............................................................104 TD Define Date Layout .................................................105 TT Define Time Layout.................................................107 Z Print Direction .........................................................121 • Editing Commands Used to edit forms. A Print Text ................................................................. 58 B Print Standard Bar Codes .......................................... 62 b Print Two-Dimensional Codes .................................. 66 C Counter .................................................................... 70 FE End Form Store ........................................................ 74 FS Form Store ............................................................... 78 GG Print Graphics ........................................................... 79 LE Line Draw Exclusive ................................................ 87 LO Line Draw Black ...................................................... 88 LS Line Draw Diagonal ................................................. 89 LW Line Draw White ...................................................... 90 PA Print Automatic ........................................................ 97 V Define Variable .......................................................116 X Draw Box ................................................................119

48

Page 49

UBI EasyCoder 91 – Programming SETTING UP THE PRINTER Default Setup

At delivery, the EasyCoder 91 is set up as follows. Parameter Command Density D Character Set I Top of Form backup JB/JF Paper feed adj. j Image buffer M Form memory M Graphic Memory M Ext. Font Memory M Label Stop Sensor O Label Taken Sensor O DT/TT Printing O Form Length Q Label Width q Reference Point R Print Speed S Error Handling UN/US Windows Mode W Serial Port Y Print Direction Z

Default Value and Remarks 7 8 bits, code page 0, country code 001 Enabled 140 dots (tear-off) 106 Kbytes 5.1 Kbytes 5 Kbytes 3 Kbytes (at 128 Kbyte RAM) Normal Enabled (if fitted) TT (end of ribbon sensor enabled) Auto-detection 832 dots (full width) X:024;Y000 50 mm/sec (2"/sec.) Enabled Disabled 9600 baud, no parity, 8 data bits, 1 stop bit ZT (Start at top of label)

The setup will be reset to default values if: • The memory backup battery is disconnected or discharged. • An optional memory cartridge has been removed. • The printer's memory is reformatted using an M command. Some commands may also affect the values of other command, e.g. if a configuration label is printed (see U and UP commands), the print direction is reset to ZT, and if an R Reference Point command is executed, the label width (see q command) will be reset to default. Example

Let us assume that we will use an EasyCoder 91 thermal transfer printer (peel-off model) without any memory cartridge. We will print full vellum labels with GP91 transfer ribbon in the peel-off mode without using the label-taken sensor. The default communication setup and character set are acceptable. Thus, a few setup parameters should be changed in the Direct Mode: • Density from 7 to 4 • Paper feed adjustment from 140 to 110 • Label Taken Sensor from enabled to disabled Enter the following commands: Command ↵ D4 ↵ j140 ↵ ON ↵

Explanation CR/LF to start command structure Set density Set paper feed adjustment Disable label taken sensor

49

Page 50

UBI EasyCoder 91 – Programming EDITING AND PRINTING IN THE DIRECT MODE Example

Assuming that... • The printer has been set up for the application (see page 49) • The length of the label and the gap has been determined by printing a Test Label (see page 32) • The graphic used in the example has been downloaded to the printer as described on page 82 (GM command)1. ...we will now print two copies of a label which we will edit in the Direct Mode. This means that the label can be printed as many times as you want, as long as it still is stored in the image buffer. Once replaced, it cannot be retrieved. It also means that counters and variables cannot be used. Command

Explanation

↵

CR/LF to start command structure

N↵

Clear image memory

X0,0,4,752,584↵

Draw a box

LO0,144,752,4↵

Draw a line

LO440,232,4,160↵

Draw a line

A456,48,0,5,1,1,N, "UBI"↵

Write a text line of fixed data

A40,400,1,1,1,1,N,"Made in Sweden"↵ Write a 90° text line of fixed data A24,160,0,5,1,1,R,"EASYCODER"↵

Write a text line of fixed data

A24,250,0,4,1,1,N,"MODEL: 501SA"↵

Write a text line of fixed data

A472,312,0,4,1,1,N,"Checked by: Dan"↵ Write a text line of fixed data A24,312,0,4,1,1,N,"SERIAL#: 000001"↵

Write a text line of fixed data

B280,440,0,1,2,3,96,B,"S 000001"↵

Write barcode representing fixed data

GG24,12,"UBI"↵

Write a graphic from graphics memory

P2↵

Print command to image buffer

1

/. The UBI logotype is not included in the software package and is only included in the example to demonstrate how to print a graphics field. You can substitute it with any graphics of approximately the same size. If you find it difficult to download graphics, you could omit the GG command from the example until you have become more familiar with the concept.

The label will look like the example on page 51.

50

Page 51

UBI EasyCoder 91 – Programming EDITING IN THE FORM EDIT MODE Example

Assuming that... • The printer has been set up for the application (see page 49) • The length of the label and the gap has been determined by printing a Test Label (see page 32) • The graphic used in the example has been downloaded to the printer as described on page 82 (GM command)1. ...we will now edit a label that can be saved as a form in the printer's memory and retrieved when so required. It also means that we can use counters and variables. When we are finished, the label will look like this:

Name the Form Name of this form is TEST. Command ↵ FK"TEST" ↵ FS"TEST" ↵

Explanation CR/LF to start command structure Delete any existing form named TEST Start store form named TEST

1

/. The UBI logotype is not included in the software package and is only included in the example to demonstrate how to print a graphics field. You can substitute it with any graphics of approximately the same size. If you find it difficult to download graphics, you could omit the GG command from the example until you have become more familiar with the concept.

Continued! 51