Barcode Technology

Barcode History

Barcode Label Paper

Barcode Printer

Barcode Application

Inventory Management

AI Barcode QRCode

Barcode Scanner

Barcode Software

Barcode Software B

Barcode Software C

Barcode Software D

Barcode Software E

New Technology A

New Technology B

Robot Technology

Barcode Types

Barcode Types B

Barcode Types C

Barcode Types D

Barcode Types E

Barcode Types F

Electronic Technology

Psychology at Work

Barcode Technology and Barcode Software Related   <<< Back to Directory <<<

Using FNC4 to encode characters in Code-128

Using FNC4 to encode high (160-255) characters in Code-128 Barcode.

Code-128 is a versatile barcode symbology that includes different sets of characters, including alphanumeric characters and control codes. It uses different modes, or 'character sets,' such as Code Set A, Code Set B, and Code Set C, to optimize the encoding of different types of data.

FNC4 is a special function character in Code-128 that allows for encoding extended ASCII characters (values 128-255). When you need to encode characters in the range of 160-255, which are part of the extended ASCII set, you use the FNC4 character to signal a shift to extended encoding.

The special symbol FNC4 ('Function 4'), present only in code sets A and B, can be used to encode all the Latin-1 (ISO-8859-1) characters in a Code 128 barcode.

When a single 'FNC4' is present in a string, the following symbol is read like ASCII, but the value is incremented by +128, thus taking the higher range of the ISO-8859-1 table. If the following symbol is a 'SHIFT', then a second symbol will be used to obtain the character.

If two consecutive 'FNC4' characters are used, all following data characters are extended ASCII characters until two further consecutive 'FNC4' characters are encountered or the end of the symbol is reached. If during this sequence of extended encodation a single 'FNC4' character is encountered it is used to revert to standard ASCII encodation for the next data character only. 'SHIFT' and character subset characters shall have their normal effect during such a sequence.

From Code 128A you can reach Latin-1 special characters from 160 (hex A0, non breaking space) up to 223 (hex DF, ?) via FNC4. The lower case characters from 224 (hex E0, à) to 254 (hex FE, ?) are available by FNC4+SHIFT B. The characters ÷ (247, hex F7) and ? (255, hex FF) are not available.

The feature is not available for GS1-128. Since the support of Code 128 Type B (and C) is not very common, it might be easier to use a QR Code instead for characters from the ISO-8859-1 code range.

Here's a detailed breakdown of how to use FNC4 to encode high characters (160-255) in a Code-128 barcode:

Steps for Encoding High Characters (160-255)

1.Start with Code Set Selection:

Code-128 can switch between Code Set A, B, and C. Typically, you start with Code Set B for most alphanumeric data because it covers upper and lower case letters, numbers, and punctuation.

If the data starts with an extended ASCII character (160-255), use Code Set B initially.

2.Insert FNC4 for Extended ASCII:

Insert the FNC4 character before each extended ASCII character. This tells the barcode reader to interpret the following character as an extended ASCII character.

In Code Set B, FNC4 is represented as ASCII 202.

3.Calculate the Code 128 Value:

To get the Code 128 value for characters 160-255, use the formula: Value=ASCII?128\text{Value} = \text{ASCII} - 128Value=ASCII?128

This will map the high characters to a range of 32-127, which are printable characters in ASCII.

Example

Let's encode the string containing the high ASCII characters 160 and 255 in Code-128.

1.Start with Code Set B:

Start with the Start Code B (104 in Code-128).

2.Insert FNC4:

Insert FNC4 (202 in ASCII, which is a specific pattern in Code-128).

3.Encode High Character 160:

Insert the FNC4 (202), followed by the character value: 160?128=32160 - 128 = 32160?128=32. In Code Set B, 32 corresponds to the ASCII space character.

4.Insert FNC4 again:

Insert FNC4 (202).

5.Encode High Character 255:

Insert FNC4 (202), followed by the character value: 255?128=127255 - 128 = 127255?128=127. In Code Set B, 127 corresponds to the DEL character.

Example Barcode Data Sequence

Here's the sequence of values you'd encode in the barcode:

Start Code B: 104

FNC4: 202

Character for ASCII 160: 32 (space)

FNC4: 202

Character for ASCII 255: 127 (DEL)

Checksum Calculation

The checksum for Code-128 is calculated by taking the weighted sum of the start code and all data characters, then taking the modulo 103 of the result.

