in reply to Re: No response from printer using Win32::SerialPort
in thread No response from printer using Win32::SerialPort
is exactly what the PAXAR printer is expecting (copied directly from their user manual)to turn on what they call "Immediate Commands". The Immediate Commands allow for the "^E" (this is the polling character) to post an empty "write" to the port, which then puts the printer status on the port to be read. I don't think Win32::SerialPort does anything with the ~. As far as I can tell it just treats the entire string (including the ~) as a string. The following lines of code are more examples of the PCL and are to just simply print the word CARTON on a label.$Port->write('{I,E,"~123~044~034~124~125~126~094"|}');
Thanks for your reply and your time...$record_to_print = $record_to_print.'{F,26,A,R,E,600,400,"FMT26"|'; $record_to_print = $record_to_print.'C,400,50,0,50,16,16,O,L,0,0,"CART +ON",0|}'; $record_to_print = $record_to_print.'{B,26,N,1|}';
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: No response from printer using Win32::SerialPort
by grep (Monsignor) on Oct 10, 2006 at 19:41 UTC | |
by woodycm (Initiate) on Oct 11, 2006 at 13:16 UTC |