× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.




On 02/11/2006, at 7:05 AM, Gary Segal wrote:

   still need some more help. I am almost there. I am able to print to
   Receipt printer from AS400, but  still can not open cash drawer.

   I have spoke to Wasp(Cash drawer manufacturer). They told me:
"ESC P should open the cash drawer. In hexadecimal this is 1B70 and in
   decimal it is 27112"

   I tried to put in spool file as hex. No luck

With ASCII Transparency?

Also spoke to IBM(Client Access support team). They said that there in no way to trigger "ESC P" in Client access accept by putting it in WSCST(Work Station Customizing Object), but they no longer support it therefore they
   can not let me know how to do it.

Does anyone has any knowledge what syntaxes do I have to put in my WSCST
   object and where? Text file is pretty big. Please see attached.

It seems to me IBM support have given you an acceptable pointer to the solution. The caveat is that I've never tried this particular support using a WSCST however ...

A look through the WSCST source you sent shows two interesting tags :INITPRT and :RESETPRT

A cursory glance through the WSCST Programming Reference says:

"The INITPRT (initialize printer) tag defines the ASCII control sequence for the initialize printer function for an ASCII printer. The host print transform function uses the INITPRT tag at the beginning of each print job."

and

"The RESETPRT (reset printer) tag defines the ASCII control sequence for the reset printer function for an ASCII printer. The RESETPRT tag is used by the host print transform at the end of each print job."

Because printing a receipt is a "print job" (presuming each receipt is a separate spooled file) it would seem reasonable that you could modify either of these tags to include the ESC P incantation. Your only decision is whether to open the drawer before printing the receipt (i.e. :INITPRT) or after (:RESETPRT).

The current data for these tags already includes the Escape character. I'm fairly sure that Escape codes can be strung together so you only need to add the 70 to the end of the current data. Easy enough to try it both with and without the second 1B and see what happens.


Regards,
Simon Coulter.
--------------------------------------------------------------------
   FlyByNight Software         AS/400 Technical Specialists

   http://www.flybynight.com.au/
   Phone: +61 3 9419 0175   Mobile: +61 0411 091 400        /"\
   Fax:   +61 3 9419 0175                                   \ /
                                                             X
                 ASCII Ribbon campaign against HTML E-Mail  / \
--------------------------------------------------------------------



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.