Thermal printer in page mode

Hello guys i am stuck again with the thermal printer :frowning:
My problem is the following, i want to print in page mode , for example the default beginning of the printer's printing is from left to right and i want to make it from bottom to up , its like vertical printing of sort , and when i use the commands it only print 0.5 of paper and nothing on it this is my code i will include the PDF also : http://support.epostraders.co.uk/support-files/documents/36/w3m-ESCPOS_Guide.pdf its on page 358. If someone could help me again , i am really stuck
THank you

#include <SoftwareSerial.h>
SoftwareSerial mySerial(10, 11, 0x20);
const String ESC = "\u001B";
const String GS = "\u001D";
 const String BoldOff = ESC + "L" +  "\x1B";
 const String Boldon = ESC + "L" +  "\x0C";
 const String full = BoldOff + Boldon;
 const String f = "d097 ";

 int c = 0x0;
  int h = 0;
   int j = 0;
      int p = 0;
         int q = 0;
          int w = 0;
          int x = 0;
          char good[] = "5µA"; 
       
          const String z = "\x8D\xA8\xA3\xA0\xE0\xA0\xAD\xE2\xA8\xE0\xA0\xAC";
void setup() {

//Thermal.begin(9600);

  // put your setup code here, to run once:

mySerial.begin(19200);

mySerial.write(0x1B);      
mySerial.write(0x4A);   //initilaze printer
mySerial.write(255); 


mySerial.write(0x1B);      
mySerial.write(0x40);   //initilaze printer


//mySerial.write(0x1B);      
//mySerial.write(0x4C);     //select page mode 



mySerial.write(0x1D);
mySerial.write(0x50);    //set horizontal and vertival mottion units
mySerial.write(180);
mySerial.write(360);




mySerial.write(0x1B);
mySerial.write(0x57);    
mySerial.write(h);
mySerial.write(j);
mySerial.write(w);
mySerial.write(q);
mySerial.write(240);
mySerial.write(p);
mySerial.write(200);
mySerial.write(x);


mySerial.println(0x1B);
mySerial.println(0x54); 
mySerial.write(2);


mySerial.println("EEEEE");



mySerial.write(0x1B);      
mySerial.write(0x4A);   //initilaze printer
mySerial.write(255); 






mySerial.println("\n\n\n");













 
mySerial.println("\x1B@\x1DV1");                     //cut funtion


}


void loop() {

}

First, please confirm your printer will actually print in page mode. The PDF makes me ask the question.

Paul

Well i cannot confirm 100% because in the datasheet it doesn not say anything , but i think it can print

ivanh23:
Well i cannot confirm 100% because in the datasheet it doesn not say anything , but i think it can print

What does your printer return when you send it some of the ESC codes? Is your printer one of those listed in the document that have page3 mode capability?

I suggest your first project will be to determine if your printer can print in page mode and you can only determine this by sending the escape sequences shown in the PDF and analyzing the return messages.

I see a note in the PDF that the printer will send back to the computer without ensuring the computer is ready to receive a message. So your program must continually check for serial data and process it, not just when you have send a message. Possible case might be when the printer runs out of paper.

Paul

I will see what the printer returns , if there is something he is sending back . I will tell you as soon as i get something

Well the printer does not return anything , and when i try to print in page mode , it just prints 1cm of white paper and nothing else