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

UBI EasyCoder 91 Instruction Book: PROGRAMMING, pages 62 to 71

Pages 62 to 71 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 62

UBI EasyCoder 91 – Programming B COMMAND – STANDARD BAR CODES Description

This command is used to print standard bar codes.

Syntax

Bp1,p2,p3,p4,p5,p6,p7,p8,"DATA"

Parameters p1 p2 p3 p4 p5

Horizontal start position (X) in dots Vertical start position (Y) in dots 0 No rotation 1 90 degrees rotation clockwise 2 180 degrees rotation clockwise 3 270 degrees rotation clockwise Barcode select. See table below. Narrow bar width in dots. See table below. Barcode Type Code 39 std. or extended Code 39 with check digit Code 93 Code 128UCC case code Code 128 A, B, C Codabar EAN8 EAN8 2 digit add-on EAN8 5 digit add-on EAN13 EAN 13 2 digit add-on EAN13 5 digit add-on German Postcode Interleaved 2 of 5 Interleaved 2 of 5 with check digit Interleaved 2 of 5 with human readable check digit Postnet 5, 6. 8 & 11 digit UCC/EAN 128 UPC A UPC A 2 digit add-on UPC A 5 digit add-on UPC E UPC E 2 digit add-on UPC E 5 digit add-on UPC Interleaved 2 of 5 p6 p7 p8 "DATA"

"p4" 3 3C 9 0 1 K E80 E82 E85 E30 E32 E35 2G 2 2C 2D P 1E UA0 UA2 UA5 UE0 UE2 UE5 2U

“p5” 1–10 1–10 1–10 1–10 1–10 1–10 2–4 2–4 2–4 2–4 2–4 2–4 1-10 1–10 1–10 1–10 n.a. 1-10 2–4 2–4 2–4 2–4 2–4 2–4 1-10

Wide bar width in dots (2 –30) Barcode height in dots B Human readables ON N Human readables OFF Represents a fixed data field

Continued! 62

Page 63

UBI EasyCoder 91 – Programming B COMMAND – STANDARD BAR CODES, cont'd. Example

This example produces a Code 39 bar code: ↵ N ↵ B50,50,0,3,2,10,200,B,"998152-001" ↵ P1 ↵

Remarks

The "DATA" field can be replaced by or combined with below commands: Variable: Vnn Prints the contents of variable “nn” at this position, where nn is a 2 digit number from 00 – 99. Consecutive Number Counter: Cn Prints the contents of counter “n” at this position, where n is a 1 digit number from 0 – 9. Cn±x Prints the contents of counter “n” at this position while setting the counter's start value to “x”. n and x are 1 digit numbers from 0 – 9 Enter + to increment or - to decrement.

Continued! 63

Page 64

UBI EasyCoder 91 – Programming B COMMAND – STANDARD BAR CODES, cont'd. Remarks, cont'd.

Example: When labels with consecutive numbers are printed next to each other across the web, it is done by using a single counter in a single form. The command Cn±x in our example will be used twice and count up the single counter by one (1) in each position (last two B-command lines). Set the Form Step Value p4 to +3 for the counter Cn used in our example (see the C-command line). Also refer to “C Command – Counter”. ↵ FK"TEST3" ↵ FS"TEST3" ↵ C0,6,L,+3,"Counter 0" ↵ B120,50,0,2,3,6,100,B,C0 ↵ B320,50,0,2,3,6,100,B,C0+1 ↵ B520,50,0,2,3,6,100,B,C0+2 ↵ FE ↵

Time: TT

Prints the current time at this position in the predefined format. See the TT command for format selection. This command is only available if a Memory Cartridge with a Real Time Clock is installed. TT+nnn Prints “sell by” time. Adds nnn number of minutes (must be three digits) to the current time and places it on the form using time layout defined. TD Prints the current date at this position in the predefined format. See the TD command for format selection. This command is only available if a Memory Cartridge with a Real Time Clock is installed. TD+nn Prints “sell by” date. Adds nn number of days (must be two digits) to the current date and places it on the form using date layout defined.

Continued! 64

Page 65

UBI EasyCoder 91 – Programming B COMMAND – STANDARD BAR CODES, cont'd. Remarks, cont'd.

This example illustrates how fixed text, variable text, counters, time and date can be used in text fields in the Form Edit Mode: ↵ FK"TEST4" ↵ FS"TEST4" ↵ V00,25,l,"Product name" ↵ C0,4,L,+1,"Start serial No" ↵ B50,50,0,3,2,6,100,B,"TEXT" ↵ B50,200,0,3,2,6,100,B,V00 ↵ B50,350,0,3,2,6,100,B,C0 ↵ B50,500,0,3,2,6,100,B,TT ↵ B50,650,0,3,2,6,100,B,TD ↵ FE ↵ After retrieving and printing the form, the label may e.g. look like this:

Combination of several options can also be used, e.g: B50,300,0,3,1,2,50,B,"Deluxe"V01C2"Combo"TDV01TT ↵ :Writes a Code 39 bar code containing the information “Deluxe” + the contents of variable 01 + the contents of counter 2 + the text “Combo” + the current date + the contents of variable 01 + by the current time

65

Page 66

UBI EasyCoder 91 – Programming b COMMAND – TWO-DIMENSIONAL CODES, GENERAL Description

This command is used to print two complex bar codes; PDF 417 and MaxiCode. The command consists of two parts; a leading set of positioning and bar type select parameters, and a trailing code-specific part defining the bar code's appearance and its input data.

Syntax bp1,p2,p3,[code specific options]

