In This Article

GS1128Symbology Class

Represents a barcode symbology implementation for GS1-128 (formerly known as UCC/EAN-128).

public class GS1128Symbology : Code128Symbology
Inheritance:
object ObservableObjectBase BarcodeSymbologyBase LinearBarcodeSymbologyBase Code128Symbology object

Remarks

GS1-128 is an application standard of Code 128 defined by GS1. It uses the Code 128 barcode specification with the addition of a mandatory FNC1 character immediately after the start character, which identifies the barcode as GS1-128.

GS1-128 encodes data using Application Identifiers (AIs) that define the type and format of the data that follows. Common AIs include:

  • AI (01) — GTIN (Global Trade Item Number), 14 digits.
  • AI (10) — Batch/lot number, variable length up to 20 characters.
  • AI (17) — Expiration date, 6 digits (YYMMDD).
  • AI (21) — Serial number, variable length up to 20 characters.
  • AI (3100)–(3169) — Net weight in various units.

The value should be specified using parenthetical AI notation, such as (01)09521234543213(17)250101(10)ABC123. The parentheses are not encoded into the barcode but are used to identify the Application Identifiers and their data.

FNC1 characters are automatically inserted as separators between variable-length AI data fields where required. Fixed-length AIs do not need FNC1 separators since the scanner knows when the data ends based on the AI's defined length.

The value can also be specified in raw format using the ASCII Group Separator character (GS, U+001D) as the FNC1 field separator. Raw format is suitable for programmatic use where the caller manages AI structure directly.

Constructors

GS1128Symbology()

Initializes an instance of the class.

public GS1128Symbology()

Properties

ExampleValue

An example value that is valid for the symbology.

public override string ExampleValue { get; }

Property Value

string

Name

The name of the symbology.

public override string Name { get; }

Property Value

string

Methods

Validate(string)

Validates the specified value.

public override BarcodeValidationResult Validate(string value)
Parameter Type Description
value string

The value to validate.

Returns

BarcodeValidationResult:

A BarcodeValidationResult containing the validation result.

Inherited Members

Extension Methods