

* The identifier 91 must contain between 1 and 90 characters. (01) content with fixed size (91) content with variable sizes (01) content with fixed size (91) content with variable size The following example will help you to understand the difference between those two modes: In this mode, it is highly recommended to use the table C if you use only numbers in your barcode. In strict mode, separators are added only if the content of your data doesn't cover the maximum allowed. In legacy mode, separators are added between each identifier. There are two standards for the GS1-128, the strict and legacy modes. If you didn't indicate the checksum in the data and it is mandatory, it will be automatically calculated.Įx: $code->parse('011234567891234') will give you: (01 )1234567891234 3 * Note about ~F1: If you provide the data in a string, you have to provide a separator at the end of your identifier if this one doesn't cover the maximum and is not positioned at the end of the code. There are different ways to send the data of your barcode to the method parse(), for instance, the following code:
#Gsi barcode generator install
To work properly, you should install the package barcode-bakery/gs1ai.
#Gsi barcode generator code
Since the GS1 identifiers change often, we have separated the code in a separate package. In order to facilitate the reading, the identifiers are surrounded by parentheses in the label those parentheses are not encoded in the barcode. It can contain multiple identifiers, however it mustn't be larger than 48 characters, this limit excludes the mandatory character ~F1. The GS1-128 must start with the function 1 (~F1). This code is an international standard which provides a way to exchange data between producers and distributors. See guidelines above for details.The GS1-128 code is a normalization of the standards from based on the BCGcode128. Scanner and apps that are fully compatible with Data Matrix GS1 will transmit the sequence "]d2" at the beginning of the symbol and replace FNC1 characters within the data with the group separator "GS".

Looking at the raw codewords, we see that the FNC1's code of 232 (0xe8) has indeed been recognized correctly. While the content has been scanned correctly, the FNC1 character at the start of the symbol is simply displayed as an unknown character ("?"). Here's the code from above scanned with Google Zxing: not transmitted to the application by the scanner) or displayed as non printable characters. However, the inserted FNC1 characters may either be swallowed (i.e. Since no more data follows, the FNC1 can be omitted.Ĭompare to a Code GS1-128 with the same data content:Īny barcode scanner, imager or scanner app that is compatible with vanilla Data Matrix will also scan Data Matrix GS1. The batch number is actually a variable length field which has to be delimited by a FNC1 codeword. 2019 (AI 17, format YYMMDD) and a batch number (AI 10). The data is comprised of the 14-digit GTIN (AI 01), an expiration date of 25 Nov. Sample Data Matrix GS1 Data Matrix GS1 sample barcode encodes "(01)03453120000011(17)191125(10)ABCD1234" which is the example data used in the GS1 guidelines mentioned above. Additionally, the GS1 standards body has published guidelines for implementing Data Matrix GS1. The relevant base standard is ISO/IEC 16022-2006 and can be obtained from Note that Datamatrix GS1 is usually printed without human readable text.ĭata Matrix GS1 Specifications Data Matrix GS1 is standardized. The parentheses are not encoded into the barcode.ĭata Matrix GS1 is the preferred choice for encoding GS1 data when more than 40 characters are to be encoded or space constraints are an issue see below for a size comparison. QR code Codabar Code 11 Code 39 Code 93 Code 128 GS1-128 (UCC/EAN-128) EAN-8 EAN-13 ISBN Interleaved 2 of 5 Standard 2 of 5 MSI Plessey UPC-A. As with GS1-128, the AIs are separated with parentheses when entering data, e.g. As such, Data Matrix GS1 is constructed in the same way as its linear counterpart from application identifiers (AI) and data content. Based on the Data Matrix ECC 200 specifications, Data Matrix GS1 is the 2D variant of Code GS1-128.