Parameters p1 p2 p3

Horizontal start position (X) in dots Vertical start position (Y) in dots Code type: M Selects MaxiCode P Selects PDF417 [code specific options], see the following two pages

Remarks

If the amount of data will not fit in the area specified, the indicator will light orange, indicating an error.

66

Page 67

UBI EasyCoder 91 – Programming b COMMAND – MAXICODE Description

The following MaxiCode specific options should append the general part of the two-dimensional code command (b command), see page 66.

Syntax

["CL,CO,PC,LPM"]

Parameters

CL CO PC LPM

Example

Class Code (3 digit number) Country Code (3 digit number) Postal Code: U.S.A (5 digits,4 digits) Note the separating comma sign! International (6 alphanumeric characters) Low Priority Message (up to 84 alphanumeric characters)

N ↵ b100,100,M,"300,400,93065,1692,This is MaxiCode" ↵ P1 ↵

67

Page 68

UBI EasyCoder 91 – Programming b COMMAND – PDF 417 Description

The following PDF 417 bar code specific options should append the general part of the two-dimensional code command (b command), see page 66.

Syntax

[www,hhh,s,c,p,f,d,x,y,r,I,t,o],"DATA"

Parameters www hhh s c p f dxyrlto-

DATA

Maximum print width in dots (3 digits) Maximum print height in dots (3 digits) Sets error correction level. Legal values are 0 thru 8. If level is not specified, a level that will generate about 1/8 as many ECC codewords as data codewords is selected Selects data compression method: 0 Selects auto-encoding (default) 1 Selects binary mode Print human readable code appended by additional variables: xxx horizontal start location (3 digits) yyy vertical start location (3 digits) mmm maximum characters per line (3 digits) Centre pattern in area: 0 The pattern will print upper left justified in the area defined by the w and h values 1 The pattern is printed in middle of the area defined by the w and h values (default) Print codewords: 0 Values of codewords not printed (default) 1 Values of codewords printed Module width. Legal values are 2 – 9 Set bar height. Legal values are 4 – 99 dots high Maximum row count (refer to PDF 417 specifications) Maximum column count (refer to PDF 417 specifications) Note that this character is lowercase L. Truncated flag: 0 Not truncated 1 Truncated Rotation: 0 0° rotation clockwise 1 90° rotation clockwise 2 180° rotation clockwise 3 270° rotation clockwise Represents a fixed data field.

Continued! 68

Page 69

UBI EasyCoder 91 – Programming b COMMAND – PDF 417, cont'd. Example:

↵ N ↵ b40,40,P,400,300,p40,340,20,f1,x3,y10,r60,l5, → → "ABCDEFGHIJK1234567890abcdefghijk" ↵ P1 ↵

69

Page 70

UBI EasyCoder 91 – Programming C COMMAND – COUNTER Description

This command is used to define one of max. 10 automatic counters used in consecutive numbering applications (e.g. serial numbers). Counters can only be used in the Form Edit Mode, not in the Direct Mode.

Syntax

Cp1,p2,p3,p4,"[-][- -]PROMPT"

Parameters p1 p2 p3

Counter number (0 – 9) Maximum number of digits for the counter (1–29) Field justification: L Left justification R Right justification C Centre justification N No justification p4 Step value. Plus or minus sign followed by a single digit (1–9) + Incrementation - Decrementation [-] 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 below). [- -] A double leading minus sign in the prompt field will cause the prompt to be suppressed (Keyboard Display Unit only, see below). PROMPT An ASCII text field that will be transmitted to the Keyboard Display Unit or host via the serial interface each time a form containing this command is retrieved. It usually requests the operator to enter the starting value for the counter.

Remarks

This command is used in forms that require sequential numbering. When initializing counters, they must be defined in order (e.g. C0, C1 C2 etc.) after possible variables. To print the contents of the counter, the counter number (C0 – C9) is entered in the "DATA" field of A (Print Text) or B (Print Bar Code) commands. Prompts will only be displayed if a UI command has been issued after last power-up. The Keyboard Display Unit (KDU) sends the UI command automatically. The field justification parameter (p3) affects the way the counter will be printed. When p3 = L, R, or C, the counter value will be printed left, right or centre justified in an area with a width defined by p2 (number of digits). If no justification is selected (p3 = N), the field will truncated from the right side so as to not exceed the set maximum field length, which may be useful when using a counter as input data to a bar code.

Continued! 70

Page 71

UBI EasyCoder 91 – Programming C COMMAND – COUNTER, cont'd. Remarks, cont'd.

If the start value entered, when the form is retrieved for printing, is started by one or several zeros (0), the entire area specified by p2 (number of digits) will be padded with leading zeros, i.e. p3 (field justification) will have no effect. Note: If a single counter is stepped up several times on the same form, then the step value p4 must be set to the number of times the counter is used in the form or equivalent to what the step values for the single counter add up to in this form. A Cn±x command must also be used when designing the actual form. See the A and B commands.

Example

This form lets you test field justifications by entering various start values when the form is retrieved for printing. Test various number of digits, with and without leading zeros. ↵ FK"TEST5" FS"TEST5" C0,5,L,+1,"Start value CNT 0" C1,5,R,+1,"Start value CNT 1" C2,5,C,+1,"Start value CNT 2" C3,5,N,+1,"Start value CNT 3" A50,50,0,3,1,1,N,"Counter left justified: " A50,100,0,3,1,1,N,"Counter right justified: " A50,150,0,3,1,1,N,"Counter centre justified: " A50,200,0,3,1,1,N,"Counter not justified: " FE

Continued! 71