GS1 데이터 매트릭스 코드 사용하기
GS1 표준은 데이터 매트릭스 코드의 내용에 시멘틱 식별자를 추가합니다. 이러한 식별자는 쉽고 일관된 방식으로 해석됩니다.
GS1 준수 콘텐츠의 구조는 다음과 같습니다:
]d2[GS1]{Id1}{Value1}[GS1?]{Id2}{Value2}…
위치:
□ | "] d2"는 GS1 호환 스트림을 식별하는 문자열이며, |
□ | [GS1]은 GS1 이스케이프 문자 (0x1d)이며, |
□ | [GS1?] means that the [GS1] escape character is present there if the previous application identifier has a variable size value, |
□ | {Id}는 애플리케이션 식별자이며, |
□ | {Value}는 해당 식별자와 연결된 값입니다. |
예제
문자열:
]d2[GS1]10GR-1-GNU[GS1]11180112151901012112345
는 다음과 같이 해석됩니다:
]d2 |
[GS1] |
10 |
GR-1-GNU |
[GS1] |
11 |
180112 |
15 |
190101 |
21 |
12345 |
|
|
Id1 |
Value1 |
|
Id2 |
Value2 |
Id3 |
Value3 |
Id4 |
Value4 |
● | The first Id is 10, this means the first value is the batch / lot number whose size is at most 20 chars. |
□ | Thus, the product has a batch / lot number of GR-1-GNU. |
□ | As batch / lot numbers are of a variable size, a separator is required after GR-1-GNU. |
● | The second Id is 11, this means the second value is the production date which always consists of 6 digits. |
□ | The product has a production date of 180112 (12 of January 2018). |
□ | As production dates have a fixed size, no group separator is required after it. |
● | The third Id is 15, this means the third value is the “best before date” which always consists of 6 digits. |
□ | The product has a “best before date” of 190101 (1st of January 2019). |
□ | As “best before dates” have a fixed size, no group separator is required after it. |
● | The fourth Id is 21, this means the fourth value is the serial number whose size is at most 20 chars. |
□ | The product has a serial number of 12345. |
□ | Altough serial numbers are of variable size, 12345 is the last part of the decoded string, so there is no group separator after it. |
2 | 자세한 내용은 https://www.gs1.org/를 참조하십시오. |
● | Use EGs1Translator::GetHumanReadableCode to get the human-readable version: |
(10)GR-1-GNU(11)180112(15)190101(21)12345