Skip to content

Instantly share code, notes, and snippets.

@tresf
Last active October 21, 2022 03:40
Show Gist options
  • Save tresf/dba5496db94082d22475953a3cd32a1c to your computer and use it in GitHub Desktop.
Save tresf/dba5496db94082d22475953a3cd32a1c to your computer and use it in GitHub Desktop.
FGL Printing Examples

FGL Samples

The FGL scripting language specification is copyright Boca Systems, Inc., 1065 South Rogers Circle , Boca Raton, Florida 33487

Scroll down for working examples.

See https://qz.io (Wiki, Raw Printing) for how to send these commands from a web page.

image

FGL Cheat Sheet

This cheat sheet is a mirror provided from ncsoftware.

Command Description
<RCy,x> Row/Column command. x,y are numbers, such as 3,45
<NR> No Rotation Printing (0°)
<RR> Rotate Right (+90°)
<RU> Rotate Up (+180°)
<RL> Rotate Left (-90°)
<F1> Font 1 Characters (5x7)
<F2> Font 2 Characters (7x10)
<F3> OCRB Characters (17x31)
<F4> OCRA Characters (5x9)
<F6> Large OCRB Characters (30x52)
<F7> OCRA Characters (15x29)
<F8> Courier Characters (18x30)
<F9> Small OCRB Characters (13x20)
<F10> Prestige Characters (25x41)
<F11> Script Characters (25x49)
<F12> Orator Characters (46x91)
<F13> Courier Characters (20x40)
<HWx,y> Font Height / Width Command, x is Height Multiple, y is Width Multiple
<BSx,y> BoxSize command. x,y are numbers, such as 3,45
<BXr,c> Draw Box command. r,c are numbers, such as 150,450
<VXr> Draw Vertical Line. r is a number, such as 45
<HXc> Draw Horizontal Line. c is a number, such as 45
<LT#> Line Thickness command. # is a number, such as 5
<SPy,x> Starting Point for Logos Only. x,y are numbers, such as 3,45
<LD#> Print Downloadable Logo. # is a number such as 2
<CB> Clear Buffer command. Clears any current ticket info.
<RE#> Repeat command, where # can be from 1 to 9999.
<p> Print command.
<z> Print and Eject command.
<h> Print and Hold Ticket Image
<r> Print No Cut Hold Image command.
<q> Print No Cut command.
<PC> Print Ticket Count command.
<TC1234567> Load Ticket Count. 1234567 is the number to load. More Info
<EI> Enable Inverse Printing
<DI> Disable Inverse Printing
<t> Transparent Mode ON
<n> Transparent Mode OFF
<Xn> Barcode Expansion, where n is a number like 2
<BI> Barcode Interpretation
<Uln> UPC Ladder Barcode, where n is barcode height
<ELn> EAN-13Ladder Barcode, where n is barcode height
<NLn> Code 39 Ladder Barcode, where n is barcode height
<FLn> 2 of 5Ladder Barcode, where n is barcode height
<CLn> USS Codabar Ladder Barcode, where n is barcode height
<OLn> Code 128 Ladder Barcode, where n is barcode height
<UPn> UPC Picket Fence Barcode, where n is barcode height
<EPn> EAN-13 Picket Fence Barcode, where n is barcode height
<NPn> Code 39Picket Fence Barcode, where n is barcode height
<FPn> 2 of 5 Picket Fence Barcode, where n is barcode height
<CPn> USS Codabar Picket Fence Barcode, where n is barcode height
<OPn> Code 128 Picket Fence Barcode, where n is barcode height
<AXB#> Bar Code Ratio Adjust
<G#> Graphics Bits Command
<g#> ASCII Graphics Command
<LO#> Print Permanent Logo
<RO#> Dot Row Offset
<PL#> Printing Length Command
<ME> CRT Message Enable
<MD> CRT Message Disable
<S1> Status Request
<S2> Status Request
<S3> Status Request
<S5> No Status
<F3>
<RC10,10>Serial Number = <VA1>
<RC60,10>Firmware = <VA7>
<RC110,10>Special Head = <VA18>
<RC160,10>Font File = <VA2>
<RC210,10>Printer Type = <VA11>
<RC260,10>DPI = <VA17>
<RC310,10>Expansion Mem = <VA50>
<RC360,10>Path Type = <VA19>
<RC410,10>Ticket Type = <VA13>
<RC460,10>Shuffle Mode = <VA89>
<RC510,10>Font Encoding = <VA58>
<RC10,625>Status Return = <VA14>
<RC60,625>Print Speed = <VA12>
<RC110,625>USB Enabled = <VA34>
<RC160,625>USB Dev Type = <VA111>
<RC210,625>Ether Enabled = <VA81>
<RC260,625>IP Address = <VA82>
<RC310,625>MAC Address = <VA83>
<RC360,625>BiDir Parallel= <VA32>
<RC410,625>Serial Rate = <VA10>
<RC460,625>BlueT Enabled = <VA112>
<RC510,625>WiFi Enabled = <VA113>
<p>
<TRE><TT4><F8><HW1,1><NR><RC150,50>€ ä ö ü ß<p>
<TRE><TT4><F13><HW1,1><NR><RC150,50>€ ä ö ü ß<p>
<RU><LT4><TTF8,10><HW6,6><SD5><RC500,1700><FL11><X4>:902141530292:
<RC950,1510>AVIRJB AUGUST WILSON THEATRE RPRTAVIRJB051615D<RC888,1510>051615D 245 W. 52ND ST. (BTWN B'WAY & 8TH)
<RC826,1510> <HW6,12>JERSEY<HW6,6> <HW6,12>BOYS <HW6,6> 902141530292
<RC764,1510>$137.00 CONTAINS STRONG LANGUAGE <HW6,12>$137.00<HW6,6> *
<RC702,1510>TA <HW6,12>2:00 PM<HW6,6> <HW6,12>SAT<HW6,6> TAAMEX TA<RC640,1510>030115 <HW6,12>MAY 16, 2015<HW6,6>
<RC578,1510> XAWEE1539-0301-Y52W STAIR <HW6,12>2<HW6,6>
<RC516,1510>ORCHO *INCL $2.00 FACILITY FEE <HW6,12>ORCHO<HW6,6>
<RC454,1510>O 21 CELLA, JOHN <HW6,12>O<HW6,6> <HW6,12>21<HW6,6><q>
<RU><LT4><RTF7,10><HW6,6><SD5><RC500,1700><FL11><X4>:902141530292:
<RC950,1510>AVIRJB AUGUST WILSON THEATRE RPRTAVIRJB051615D
<RC888,1510>051615D 245 W. 52ND ST. (BTWN B'WAY & 8TH)
<RC826,1510> <HW6,12>JERSEY<HW6,6> <HW6,12>BOYS <HW6,6> 902141530292
<RC764,1510>$137.00 CONTAINS STRONG LANGUAGE <HW6,12>$137.00<HW6,6> *<RC702,1510>TA <HW6,12>2:00 PM<HW6,6> <HW6,12>SAT<HW6,6> TAAMEX TA
<RC640,1510>030115 <HW6,12>MAY 16, 2015<HW6,6><RC578,1510> XAWEE1539-0301-Y52W STAIR <HW6,12>2<HW6,6>
<RC516,1510>ORCHO *INCL $2.00 FACILITY FEE <HW6,12>ORCHO<HW6,6>
<RC454,1510>O 21 CELLA, JOHN <HW6,12>O<HW6,6> <HW6,12>21<HW6,6><p>
<RU><LT4><TTF8,10><HW6,6><SD5><RC500,1700><FL11><X4>:902141530292:
<RC950,1510>AVIRJB AUGUST WILSON THEATRE RPRTAVIRJB051615D
<RC888,1510>051615D 245 W. 52ND ST. (BTWN B'WAY & 8TH)
<RC826,1510> <HW6,12>JERSEY<HW6,6> <HW6,12>BOYS <HW6,6> 902141530292
<RC764,1510>$137.00 CONTAINS STRONG LANGUAGE <HW6,12>$137.00<HW6,6> *
<RC702,1510>TA <HW6,12>2:00 PM<HW6,6> <HW6,12>SAT<HW6,6> TAAMEX TA
<RC640,1510>030115 <HW6,12>MAY 16, 2015<HW6,6>
<RC578,1510> XAWEE1539-0301-Y52W STAIR <HW6,12>2<HW6,6>
<RC516,1510>ORCHO *INCL $2.00 FACILITY FEE <HW6,12>ORCHO<HW6,6>
<RC454,1510>O 21 CELLA, JOHN <HW6,12>O<HW6,6> <HW6,12>21<HW6,6><q>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment