Neu: TFORMer Designer V9.2 — Etiketten und Formulare einfach gestalten und drucken. Produkt entdecken →

H.B. Fuller Amazon BMW Pfizer Bosch Bayer Siemens GS1 Austria Solution Partner
Code Snippet: How Can I Create a Timestamp for a Unique Package ID?

Using timestamps is a workaround if you cannot use persistant serial fields. The following expression creates a 12-digit alphanumeric timestamp for a unique package ID (incremented with each print job).

CStr(Chr(65 + Year(Now()) % 26)) +
CStr(Chr(65 + CLng(Format(Now(), "MM")) - 1)) +
CStr(Chr(47 + CLng (IIF (Day(Now()) >10, 7, 0)) + Day(Now()))) +
CStr(Chr(65 + Hour(Now()))) +
Format(Now(), "mmss") +
Format(PrintedItems, "0000")
  • Converts year, month, hour to A-Z to save space.
  • Converts day to A-Z, 0..7
  • Includes the actual label copy as a 4 digit counter

Put this expressions into a calculated field like clPackageID (data type Text). If you use individual label copies calculate it per Record Copy.

8 Digit Version

With 8 digits, we can remove the year and the seconds and limit the serial part to 3 digits.

CStr(Chr(65 + CLng(Format(Now(), "MM")) - 1)) +
CStr(Chr(47 + CLng (IIF (Day(Now()) >10, 7, 0)) + Day(Now()))) +
CStr(Chr(65 + Hour(Now()))) +
Format(Now(), "mm") +
Format(PrintedItems, "000")

This auto-package id consists of a 5-digit timestamp (month/day/hour/minute) followed by a 3-digit sequence number. That means the number of items/pallets in one job is limited to 999 and the minimum time between print jobs must be 1 minute. The package id can repeat itself every year.

Im Help Center ansehen ›

Wie erstelle ich einen Data Matrix PPN- oder NTIN-Code?

Die Datenstrukturen des IFA PPN und GS1 NTIN Codes sind mit einer Data Matrix ECC200 Symbologie (ISO / IEC 16022) codiert. Die IFA-Version verwendet den Data Matrix im Macro 06-Modus (ASC Format), während die GS1-Version auf Data Matrix mit FNC1 basiert. Ein spezifischer Bereich für die Zellengröße und Modulbreite wurde ebenfalls definiert.

Weitere Informationen: Codieren von PPN- und NTIN-Nummern (Deutsch)

DFI PPN Code (ASC Format)

Wählen Sie Data Matrix und stellen Sie das Data Matrix-Format auf Macro-06 wie unten angeführt. Alternativ (sofern verfügbar) wählen Sie PPN als separaten Barcodetyp.

Library/DLL:      BCSet_DM_Format (pBarCode, eDMPr_Macro06)
TBarCode/X:     --DMformat=4

Das fügt folgenden Header hinzu: "[)>" + RS + "06" + GS and a trailer of RS + EOT to the encoded data.

Benutzerdaten (Beispiel):

9N111234567842\x1d1T1A234B5\x1dD151231\x1dS1234567890123456

Erklärung:

9N ..... PPN
1T   ... Batch (LOT)
D     ... Expiry date
S     ... Serial Number
\x1d ... GS (group separator)

Escape-Sequenzen müssen aktiviert sein! Ein vorkonfiguriertes Barcode Studio BC File finden Sie hier.

Weitere Informationen zum IFA PPN:

GS1 NTIN Code

Wählen Sie Data Matrix und stellen Sie das DataMatrix-Format auf GS1 / EAN. Alternativ (sofern verfügbar) wählen Sie NTIN als eigenen Barcodetyp. Das fügt einen FNC1 zur ersten Codewort-Position hinzu. Verwenden Sie dann Application Identifier wie in der GS1-Spezifikation angegeben.

Weitere Informationen zu GS1 NTIN:

Im Help Center ansehen ›

Online-Anfrage

Stattdessen eine E-Mail schreiben

Für Support oder Vertrieb: Bearbeiten Sie Ihre Nachricht und senden Sie sie selbst. Vertriebsanfragen werden intern weitergeleitet. Empfänger: support@tec-it.com

Unvollständige Übernahme: Derzeit können nur Vorname, Nachname und E-Mail übernommen werden. Andere Antworten, vollständige Testlizenzschlüssel und Dateien werden nicht übernommen. Ergänzen Sie unten Ihre Frage, lassen Sie vollständige Lizenzschlüssel weg und hängen Sie Dateien selbst im E-Mail-Programm an.