moulinaie Posted October 20, 2019 Share Posted October 20, 2019 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. Quote Link to comment Share on other sites More sharing options...
fabrice montupet Posted October 20, 2019 Share Posted October 20, 2019 (edited) 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 October 20, 2019 by fabrice montupet typo error Quote Link to comment Share on other sites More sharing options...
Omega-TI Posted October 20, 2019 Share Posted October 20, 2019 I wondered about the model as well, because I always used the "FF" (form feed) button on my printer. Quote Link to comment Share on other sites More sharing options...
+TheBF Posted October 20, 2019 Share Posted October 20, 2019 (edited) 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 October 20, 2019 by TheBF Quote Link to comment Share on other sites More sharing options...
+FarmerPotato Posted October 20, 2019 Share Posted October 20, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...
moulinaie Posted October 21, 2019 Author Share Posted October 21, 2019 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. Quote Link to comment Share on other sites More sharing options...
moulinaie Posted October 21, 2019 Author Share Posted October 21, 2019 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. Quote Link to comment Share on other sites More sharing options...
fabrice montupet Posted October 21, 2019 Share Posted October 21, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...
moulinaie Posted October 22, 2019 Author Share Posted October 22, 2019 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. Quote Link to comment Share on other sites More sharing options...
HOME AUTOMATION Posted October 22, 2019 Share Posted October 22, 2019 Hmm... maybe something about the cable. Quote Link to comment Share on other sites More sharing options...
+OLD CS1 Posted October 22, 2019 Share Posted October 22, 2019 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. Quote Link to comment Share on other sites More sharing options...
fabrice montupet Posted October 22, 2019 Share Posted October 22, 2019 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? Quote Link to comment Share on other sites More sharing options...
moulinaie Posted October 22, 2019 Author Share Posted October 22, 2019 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.