Ask Your Question
1

What is the procedure for generating a GS1-128 barcode in ZPL that includes a check digit?

asked 2023-04-30 05:34:37 +0000

lakamha gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2023-04-30 05:43:01 +0000

david gravatar image

To generate a GS1-128 barcode in ZPL that includes a check digit, follow these steps:

  1. Start by setting the barcode type to GS1-128 using the ^BY command.

^BY3,3,100

  1. Next, set the data to be encoded using the ^FD command.

^FD(01)04200000000888(21)ABCDEFGHIJ(10)123456^FS

In this example, the data consists of three GS1 Application Identifiers: (01) for the Global Trade Item Number (GTIN), (21) for the Serial Shipping Container Code (SSCC), and (10) for the Lot Number. The data itself is just a sample set of values.

  1. To include a check digit, add the ^FH command and set the value to Y.

^FH Y

This will automatically calculate and add the check digit to the barcode when it is printed.

  1. Finally, print the barcode using the ^BX command.

^BXN,10,200 ^FD(01)04200000000888(21)ABCDEFGHIJ(10)123456^FS

This will generate a GS1-128 barcode with the included check digit.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-04-30 05:34:37 +0000

Seen: 7 times

Last updated: Apr 30 '23