Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Interfacing with an Maxatec POS receipt printer, printing "downloaded images"

Interfacing with an Maxatec POS receipt printer, printing "downloaded images"

Scheduled Pinned Locked Moved C / C++ / MFC
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sternocera
    wrote on last edited by
    #1

    Hello, I'm writing an application that needs to interface with a Maxatec MT-200 receipt printer. This is done through posting bytes to the device. I have successfully changed character encodings and made text bold in the past, so my basic approach is sound. I am working off the MT-200 technical manual, but I don't seem to be having much luck getting it working printing monochrome bitmap images (bitmap in the traditional sense, 1-bit per pixel). ftp://ftp.maxatec-europe.com/Public/Maxatec/MT-200_Technical.pdf[^] Look to page 59 and 60, defining and printing a downloaded bit image. It certainly has me confused.

    [Name] Define downloaded bit image

    [Format] ASCII GS ∗ x y d1 ... d (x x y x 8)
    Hex 1D 2A x y d1 ... d (x x y x 8)
    Decimal 29 42 x y d1 ... d (x x y x 8)

    .................

          The number of dots in the horizontal direction is x x 8, in the vertical
              direction it is y x 8.
    

    Surely the number of horizontal dots is the number specified by x. Does it simply mean x must be a multiple of 8? When I write the following bytes to the device: 1D 2A 10 10 66 66 66 66 66 66 66 66 in an effort to define a downloaded device image, the device becomes unresponsive - it doesn't print any additional ascii bytes I might send. It certainly doesn't respond to the print dowloaded image command: 1D 2F 30 What should I do? Can anyone make sense of this documentation? I myself cannot work it out, so I'd appreciate if someone else could weigh in, Regards, Sternocera

    I 1 Reply Last reply
    0
    • S Sternocera

      Hello, I'm writing an application that needs to interface with a Maxatec MT-200 receipt printer. This is done through posting bytes to the device. I have successfully changed character encodings and made text bold in the past, so my basic approach is sound. I am working off the MT-200 technical manual, but I don't seem to be having much luck getting it working printing monochrome bitmap images (bitmap in the traditional sense, 1-bit per pixel). ftp://ftp.maxatec-europe.com/Public/Maxatec/MT-200_Technical.pdf[^] Look to page 59 and 60, defining and printing a downloaded bit image. It certainly has me confused.

      [Name] Define downloaded bit image

      [Format] ASCII GS ∗ x y d1 ... d (x x y x 8)
      Hex 1D 2A x y d1 ... d (x x y x 8)
      Decimal 29 42 x y d1 ... d (x x y x 8)

      .................

            The number of dots in the horizontal direction is x x 8, in the vertical
                direction it is y x 8.
      

      Surely the number of horizontal dots is the number specified by x. Does it simply mean x must be a multiple of 8? When I write the following bytes to the device: 1D 2A 10 10 66 66 66 66 66 66 66 66 in an effort to define a downloaded device image, the device becomes unresponsive - it doesn't print any additional ascii bytes I might send. It certainly doesn't respond to the print dowloaded image command: 1D 2F 30 What should I do? Can anyone make sense of this documentation? I myself cannot work it out, so I'd appreciate if someone else could weigh in, Regards, Sternocera

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      My suspicion is that the printer has an 8x8 dot head. So, anything it prints will have to be in multiples of 8. But they then have a choice. Ask people to set the size, but trust them to set the size on multiples of 8? Or make the parameter be number of "heads", rather than number of dots. So, you send: 9x3, which means 9 heads wide, and 3 heads deep, which means 72 dots by 24 dots. I hope that gives you a lightbulb moment! I've had similar fun working with an LCD remote display device in the past. Iain.

      In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

      S 1 Reply Last reply
      0
      • I Iain Clarke Warrior Programmer

        My suspicion is that the printer has an 8x8 dot head. So, anything it prints will have to be in multiples of 8. But they then have a choice. Ask people to set the size, but trust them to set the size on multiples of 8? Or make the parameter be number of "heads", rather than number of dots. So, you send: 9x3, which means 9 heads wide, and 3 heads deep, which means 72 dots by 24 dots. I hope that gives you a lightbulb moment! I've had similar fun working with an LCD remote display device in the past. Iain.

        In the process of moving to Sweden for love (awwww). If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), give me a job!

        S Offline
        S Offline
        Sternocera
        wrote on last edited by
        #3

        Iain, hmmm. I'll look into that, thanks. It certainly doesn't help matters when the documentation is written in "engrish", with no practical examples. Regards, Sternocera

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups