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 14 of 17

UBI EasyCoder 91 Instruction Book: PROGRAMMING, pages 112 to 121

Pages 112 to 121 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 112

UBI EasyCoder 91 – Programming UM COMMAND – CODEPAGE & MEMORY INQUIRY Description

This command will cause the printer to send the currently selected code page and memory status to the host through the serial RS 232C port.

Syntax

UM The printer will send information on the currently selected code page and memory status back to the host in the following format: UM p1,p2,p3,p4,p5,p6,p7,UI p8,p9,p10

Parameters p1 p2 p3 p4 p5 p6 p7 p8 p9 p10

Example

UM ↵

Image buffer size in Kbytes Form memory allocation size in Kbytes Form memory free in Kbytes Graphic memory allocation size in Kbytes Graphic memory free in Kbytes External font memory allocation size in Kbytes External font memory free in Kbytes Number of data bits Code page Country code :Returns memory status and current code page, e.g.:

UM106,005.1,005.0,005,005,003,003 UI80,001 See Also:

I, M, U, UI, and UP commands.

112

Page 113

UBI EasyCoder 91 – Programming UN COMMAND – DISABLE ERROR REPORTING Description

This command is used to disable error reporting.

Syntax

UN

Remarks

Cancels US command.

Example

UN ↵

:Disables error reporting

113

Page 114

UBI EasyCoder 91 – Programming UP COMMAND – CODEPAGE & MEMORY INQUIRY/PRINT Description

This command will cause the printer to print and send the currently selected code page and memory status to the host through the serial RS 232C port.

Syntax

UP The printer will: • Send information on the currently selected code page and memory status back to the host (same as UM command) • Print the current printer configuration (same as U command). The format of the data sent to the host is as follows: UM p1,p2,p3,p4,p5,p6,p7,UI p8,p9,p10

Parameters p1 p2 p3 p4 p5 p6 p7 p8 p9 p10

Example

UP ↵

See Also:

I, M, U, UI, and UM commands.

Image buffer size in Kbytes Form memory allocation size in Kbytes Form memory free in Kbytes Graphic memory allocation size in Kbytes Graphic memory free in Kbytes External font memory allocation size in Kbytes External font memory free in Kbytes Number of data bits Code page Country code :Returns memory status and current code page and prints configuration on label.

114

Page 115

UBI EasyCoder 91 – Programming US COMMAND – ENABLE ERROR REPORTING Description

This command is used to enable the printer's status reporting feature.

Syntax

US

Remarks

Serial Port:

If an error occurs while using the serial port, the printer will send a NAK (ASCII 21 dec.), followed by the error number, back to the computer. If no error occur, the printer will echo ACK (ASCII 06 dec.) after each P (print) command. If out-of-paper or out-of-ribbon occurs, the printer will send, through the serial port, a “-07” and “Pnnn” where nnn is the number of labels remaining to print. Parallel Port: While using the parallel port, the printer will print the error number and the control lamp will go orange (error). The default setting is off (also see UN). Error Messages Message Meaning ERR01 Syntax Error ERR02 Object exceeds image buffer border ERR03 Data length error (e.g. EAN 13 is 12 or 13 bytes only) ERR04 Insufficient memory to store forms or graphics ERR05 Memory configuration error ERR06 RS 232C error ERR07 Out of paper and/or ribbon ERR08 Form or PCX name duplicate ERR09 Form or PCX not found ERR16 No form was retrieved before “? ↵” was entered. ERR50 Does not fit in area specified ERR51 Data length too long HINT! Tap the Feed key three times to resume printing after an error. Example

US ↵

:Enables error reporting

115

Page 116

UBI EasyCoder 91 – Programming V COMMAND – DEFINE VARIABLE Description

This command is used to define variable data fields for use in stored forms.

Syntax

Vp1,p2,p3,"[-][- -]PROMPT"

Parameters p1

Variable reference number (00–99). A maximum total of 1500 bytes of data for all variables is allowed. p2 Maximum number of digits for the variable (1–99). A maximum total of 1500 bytes of data for all variables is allowed. p3 Field justification: L Left justification R Right justification C Centre justification N No justification [-] A single leading minus sign in the prompt field will cause the prompt to be sent one time only after the form is retrieved (Keyboard Display Unit only, see Appendix 4). [- -] A double leading minus sign in the prompt field will cause the prompt to be suppressed (Keyboard Display Unit only, see Appendix 4). PROMPT An ASCII text field that will be transmitted to the host via the serial interface each time this command is executed. This prompt requests the operator to enter the value for the variable.

