Open Turaylon opened 7 years ago
You are on the right track (ie., the command you are printing matches what you've got from the manual).
You appear to be the first person to attempt this in escpos-php, so there is no way to avoid doing a few test prints.
If it works, please let me know, or better yet, send a pull request, and we'll get the command added to the main library.
Hi, i finally have tried the command and after some search and a little change, it worked. I found on (a very good manual on escpos commands ) (sorry, i had to remove the link becouse the pdf says that is confidential information) that the function has this structure : FS ( L pL pH fn m (pL + pH × 256) = 2 (pL = 2, pH = 0) m = 48, 49 fn = 65 TM-L90: with Peeler m = 48 [When the peeling issuing mode is selected] m = 48, 49 [When the continuous issuing mode is selected
so my final command is this:
$printer = new Printer($connector);
$printer->getPrintConnector()->write(Printer::FS."(L".chr(2).chr(0).chr(65).chr(49));
So maybe a function like feedToPeelingPosition($forceFeed = false) could be written. the force feed is based on the last char that should be 49 to force the feed to the next mark or 48 to stay at current position if the paper is already at the peeling position. Hope this can help :)
Hi @Turaylon, It seems that you successfully used the tm-l90 for black mark cutting,i want to know if the tm-l90 can print chinese
i'm sorry, i don't know if can print in Chinese. maybe yes because you can print special characters too. And I don't have this printer with me for testing
Hi, first of all thanks for this amazing library, saved me a lot of time. I have to print on a TM-L90 printer with marked receipt,on this printer you can have this paper with black label on the back and when a receipt is printed you should send the feed to the next black mark. On the documentation here there are 2 custom command that i think can feed the paper on the right position.
FS ( L Feed paper to the label peeling position
FS ( L (∗1) Feed paper to the cutting position
So i suppose that i should run a custom command. Following the example in this library for printing a barcode with a custom command my code should be something like this:
The problem is that this paper on this printer is numerated and are made for fiscal reason, so i can't do too many try. So can you please me tell me if i'm on the right track or i'm missing something?