I'm using PAXAR's proprietary language, I think they call it PCL or NCL.

The string that includes the ~ character
$Port->write('{I,E,"~123~044~034~124~125~126~094"|}');
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.
$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|}';
Thanks for your reply and your time...

In reply to Re^2: No response from printer using Win32::SerialPort by woodycm
in thread No response from printer using Win32::SerialPort by woodycm

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.