ESC/POS Customer Display source code

Technical assistance & information for projects

ESC/POS Customer Display source code

Postby Neo » Sat Nov 28, 2009 12:44 am

Attachments
CD5220_Manual.pdf
(663.39 KiB) Downloaded 3207 times
main-2.jpg
main-2.jpg (10.11 KiB) Viewed 24923 times
User avatar
Neo
Site Admin
Site Admin
 
Posts: 2613
Joined: Tue Jul 14, 2009 8:37 pm
Cash on hand: 221,227.50
Bank: 15,536,454.00
Location: Colombo/London
Medals: 2
EC_Bronze_Star (1) EC_Achievment (1)

Invitations sent: 94
Registered friends: 12
Highscores: 13
Reputation point: 74
Lieutenant

Customer Display Command in VB.NET

Postby engengcode » Fri Dec 11, 2009 1:31 am

can someone give me a code for VB.Net that make my text message in pole/customer display scrolling from right to left.

this is my code for writing text message in pole display, but i dont know how to make it scroll from RIGHT to LEFT

serialport1.portname = "COM1"
serialport1.open
serialport1.write("WELCOME TO OUR STORE")

thank you...
User avatar
engengcode
 
Posts: 1
Joined: Thu Dec 10, 2009 8:48 am
Cash on hand: 111.40

Invitations sent: 0
Registered friends: 0
Reputation point: 0
Lance Corporal

Re: ESC/POS Customer Display source code

Postby Neo » Fri Dec 11, 2009 7:41 am

I can't remember whether scrolling is possible in both directions. You may find it in the manual. If scrolling is not possible to the direction you want, you may have to do it using code. (See print commands)

To do standard scrolling use following procedure.
First call startScr to start scrolling. Then call printScr within a timer.
(that's about scrolling two messages in both lines, you can change it as you want)
You will have to do a simple conversion to VB.Net.
User avatar
Neo
Site Admin
Site Admin
 
Posts: 2613
Joined: Tue Jul 14, 2009 8:37 pm
Cash on hand: 221,227.50
Bank: 15,536,454.00
Location: Colombo/London
Medals: 2
EC_Bronze_Star (1) EC_Achievment (1)

Invitations sent: 94
Registered friends: 12
Highscores: 13
Reputation point: 74
Lieutenant

Re: ESC/POS Customer Display source code

Postby tnn » Fri Jul 20, 2012 10:07 am

Can you give me a code in Java to programme a Pole/Customer Display with a USB plugin? I have already developed a POS software to present it in the viva.but I don't know how to programme this customer display.Its okay if you can give it in C++. :D I searched it every in Google.There wasn't any in Java code for USB port ones.  :(
Looking forward for a favourable relpy. :D  :D  :D
User avatar
tnn
 
Posts: 2
Joined: Fri Jul 20, 2012 9:29 am
Cash on hand: 196.60

Invitations sent: 0
Registered friends: 0
Reputation point: 0
Lance Corporal

Re: ESC/POS Customer Display source code

Postby viz » Thu Mar 20, 2014 5:34 am

Hello Neo,  can you please give me the source code of IO class which you are using for POS display . I read your post but IO class is not there thats why i m getting error. Thanks in advance.
User avatar
viz
 
Posts: 1
Joined: Thu Mar 20, 2014 5:25 am
Cash on hand: 128.90

Invitations sent: 0
Registered friends: 0
Reputation point: 0
Lance Corporal

Re: ESC/POS Customer Display source code

Postby Neo » Wed Mar 26, 2014 6:14 am

As said over PM, those days MSCOMM had an issue and later it was fixed. The IO class was a self-written class based on Windows API (CreateFile, WriteFile, ReadFile, etc...). Later the MSCOMM started to work fine.
User avatar
Neo
Site Admin
Site Admin
 
Posts: 2613
Joined: Tue Jul 14, 2009 8:37 pm
Cash on hand: 221,227.50
Bank: 15,536,454.00
Location: Colombo/London
Medals: 2
EC_Bronze_Star (1) EC_Achievment (1)

Invitations sent: 94
Registered friends: 12
Highscores: 13
Reputation point: 74
Lieutenant


Return to Project Assistance

Who is online

Users browsing this forum: No registered users and 1 guest