Printing from QPC2 to serial printer

Helpful tips and guides, also new users can ask for help here.
Post Reply
RWAP
RWAP Master
Posts: 2834
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Printing from QPC2 to serial printer

Post by RWAP »

I was speaking with a user in London yesterday - he uses QPC2 and has 2 printers connected to his PC - a Canon connected to the parallel port and an Epson connected to a serial port.

He has used this setup in the past, but whilst he was able to print to the Canon, he was struggling with the Epson for some reason.

He tried : OPEN #3,ser1: PRINT #3,"Hello World": CLOSE #3

and nothing comes out of the Epson.

Change it to:
OPEN #3,par: PRINT #3,"Hello World": CLOSE #3

and the Canon prints merrily away.

Is there something he might be missing either on the PC or the QPC2 setup?

SER1 was pointing to COM1 in the QPC2 configuration panel.


User avatar
tofro
Font of All Knowledge
Posts: 2685
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: Printing from QPC2 to serial printer

Post by tofro »

Hi,
in about 99:9 percent of the cases where serial printing doesn't work, the problem is a broken or improper wired cable.

You can try from a WIndows CMD window whether a simple 'copy (somefile.txt) COM1' (8etter use a very short file) would make the printer tick.
If that doesn't work, it's not a QPC related problem ;)

Regards,
Tobias


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
dilwyn
Mr QL
Posts: 2753
Joined: Wed Dec 01, 2010 10:39 pm

Re: Printing from QPC2 to serial printer

Post by dilwyn »

RWAP wrote:He tried : OPEN #3,ser1: PRINT #3,"Hello World": CLOSE #3
and nothing comes out of the Epson.
As someone else said, the usual serial printer problem is cabling, and trying to print from Windows to the serial printer would confirm whether the setup is OK and if it's some QL side problem.

Many years ago, I had a printer which would lose the last page unless ended with a form feed, so it might be worth adding BPUT #3,12 before the CLOSE to try that. Or, of course, if that works he can then use one of the 'form feed at end' device name qualifiers (look them up in the Serial Ports part of the SMSQE/QPC manual.

Dilwyn


Post Reply