signal end of printer page
basilbs2
Posts: 9
Hi, need help in detecting the end-of-page on a printer. I need to know how to monitor the data flow on the Control line·with a BS2 and signal when each page·has finished·printing. At the end of the day I could have a page count. Has anyone worked on something like this before?
Thanks
·
Thanks
·
Comments
That is intended to push the paper to the top of the next page.
You would have two situationatons.
First, you count all the Form Feeds and then you verify more text followed. The total would be all your Form Feeds plus ONE.
Second, you count all the Form Feeds and then you verify nothing followed. [noparse][[/noparse]this is when the printer clears the last page in the machine]. The total would be all your Form Feeds without addition.
This assumes that all lines are the proper length or less
And that the total number of lines is less than a full page.
To handle all line length and total lines beyond proper limits, you would have to count characters between Carriage Returns to get raw data for a total line count. And then you would have to compare the total actual line count with how many lines are on a page. If the count is greater, you have overrun the page onto another without using a FormFeed. So your FormFeed total would have to be increased by one for each occurance.
Gets a bit complicate, but that is how the dot matrix printers did it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"When all think alike, no one is thinking very much.' - Walter Lippmann (1889-1974)
······································································ Warm regards,····· G. Herzog [noparse][[/noparse]·黃鶴 ]·in Taiwan
I'd just put an optical sensor on the output tray and count the sheets as they exit the printer...
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...