Question

as the subject, I have a POS printer MatrixPoint MP-3250. As the manual said it is support command: ESC/POS compatible

I do search google, tried but won't works. At least setting condensed fonts, bold, italic and cutting paper command.

Running specifications:

  1. Windows 7 32bit
  2. The printer interface was Parallel slot, I use BAFO parallel to USB adapter.
  3. After the BAFO's driver installed, we got: USB001 - Virtual printer port for USB
  4. I add the printer manually in "Devices and Printers" (add local printer, set to USB001 port and using Generic / Text only printer driver.
  5. I send command using winspool APIs (WritePrinter)
  6. Delphi XE

Please help me out, any comments will appreciate.

I tried using this ESC/POS manual.

EDIT.

Here is how:

function WriteToPrinter(const Data: string): DWord;
var Temp: AnsiString;
begin
  // write directly to printer device
  { ----
    Note:
    This method is also able to send Escape command sequences directly,
    so you're no longer need to call Win32 API complicated Escape() function.
  }

  // We need convert to raw string since I'm using Delphi XE
  // string = UnicodeString

  Temp := AnsiString(Data);

  Result := 0;
  if (fPrnStatus = rpsPageStarted) then
    WritePrinter(fPrnHandle, PAnsiString(Temp), Length(Temp), Result);
end;

WriteToPrinter(#27'@'); // init printer
WriteToPrinter(#27'S'); // normal mode?
WriteToPrinter('Printing to default printer.'); // data
WriteToPrinter('GSV0'); // Cut the paper

What we got on printed paper: OWOTOFTPrinting to default printer (strange characters appear)

The paper failed to cut (notting happend)

EDIT: Mostly forgot, the above stuff working fine on Epson compatible / IBM 9068A Passbook Printer (Dot matrix). (not sure) the printer connected directly to USB / Parallel port, not using adapter (Parallel to USB like now).

I supposed something wrong in/between this adapter, or its drivers?

Thank you

Was it helpful?

Solution 2

Case closed. My final suspect was right, the problem was BAFO - Parallel to USB adapter. Siggh, I spending a lot of time because of this semi working adapter (incompatible). By replacing with another type/branch adapter it is now works fine.

Thank you to all contributors

OTHER TIPS

Your cut command is send out wrong.

The GSv0 is split into: GS (group seperator) #29 v that is the lower case 'v' 0 the binary value zero #0

This should make the cut.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top