New User? Sign Up  |  Sign In  |  Help
Barcode support and
tutorials from IDAutomation
and the community.
Click for the BBB Business Review of this Computers Hardware, Software & Services in Tampa FL
Resolved Questions

Why does my GS1 barcode read as GS and not FNC1 after the first element string?

I am using your product to generate GS1-DataMatrix barcodes for my customer.

Here is the data:
(01)0901634940641(10)10014057(240)66081223

I encoded it as:
~10109016349406411010014057~124066081223

It scans as:
]d20109016349406411010014057<GS>24066081223 in your Scanner ASCII Decoder

It is not putting the FNC1 before the 240 Application Identifier. My customer says it needs to have the FNC1 and not the <GS>

Here is the report:
image

It is not adding the FNC1, it is adding the <GS>.


12-19-14     9.8 year(s) ago    

  Report Abuse

 

Ben

Best Answer

Updated: 1/2022

For testing purposes, IDAutomation offers the Barcode Decoder App. This app is particularly useful in verifying GS1 data and parsing element strings.

The first AI (1) will always have the decode as ]d2 because it is a flag to the reader/application that it is a GS1 barcode. Because the second AI (2) element string is variable and another variable length element string comes after it, it is not required to have a separator. However, because the third AI(3) element string is variable (and the previous element string is variable), it will include the FNC1 encode which is always interpreted as a separator <GS>. This is what it means when a document refers to the two uses of the FNC1. The first position will decode as ]d2 (for Data Matrix) or ]C1 (for Code 128). The second use is when it is decoded within the second or subsequent element strings; it appears as the GS.

image

View page 22 of the GS1 document. The illustration requires the FNC1 encode which is interpreted as a separator. Separators occur after the very first element string. Therefore, when the FNC1 is used as a separator, the scanner must transfer the FNC1 character as a field separator <GS>.

The FNC1 only means function code, it is not specific to <232> or ]d2. This just happens to be the identifying characters that appear for the very first AI element string (in the application interpretation and scanner interpretation). Any other AI element strings that require an FNC1 encode will act as a separator between two element strings. In your case, you have two variable element strings. The only way the scanner or application can determine that it's not one continuous string is by inserting the GS separator which is still an FNC1.

Since the very first AI element string is fixed the scanner/application knows that the second AI element string will not be confused with the first. The second element string does not require an FNC1 encode. However, the next element string (which is variable) will require it. Therefore, when entering the third AI element string it requires the FNC1 (which is only a function code). Since it is not the first in the data, it will be interpreted as a GS which is mentioned in the PDF.




Additional Resources:

GS1 DataMatrix: FNC1 versus GS as the Variable-Length Field Separator Character

About Encoding the FNC1

Posted 9.8 year(s) ago

(0)
(0)
  Report Abuse
 
Find Interesting
 
Email to Others
 
Bookmark
 
Subscribe to Answer Alert
No comments yet.     Be the first to comment.

Email this question link to friends
You must enter an email address, if name is entered or vice-versa for each friend.
Friend #1 -
Friend #2 -
Friend #3 -
Friend #4 -
Friend #5 -
  Your comment on this question
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allows to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must starts with "http://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always starts with " http:// ")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 Characters are allowed. Current Count: 0
  Your comment on this answer
  |         |  
bold  italic  underline  strike       big  small       superscript  subscript 
  Allow you to add a link. Added links would only be converted to actual clickable link, when the domain of the link is white-listed by administrator.
Caption :
Link URL :
(Must start with "http://" or "https://")
Add  |   Cancel
  Allow to insert an image. Must be among the following file types - *.jpg, *.gif, *.png & *.bmp.
Image Url :   Upload New
(Image url must always start with "http://" or "https://")
Width : pixels
(Must not be greater than 450px. Enter 0px for no resize)
Add  |   Cancel
  Allow to insert YouTube video. Insert the video embed code.
Embed Code :
Add  |   Cancel
Up to 5000 characters are allowed. Current Count: 0

You may answer and comment on any thread according to the Terms and Conditions.

 © Copyright 2021 IDAutomation.com, Inc., All Rights Reserved. Legal Notices.

 Barcode Fonts | Components | Scanners | Support | Contact Us
Training Videos on YouTube Join us on Google Plus Join us on LinkedIn Follow us on Twitter Like us on Facebook