Looking for Help?

Find answers to your questions

NT-1228BL Barcode Scanner Prefix and Suffix Configuration

Prefix and Suffix Configuration #

You can append up to 10 prefixes and/or 10 suffixes to scan data for editing purposes. To set these values, scan a two-digit hexadecimal number (corresponding to ASCII values) by scanning two barcodes. Refer to Table 1 or Table 2 and the Numeric Bar Codes in the appendix. For detailed steps, see the section on Adding a Prefix or Suffix.

You can also hide characters at the beginning, middle, or end of a barcode. After scanning the barcode to set the hide function, scan the two-digit hexadecimal number that represents the length of characters you want to hide (00–FF, e.g., to hide 4 characters, scan 0 and 4). For detailed steps, refer to the section on Hiding Characters in a Barcode.

1、Operation Codes #

                                    Add Prefix

 

 

Add Suffix

 

 

                               Clear All Prefixes

 

 

Clear All Suffixes

 

 

                  Hide Barcode Start Characters

 

 

Hide Barcode Middle Character Start Position

 

 

                 Hide Barcode Middle Characters

 

 

Hide Barcode End Characters

2、Numeric Bar Codes #

For parameters that require specific numeric values, scan the corresponding numeric barcodes.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3、Output Format #

To change the Scan Data Transmission Format, scan one of the barcodes below corresponding to the desired format.

                Default output format (clear format)

 

 

Enable Suffix Output

 

 

                           Enable Prefix Output

 

 

Enable Hide Barcode Start Characters

 

 

           Enable Hide Barcode Middle Characters

 

 

Enable Hide Barcode End Characters

 

 

 

4、Steps for Adding a Prefix or Suffix #

  1. If prefix/suffix output is not enabled, scan the output format barcode to enable it.
  2. New characters will be added after any existing prefix/suffix. If you want to discard the old prefix/suffix before setting a new one, first scan "Clear All Prefixes/Suffixes."
  3. Scan the "Add Prefix" or "Add Suffix" barcode.
  4. Determine the hex value from the ASCII Conversion Chart for the prefix or suffix you wish to add.
  5. Scan the two-digit hex value from the Programming Chart.
  6. Repeat Steps 4 and 5 for each character in the prefix or suffix.

Example:

  • To add "Ctrl+A" as a prefix, scan 'add prefix', '9', '7', '4', '1'.
  • To add "Ctrl+Alt+A" as a suffix, scan 'add suffix', '9', '7', '9', '9', '4', '1'.

5、Steps for Hiding Characters in a Barcode (Start/Middle/End) #

  1. Scan the "Hide Barcode Start / Middle Start / Middle Length / End Characters" barcode.
  2. Determine the hex value for the length of characters you want to hide (e.g., to hide 4 characters, scan 0 and 4; to hide 12 characters, scan 0 and C).
  3. Scan the two-digit hex value from the Programming Chart.
  4. Scan the output format barcode to enable or disable the hide character function.

6、One-Step Configuration for Prefix/Suffix/Hide #

Note: This section provides a way to generate a barcode for scanning, or to send a serial command.

Format: "$DATA#ncllxx#"

Where:

  • n: 1 for Suffix, 2 for Prefix, 3 for hiding characters at the end of the barcode, 4 for hiding characters in the middle, 5 for hiding characters at the start, 7 for replacing characters.
  • c: Code ID, currently supports 0 (all barcode types).
  • ll: Length in hexadecimal (01–0A for prefix/suffix, 01–FF for hide, 01–05 for replace).
  • xx: ASCII value, represented as "\x" + two characters (0–9, A–F).

Examples:

  • "$DATA#1005abcd\x03#" adds a suffix of 0x05 characters "abcd" plus 0x03.
  • "$DATA#200ANETUM12345#" adds a prefix of 0x0A characters "NETUM12345".
  • "$DATA#3008#" hides the last 0x08 characters of the barcode.
  • "$DATA#40050A#" hides 0x0A characters starting from the 0x05th character in the middle of the barcode.
  • "$DATA#5011#" hides the first 0x11 characters of the barcode.
  • "$DATA#7001\x1D02GS#" replaces the GS (0x1D) character with "GS".
  • "$DATA#7002NT01Z#" replaces "NT" with 'Z'.

7、Character Replacement Operation #

Format: "$DATA#70+ replaced length + replaced char + data length + data#"

The combined length of the replaced and replacement characters should not exceed 6. Supports replacing 1–6 characters with 0–5 characters.

                               Read replace set

 

 


Clear replace set

 

 

Examples:

                            To replace the non-printable GS (0x1D) character with "GS":

 

 

 

              To replace LF (0x0A) with CR (0x0D): "$DATA#7001\x0A01\x0D#"

8、Extra Terminal Code Configuration #

Note: This terminal character is independent of the suffix or prefix of the decoding module, allowing for quick setup when the decoding module has no suffix.

                                 None (default)

 

 

 

CR (\r)

 

 

 

                                        TAB (\t)

 

CRLF (\r\n)

 

                                       LF (\n)

Updated on 17 Oct 2024