5525B/31/32 Line Matrix Printer Code V Programmer's Reference Manual
UCC/EAN-128
 197
ratio
Optional parameter (used in conjunction with 9 
above) representing the ratios for variable ratio bar 
codes. Default ratios are overridden by the variable 
ratio feature. The ratio data must be hexadecimal 
numbers from 0 through 9 or A through F; the Code 
V automatically checks the input for validity. If an 
invalid character is found in the ratio, an error 
message is generated.
UCC/EAN-128 bar codes use eight-digit ratios. The 
ratios are interpreted from left to right, measuring 
the size of each bar or space in dot width, in the 
following pattern: 
1 module wide bar : 1 module 
wide space : 2 module wide bar : 2 module wide 
space : 3 module wide bar : 3 module wide space : 
4 module wide bar : 4 module wide space.
 For 
example, enter 22446688 in the ratio data field for:
2 module wide bar
2 module wide space
4 module wide bar
4 module wide space
6 module wide bar
6 module wide space
8 module wide bar
8 module wide space 
The maximum width of an UCC/EAN-128 bar code 
is 165mm (6.5”).
The Code V automatically checks ratio data for validity only within the 
allowable hexadecimal range. The Code V does not verify that ratio data 
creates acceptable bar/space element relationships for bar code readability. 
When designing unique ratio data, carefully plot bar/space ratios to conform 
to readable bar codes.
data
The bar code data. The data field for UCC/EAN-
128 consists of an “application identifier” of two, 
three or four numbers, followed by data of 
appropriate length and type. See Table 35 for a list 
of application identifiers and their associated data 
fields.
Because the FNC1 character is required for UCC/
EAN-128 bar codes, Code V will always generate 
this as the first character after the start code. It will 
appear in the bars but not in the human-readable 
field. Do not supply the FNC1 in the data field.
The proper start code and any subset switching 
characters will be automatically generated by Code 
V. Do not include characters from the Alternate 
subset in the data field.
(cc)G Terminates the bar code command. Enter the 
SFCC for your Code V configuration immediately 
followed by any valid command character or G, the 
universal sequence terminator.










