Jump to content
moulinaie

Printer and CF7

Recommended Posts

Hello,

 

When printing a program using

LIST "PIO"

on the CF7+, the last page is not ejected. The printer is still waiting to complete the 60 lines (more or less)... So I must send a FF (form feed) manually:

OPEN #1:"PIO"
print #1:chr$(12)
close #1

Is there a better way?

 

Guillaume.

Share this post


Link to post
Share on other sites

Hi Guillaume,
Alas, I can't see in Basic how to send an ASCII CTRL-L, CHR$(12) or $0C command to the PIO with less number of instructions than the method above.  
Maybe the solution is on the printer side? What is your model?

Edited by fabrice montupet
typo error

Share this post


Link to post
Share on other sites
4 hours ago, moulinaie said:

Hello,

 

When printing a program using

LIST "PIO"

on the CF7+, the last page is not ejected. The printer is still waiting to complete the 60 lines (more or less)... So I must send a FF (form feed) manually:

OPEN #1:"PIO"
print #1:chr$(12)
close #1

Is there a better way?

 

Guillaume.

Does your editor allow you to embedded the control character (CTRL L) in the file at the end of the text? 

Oops.  I think you are using BASIC's line editor.

 

Edited by TheBF

Share this post


Link to post
Share on other sites

Challenge accepted...

 

Hmm, entering ctrl-L into a basic line with quotes gets you an >8C in the listing, not an >0C.

20 PRINT "<ctrl-L>"

LIST

... 22 8C 22

REM ctrl-L becomes tokens 9A 8C or REM  FOR.

 

CALL POKEV(14272,12)

don't ask me how I found that address..I just looked for the byte with >8C in it.


Now that puts a real 0C in the listing!

 

SO.. its just barely possible to put a form feed char in your BASIC program, assuming you have E/A and some way to find the darn byte in VDP.

 

  • Like 1

Share this post


Link to post
Share on other sites
18 hours ago, fabrice montupet said:

Hi Guillaume,
Alas, I can't see in Basic how to send an ASCII CTRL-L, CHR$(12) or $0C command to the PIO with less number of instructions than the method above.  
Maybe the solution is on the printer side? What is your model?

 

It is a HP Laserjet 2200DN.

 

Share this post


Link to post
Share on other sites
14 hours ago, FarmerPotato said:

CALL POKEV(14272,12)

don't ask me how I found that address..I just looked for the byte with >8C in it.


Now that puts a real 0C in the listing!

 

SO.. its just barely possible to put a form feed char in your BASIC program, assuming you have E/A and some way to find the darn byte in VDP.

 

Ah ah !!

Great!

 

Guillaume.

Share this post


Link to post
Share on other sites
15 hours ago, moulinaie said:

 

It is a HP Laserjet 2200DN.

 

On a LJ2200, just pressing the round "Go" button should print the data stored in its buffer.

  • Like 1

Share this post


Link to post
Share on other sites
9 hours ago, fabrice montupet said:

On a LJ2200, just pressing the round "Go" button should print the data stored in its buffer.

I tried.... But it doesn't work.

 

I found the manual and it says the same as you do.... Strange !

 

Guillaume.

Share this post


Link to post
Share on other sites

Laser printers (and most modern inkjets) are page printers.  While they will not print until an entire page has been received, like the old line printers an incomplete printed page is not ejected from the printer  unless it receives a form feed control character or the FF button is pressed.

 

Usually pressing the GO button will do the same (it has on my HPs.)  If that does not work, well, I have tried nothing and I am all out of ideas.

Share this post


Link to post
Share on other sites
11 hours ago, moulinaie said:

I tried.... But it doesn't work.

 

I found the manual and it says the same as you do.... Strange !

 

Guillaume.

Have you tried to do a long "Go" button push?

Share this post


Link to post
Share on other sites
33 minutes ago, fabrice montupet said:

Have you tried to do a long "Go" button push?

Yes!

It prints a standard page with a beautiful HP logo on both sides.

 

!!

 

Guillaume.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...