× 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.



Your welcome.

And a Hug to start my Friday morning - A great day ahead!

Cheers

Don




From: "orlando misas" <omisas@xxxxxxxxx>
To: "RPG programming on IBM i" <rpg400-l@xxxxxxxxxxxxxxxxxx>
Date: 08/05/2020 12:38 AM
Subject: Re: How to print hexadecimal on a printer
Sent by: "RPG400-L" <rpg400-l-bounces@xxxxxxxxxxxxxxxxxx>



Good morning Don:

I printed with the hexadecimal characters that you indicated and it worked
perfectly. Thank you very much for your collaboration.

A hug

Orlando

El jue., 7 may. 2020 a las 9:32, Fred Horvat (<horvat@xxxxxxxx>) escribió:

I have created labels from RPG on the iSeries to print barcodes and
other
labels for various Sato, TSC, and Zebra printers. It has been a while
since
I have done a completely new printer and label from scratch though. My
role
in this is mostly the programming the labels with the hardware and Queue
setup was someone else. Steps that we did the (from memory) are :

1: Taken a spool of the label from a PC program or another source and
opened
it up in Note++ to see all the Escape codes and Hex, etc.
2: Duplicate the spool file output in RPG Obviously allowing for passed
information and also adding Printer Speed, Head Temperature, Number of
Labels, Auto Incrementing if needed, Peel and Present if needed, and any
other printer specific printer parameters. Nothing special done when
compiling. Just the default parameters.
3: For each printer created an Out Queue on the 400 and if necessary
change
the settings for OUTQ for the printer to work.
4: Lots of testing

The Cutter option if your code is outputting the HEX Code correctly may
require Host Print Transform on the Printer Definition for that to work.


-----Original Message-----
From: RPG400-L [mailto:rpg400-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of
orlando misas
Sent: Tuesday, May 5, 2020 9:15 PM
To: RPG programming on the IBM i (AS/400 and iSeries)
Subject: How to print hexadecimal on a printer

Hi,

I need to print to an epson TM-m30 printer from an rpg program. On the
last
line I must print these hexadecimals x'1D'x'E5'x'F1 '(equivalent to
ascii
x'1D'x'56'x'31') to cut the printer paper. When I generate the
information
to a db2 table and transfer it to notepad ++ I find that the last line
has
the ascii characters

[image: image.png]
which is correct and is what I need. When I generate the spool into a
printer file in iSeries and print it, the paper is not cut. When
printing
the spool in hexadecimal characters the last line has the hexadecimals
20
56 31 and should be 1D 56 31. The spool file is compiled with DEVTYPE *
SCS
and RPLUNPRT * NO. The iSeries is 7.3.
Does anyone have a recommendation? . Thank you.

Orlando Misas





[image: image.png]
--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com


--
This is the RPG programming on IBM i (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: https://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives
at https://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com


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.