Remarks

This command is used in forms that require unique data on each label. When initializing variables, they must be defined in order (V00, V01, V02 etc.) immediately after the FS command. The field justification parameter affects the way the variable will be printed. When left, right, or centre justification are selected, the counter value will be printed left, right or centre justified in an area with a width defined by the p2 parameter. If the number of digits in the counter value is less than the number of digits defined by p2, the area will be padded with space characters. If no justification is selected, the field will adjust to fit the actual length of the data and will not exceed the set maximum field length, which may be useful when using a counter as input data to a bar code. To print the contents of a variable, the number of the variable must be included in the "DATA" field of the A (Print Text) or B (Print Bar Code) commands.

Continued 116

Page 117

UBI EasyCoder 91 – Programming V COMMAND – DEFINE VARIABLE, cont'd. Example

This example shows how the field justification works in variable fields: FK"TEST7" ↵ FR"TEST7" ↵ V00,10,L,"Variable 00" ↵ V02,10,R,"Variable 00" ↵ V03,10,C,"Variable 00" ↵ V04,10,N,"Variable 00" ↵ A50,50,0,3,1,1,N,"TEXT"V00":Left justified" ↵ A50,100,0,3,1,1,N,"TEXT"V01":Right justified" ↵ A50,150,0,3,1,1,N,"TEXT"V02":Centre justified" ↵ A50,200,0,3,1,1,N,"TEXT"V03":No justification" ↵ FE ↵ Refer to the ? Command on page 122 for continuation of this example!

117

Page 118

UBI EasyCoder 91 – Programming W COMMAND – WINDOWS MODE Description

This command is used to enable/disable the Windows command mode.

Syntax

Wp1

Parameters p1

Remarks

When enabled, the printer will accept Windows mode escape sequences to print data. When disabled, escape sequences will be ignored. The Windows mode escape sequences are only used by the Windows Printer Driver. When working with a main frame or other non-Windows host, this mode can be disabled to prevent erratic operation.

Examples

WY ↵ WN ↵

Windows Mode enable/disable: Y Enables Windows Mode N Disables Windows Mode (default)

:Enables Windows Mode :Disables Windows Mode

118

Page 119

UBI EasyCoder 91 – Programming X COMMAND – DRAW BOX Description

This command is used to draw a box shape.

Syntax

Xp1,p2,p3,p4,p5

Parameters p1 p2 p3 p4 p5

Example

N ↵ X50,200,5,400,20 ↵ X200,50,10,20,400 ↵ 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 (X) in dots :Clears image buffer :Prints box A :Prints box B :Prints a label Box A

Box B

119

Page 120

UBI EasyCoder 91 – Programming Y COMMAND – SERIAL PORT SETUP Description

This command is used to establish the serial port communication parameters.

Syntax

Yp1,p2,p3,p4

Parameters p1 p2 p3 p4

Baud rate: 19 19,200 baud 96 9,600 baud 48 4,800 baud 24 2,400 baud 12 1,200 baud Parity: O Odd (O is uppercase o character; ASCII 79 dec.) E Even N None Number of data bits: 7 7 data bits 8 8 data bits Number of stop bits: 1 1 stop bit 2 2 stop bits

Remarks

The EasyCoder 91 communicates either via the Centronics parallel port or the RS 232C serial port. After receiving this command, the printer will automatically reset its communication on the serial communication port. By default, the printer is set for 9600 baud, no parity, 8 data bits, 1 stop bit. If the current communication setup is not known, it can be checked by printing a test label (see page 32).

Example

Y19,O,7,1 ↵

:Sets 19,200 baud, odd parity, 7 data bits, 1 stop bit

120

Page 121

UBI EasyCoder 91 – Programming Z COMMAND – PRINT DIRECTION Description

This command is used to select the print orientation.

Syntax

Zp1

Parameters p1

Remarks

This command affects the complete print image, including text, bar codes, graphics, lines, and boxes, as well as the location of the reference point (see R command). Note that printing a test label in the Test Mode, or by means of a U or UP command, will reset the print direction to default, i.e. ZT.

Print orientation: T Start printing from the top of the label (default) B Start printing from the bottom of the label

ZT Command:

UBI PRINTER AB Feed Direction

ZB Command:

UBI PRINTER AB

Feed Direction

Example

ZB ↵

:Starts printing from the bottom of the label

121