Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Print graphic with 8051 + Fujitsu thermal printer FTP-629DCL

Status
Not open for further replies.

ZeRoN

Advanced Member level 4
Joined
Jun 28, 2001
Messages
104
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
1,184
fujitsu thermal printer

Dear all,

Does anyone can get work with subject?

Hardware is ok, just connect data[8],strobe[1],and busy[1]
I want to know escape control code to printout graphic.

It has just some escape control code compatibled with epson.
ESC *+m+n1+n2+d1+dN (Sets bit image mode)

Could anyone advise me?
Thanks in advance.

Regards,
ZeRoN
 

ZeRoN

Advanced Member level 4
Joined
Jun 28, 2001
Messages
104
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
1,184
8051 thermal printer

Does anyone can help me?

How to use ESC+* and ESC+J ?

Regards,
 

BENOIT

Member level 5
Joined
Sep 22, 2001
Messages
89
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
France
Activity points
1,900
fujÄ°tsÄ° termal prÄ°nter

Dear Zeron,
I would like to help you but I have not the documentation of this
printer neither any sample of this printer.
Where did you buy it ? Do you have a distributor?
personnally I intend to use a miniprinter aswell but not graphic.
for which I have full documentation and few samples (picked up
from Payment Terminal Equipments) if you are interested it is the
M-180 from EPSON SEIKO.
@+,regards,
MB.
PS I have samples of Minitel thermal Printers (large paper but text)
 

ZeRoN

Advanced Member level 4
Joined
Jun 28, 2001
Messages
104
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,298
Activity points
1,184
fujitsu printer escape codes

Dear BENOIT,

I bought from distributor, but however
Fujitsu has no their own manual!
They have some of spec. doc. :(
you can see, how they are at their website. hxxp://www.fujitsu.com/

They give only Driver for window and utility.

but now, I've found the point of problem.

ESC * m n1 n2 d1 ... dN
EPSON -> dX is 8bits=8dots/column.
Fujitsu -> dX is 8bits=8dots in printing row.

used combination with GS E n, GS W n m

I know by download FTP629 driver for windows, print a simple bitmap
graphic to a file, then see to output from the driver.

Thankyou.
 

K

kalathiya_gaurang

Guest
uart code read putc c

hello der!!can you help me to interface ftp628mcl103 thermal printer with 8051??
 

naushad081

Newbie level 1
Joined
Apr 28, 2009
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,289
m-180 epson printer manual

Yea,
What kind of interface you are using. I interfaced this printer serially with 8051 and it works fine. If you need code please use this:


Remember:

1. I made an additional serial port in 8051. You can get help from here http://www.8051projects.net/serial-communication/software-uart-8051.php
http://www.8051projects.net/serial-communication/
http://www.8051projects.net/forum-t11828.html for software uart.

2. putc function will send a character to serial second port and getc will read.


Please go through the code, make your own modifications according to your hardware and your application and use.


My code is here:


Code:
void main()
{	
	MSDelay(60000);MSDelay(60000);MSDelay(60000);
	putc(0x1B);putc(0x40);MSDelay(5000);//Reset

	putc(0x1B);putc(0x21);putc(0x10);MSDelay(5000); // Fond setting
	SerialPrint("FUJITSU Printer TESTING");MSDelay(500);MSDelay(5000);
	putc(0x0A);MSDelay(5000);	
	SerialPrint("INITILISATION COMPLETED");MSDelay(500);MSDelay(5000);
	putc(0x0A);MSDelay(5000);
	SerialPrint("     SUCCESSFULLY!");MSDelay(500);MSDelay(5000);
	putc(0x0A);MSDelay(5000);
	putc(0x0A);MSDelay(1000);putc(0x0A);MSDelay(1000);putc(0x0A);MSDelay(1000);putc(0x0A);MSDelay(1000);
	putc(0x1D);putc(0x56);putc(0x00);  //paper cut
	MSDelay(5000);	
	
	Print();
	
}

void Print(void)
{						
	putc(0x1B);putc(0x65);putc(0x03);MSDelay(5000);// Backward printing
	putc(0x1B);putc(0x40);MSDelay(1000);// Reset
	putc(0x1B);putc(0x21);putc(0xEF);MSDelay(5000); // Fond size setting
	SerialPrint("NAUSHAD");MSDelay(5000);	
	putc(0x0A);MSDelay(1000);
	putc(0x1B);putc(0x21);putc(0x10);MSDelay(5000);
	SerialPrint("JAIPUR");MSDelay(5000);
	putc(0x0A);MSDelay(5000);
	
	SerialPrint("Thank You!");MSDelay(5000);
	putc(0x0A);MSDelay(1000);putc(0x0A);MSDelay(1000);putc(0x0A);MSDelay(1000);putc(0x0A);MSDelay(1000);
	putc(0x1D);putc(0x56);putc(0x00);//paper cut
	MSDelay(5000); 									
}

void MSDelay(unsigned int u)
{
	int i;
	for(i=0;i<u;i++)
    {}
}
void SerialPrint(char* c)
{
	char p;
	for(p=0;p<strlen(c);p++)
		{
			putc(c[p]);
			MSDelay(20);
		}
}
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top