This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

graphics printing on dot matrix printer

Hello,

I have interfaced a centronics dot matrix printer with the 8051 controller. I am able to print the text on it. Now I have a application in which I have to print a graph using its graphics mode on to it. How can we print a graph using the dot matrix printer through a microcontroller.

Also, what is the ASCII code for the form feed (FF) character?

Regards,

Mohit

Parents
  • Hi Mohit!

    Well, there is more than just the ascii table. Usually there are some kind of escape sequences to send commands to a printer, like switching to bold or italic and also for switching to graphic mode. After switching for graphic mode, the graphic data is transmitted byte by byte to the printer (usually there is another escape sequence that will tell the printer,. how man bytes of graphic will follow for each line). These escape sequences don't follow a standard, they can be different for every sort of printer. I haven't done that printer programming in a long time now, so I don't know, if these escape sequences are shown in the printer manuals anymore. Maybe you have to contact the company that is building the printer you want to use. There are some quasi-standards though like HPGL (which is a plotter language) or HP-LaserJet, which probably all work in a pretty similar way.

    Good luck
    Sven

Reply
  • Hi Mohit!

    Well, there is more than just the ascii table. Usually there are some kind of escape sequences to send commands to a printer, like switching to bold or italic and also for switching to graphic mode. After switching for graphic mode, the graphic data is transmitted byte by byte to the printer (usually there is another escape sequence that will tell the printer,. how man bytes of graphic will follow for each line). These escape sequences don't follow a standard, they can be different for every sort of printer. I haven't done that printer programming in a long time now, so I don't know, if these escape sequences are shown in the printer manuals anymore. Maybe you have to contact the company that is building the printer you want to use. There are some quasi-standards though like HPGL (which is a plotter language) or HP-LaserJet, which probably all work in a pretty similar way.

    Good luck
    Sven

Children
No data