Final Encoding Steps

1.Start Code B (104).

2.FNC4 (202).

3.Character for ASCII 160 (32).

4.FNC4 (202).

5.Character for ASCII 255 (127).

6.Calculate Checksum.

7.Append Checksum.

8.Stop Code.

By following these steps and using the FNC4 character appropriately, you can encode high ASCII characters (160-255) in a Code-128 barcode.

 

EasierSoft Barcode Label Design & Bulk Printing Software

---- Use Excel Data to Batch Print Barcodes on Label Sheets or Roll Labels  

---- How to use this barcode software

Download:  Free Barcode Software + Barcode Label Designer

Download Free Barcode Software at Softonic

     Download at CNET

Once you obtain a GS1/UPC/EAN barcode, or other barcode type and QR code, you can use our free software to batch print barcode labels onto Roll label paper using a professional label printer, or to batch print barcodes onto Avery 5160 label sheets using a regular laser or inkjet printer. Our software has free and paid versions.

The free version fully meets your needs for batch printing GS1/UPC/EAN barcodes. The paid version can import data from Excel and databases to batch print barcode labels with different values.

How to Start

Input Data

Import Excel Data

Print Barcode

Barcode Format

Label Designer

All Screen Shot

Export Barcode Image

Save Template

Output Word Excel

How to Use & FAQ:

Label Designer - Add new label

Label Designer - Printing

Set the barcode label format to be printed

Other Barcode Label Format Settings

Barcode types supported by this program

Barcode Label Font Settings

Configuring the Barcode Print Rotation

Text Alignment for Barcode Labels

Automatically Adjusting Barcode Width

Text Beneath the Barcode

Configuring Barcode Size

Auto Calculate the Barcode Size

Export Barcode images

Export Barcode Image Format

File Names for Exported Barcode

Resolution of Exported Barcode Images

Fixed Folder for Exporting Barcode

Default Barcode Image Export Format

Print bulk barcodes quickly

Print barcodes to Avery 5160 label

How to bulk Barcode Printing

Sample - Avery 5162 (2x7) Label Sheet

Example: Print barcodes to 5*3cm roll

Example: Print barcodes to 5161 label

Example: Print barcodes to 5162 label

Example: Print barcodes to 5163 label

Example: Print barcodes to 5164 label

Example: Print portrait orientation 5164

Example: Print barcodes to 5167 label

Example: Print barcodes to 5168 label

Example: Print portrait orientation 5168

Example: Print barcodes to 5169 label

Example: Print barcodes to 5660 label

Example: Print barcodes to 5661 label

Example: Print barcodes to 5662 label

Example: Print barcodes to 5663 label

Example: Print barcodes to 5664 label

Example: Print portrait orientation 5664

Example: Print barcodes to 5873 label

Example: Print barcodes to 5874 label

Two ways to import Excel data

Import Excel Data - Pro Edition

Import Excel Data - Std Edition

Import Data from Excel - Detail

Load Data From Excel File

Data Editing Table

Copy Data From Excel

Four ways to input barcode data

Add ASCII Key E

Input Multiple Lines of Text for Barcodes

Highlights

Excel integration: Import data directly from Excel to generate and print barcodes in bulk.

Label designer: Create complex labels with multiple barcodes, text, logos, and shapes.

Batch printing: Print thousands of barcodes at once using standard inkjet/laser printers or professional barcode printers.


Flexible editions:

Standard Edition: Simple batch printing with Excel data.

Professional Edition: Adds command-line automation for workflow integration.

Label Designer Edition: Advanced design features for complex labels.


Why Choose Our Barcode Solutions?

Cost-effective: Free online generator and permanent free desktop version available.

Easy to use: No technical expertise required—just input data and print.

Versatile: Supports nearly all 1D and 2D barcode types, including QR codes.

Trusted: Recommended by CNET and widely downloaded by users worldwide.


Suitable Use Cases

Small businesses and startups needing quick barcode labels for products.

Retailers and online sellers managing inventory with batch barcode printing.

Manufacturers requiring sequential or custom barcode labels for packaging.

Educational and testing environments where barcodes are used for tracking.

 

 

CONTACT

cs@easiersoft.com

If you have any question, please feel free to email us.

 

https://free-barcode.com

 

<<< Back to Directory <<<     Barcode Generator     Barcode Freeware     Privacy Policy