Programming guide friendly ghost language


Quick Response 2D Bar Code



Download 1.07 Mb.
Page9/27
Date29.01.2017
Size1.07 Mb.
#11977
1   ...   5   6   7   8   9   10   11   12   ...   27

Quick Response 2D Bar Code



Quick Response Bar Codes - <QR#,#,#,#>{barcode text}
All of the Quick Response (QR) bar code command parameters are optional. If omitted default values will be used. The QR command and the barcode text is all that is required. For example the command {Boca Systems} will create a Quick Response 2D barcode for the text “Boca Systems” using all default values. Experimentation with the parameters is the easiest way to determine the effect of each.
Point Size Range 3 to 16 Default 6

Apply Tilde Range 0 or 1 Default 0

Encode Mode Range 0 – 2 Default 0

Error Correction Level Range 0 – 3 Default 0

{Barcode text} ASCII Text
Apply Tilde - When Apply Tilde is equal to 1, the tilde (~) may be used to recognize some special characters in the input data. If set to 1, you can use the format ~ddd if you want to specify the ASCII code of the character to be encoded. Default is off. For example, if you enter the following text in the Data field: ~029AB you will actually be encoding GSAB where GS is a delimiter ASCII 29 character. This can be used in a single string to encode GS and RS characters (GS = ASCII 29 and RS = ASCII 30). Other commonly used ASCII codes are ~009 for a tab and ~013 which is a return function. These are useful when encoding multiple fields in a single symbol.

Encode Mode - The data represented in the symbol may be compressed by changing the encoding mode, if certain text is being encoded. Valid values are:



0 for Byte

1 for Alpha-Numeric

2 for Numeric
Error Correction - The level of Reed Solomon error correction level placed in the symbol. More error correction creates a larger symbol that can withstand more damage. Valid values are:
0 for Level M, 15% recovery capacity

1 for Level L, 7% recovery capacity

2 for Level H, 30% recovery capacity

3 for Level Q, 25% recovery capacity
NOTE:
The FGL command is used in FGL to manipulate height/width ratios of item printed. For the Quick Response barcodes to print correctly, a will used exclusively. There are fourteen Quick Response barcode fonts available. They have a point size of 3 to 16. If no point size is specified then the default used is 6 point.

Examples:
The example below will print an 8 point QR barcode. The command will not be used for the barcode, but can be used for other text. The barcode will appear on the ticket at 150,150 without rotation.
This is a QR text test{This is a barcode test}

The example below will use all default values. It will print a 6 point QR barcode. It will print at the current X,Y coordinates in the current rotation mode.


{The quick brown fox jumped over the lazy dog}

Quick Response Bar Code Versions - <QRV2>, <QRV7> and <QRV15>
The default QR barcode density is version 7. To print with a less dense barcode try version 2. To print with a denser barcode try version 15. To switch between the two available choices use the command as shown in the example below. The command is available in firmware versions FGL46G76, FGL46M44 & FGL46N6 (or newer).
Place the following FGL commands into text file such as qrtest.txt. Then send qrtest.txt to the printer.


Ver 2

{This is a QR Barcode test.}

{www.bocasystems.com}



Ver 7

{This is a QR Barcode test.}

{www.bocasystems.com}



Ver 15

{This is a QR Barcode test.}

{www.bocasystems.com}
Aztec 2D Bar Code
Aztec Bar Codes - <AZ#,#>{barcode text}
Both of the Aztec (AZ) bar code command parameters are optional. If omitted default values will be used. The Aztec command and the barcode text is all that is required. For example the command {Boca Systems} will create an Aztec 2D barcode for the text “Boca Systems” using all default values. Experimentation with the parameters is the easiest way to determine the effect of each.
Apply Tilde Range 0 or 1 Default 0

Error Correction Level Range 5 – 95 Default 21

{Barcode text} ASCII Text
Apply Tilde - When Apply Tilde is equal to 1, the tilde (~) may be used to recognize some special characters in the input data. If set to 1, you can use the format ~ddd if you want to specify the ASCII code of the character to be encoded. Default is off. For example, if you enter the following text in the Data field: ~029AB you will actually be encoding GSAB where GS is a delimiter ASCII 29 character. This can be used in a single string to encode GS and RS characters (GS = ASCII 29 and RS = ASCII 30). Other commonly used ASCII codes are ~009 for a tab and ~013 which is a return function. These are useful when encoding multiple fields in a single symbol.
Error Correction - The level of Reed Solomon error correction level placed in the symbol. More error correction creates a larger symbol that can withstand more damage.
NOTE:
The FGL command is used in FGL to manipulate height/width ratios of item printed. For the Data Matrix barcodes to print correctly, a will used exclusively. There are fourteen Aztec barcode fonts available numbered from to . The default is . They have a point size of 4 to 24.

Examples:
The example below will print a 6 point Aztec barcode known as . The command will not be used for the barcode, but can be used for other text. It will appear on the ticket at 150,150 without rotation.
This is a Aztec text test{This is a barcode test}

The example below will use all default values. It will print a 2 point AZ barcode known as . It will print at the current X,Y coordinates in the current rotation mode.


{The quick brown fox jumped over the lazy dog}


Download 1.07 Mb.

Share with your friends:
1   ...   5   6   7   8   9   10   11   12   ...   27




The database is protected by copyright ©ininet.org 2024
send message

    Main page