LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Epson ESC/POS Printer commands

HELP....

 

I am trying to get an Epsom POS printer to work.

 

I have managed the basics, like printing text to it, no problem. i have even managed to get line feed n lines and cut to work.

 

But, i can not seem to get anything else. i want to print a barcode and also print in red (Colour 2). the manual has examples, but i am not sure how to convert them and send them to the printer.

 

The barcode code looks like this - 

 

PRINT #1, CHR$(&H1D);"h";CHR$(80); ← Set height
PRINT #1, CHR$(&H1D);"f";CHR$(0); ← Select font

PRINT #1, CHR$(&H1D);"H";CHR$(2); ← Select print position
PRINT #1, CHR$(&H1D);"k";CHR$(2); ← Print bar code
PRINT #1, "496595707379";CHR$(0);
PRINT #1, CHR$(&HA);

 

then there is the colour change example - 

 

PRINT #1, CHR$(&H1D);"(N";CHR$(2);CHR$(0); Color 1 Color 2
PRINT #1, CHR$(48); CHR$(49);← Set character color 1
PRINT #1, "Color 1";
PRINT #1, CHR$(&H1D);"(N";CHR$(2);CHR$(0);
PRINT #1, CHR$(48); CHR$(50);← Set character color 2
PRINT #1, "Color 2";

 

Programming guide is called "Programming manual APG_1005_receipt.pdf"

 

Has anyone had any success with this? please share....

 

Attached code will print, then feed 10 lines, then cut. not tidy, its a work in progress.

 

Any and all help gratefully received.

0 Kudos
Message 1 of 3
(2,885 Views)

Hi Dom_Peall,

 

There are two potential ways to interact with a printer:

Regards,

Vilius

0 Kudos
Message 2 of 3
(2,775 Views)

thanks.... but I was kinda hoping for some actual help on converting the VB code. this just about sums up my experience with my support.... that I am paying for. google was more help, and its free.

 

I wont be renewing 

0 Kudos
Message 3 of 3
(2,753 Views)