Printing to a ZEBRA S4M from the iSeries

85 pts.
Tags:
i5/OS
iseries v5r4
RPG ILE
Zebra S4M
I need to print simple labels - no bar codes, just different font sizes - from the iSeries (perferably from an RPG ILE program).

Is anyone doing this without using some third party software? If so, how?

Thanks for your help. JP



Software/Hardware used:
i5/os V5R4

Answer Wiki

Thanks. We'll let you know when a new response is added.

See <a href=”http://www-01.ibm.com/support/docview.wss?uid=nas1ccf052269288d640862569c1006cd157″>Information on Printers from Zebra/Eltron</a> for some details.

Because the S4M is a host-based (i.e., Windows-only) printer, you need a PC with a printer session. This may be set up as an iSeries Access printer session, but from the notes (as with essentially all Windows-only printers):<ul>
<li>Note: Configuring a PC5250 printer session without Host Print Transform (HPT) and without a Printer Definition Table (PDT) file is most likely to print successfully. However, you will not be able to print *AFPDS spooled files because that requires using Host Print Transform, and you will have limited control over the formatting of your output (including limited control over the font selection). Therefore, configuring to print to a Host-Based Printing, Proprietary (GDI), or Windows GDI printer is considered unsupported, as would printing to any other host-based printer. (And…)</li><li>Because they use a proprietary printer data stream, they do not work with Host Print Transform (HPT) or a PC5250 Printer Definition Table (PDT) file. Because they will not work with HPT, they also will not work to print *AFPDS spooled files through the AFPDS-to-ASCII Transform code within HPT. The only way to get a host-based printer to print IBM i family spooled files is to attached it to a host computer and then use printer emulation software, such as a PC5250 printer session, to print the spooled file through the host-based printer driver.</li>
</ul>
Tom

Discuss This Question: 10  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Bigmac46
    If attached to a dumb terminal set it up both on the device description and on the termiinla as a 5224 printer. if attached to a PC via Client when tthe printer finds it as new hardware set it as a Generic/text printer on the PC. On CA session select printer and use *none and check Transform box And select it as the printer on file-printer setup-selection. The following spoolfile (created by RPG program) will produce a two line labelwith characters that are 10/32 of an inch tall. If the Zebra is set up with a ">" character is set up as the control character. To use "~" replace the ">" with the "~".
     >XA>PON>LH0,0>FO015,030>A0,090,055>FV  THIS IS A TWO    >FS     
                                     >FO015,130>A0,090,055>FV   LINE  LABEL     >FS>XZ 
     
    . Go to Zebra website and download the ZPL II Programming Guide. You can do barcode, boxes, and more. If its in the guide you can do it. You just have to get past the AS400 line # thinking because the line is control is a point position from the corner of the label. line 1 is 15 in and 30 down. line 2 is 15 in and 130 down. hope this works for you.
    1,000 pointsBadges:
    report
  • Bigmac46
    The >FO015 in second line is lined up with the first line when we write the spoolfile just for easier reference if we need to do changes or copy a program to do a new kind o label.
    1,000 pointsBadges:
    report
  • Dasi4jpm
    Big Mac, The printer is attached via an Ethernet link. Do you think it will work if I set it up as 5224? Tahks for help. JP
    85 pointsBadges:
    report
  • Bigmac46
    I " think" that a 5224 should work. If you can get any text printer working on the link the zebra should work if you send it the ZPL II code info. One way to see if the printer is receiving is send it a spoolfile and if the data light flashes it is receiving. it does need the correct ZPL code sent to print correctly. We have about 10-15 zebras on BOSaNova controllers set up as 5224's and another 18 or so set up via client access. We have everything from STRIPES to Z4Ms all printing everything from 1X3 to UPS shipping labels from RPG program generated ZPL similar to the sample using QSYSRT spoolfiles . The ZPL II must be sent as a text file so the zebar can translate it.
    1,000 pointsBadges:
    report
  • Dasi4jpm
    How do I 'send' a text file to the S4M? I have sent it a spool file by moving a spool file to its output queue. It blinked the lights but did not print. I suspect the forms control character was the problem. JP
    85 pointsBadges:
    report
  • Bigmac46
    Set up an RPG program to create This ~XA~CC>~XZ as a qsysprt line to outq and release it for printer to use the > as control character. Use RPG program to create QSYSPRT output exactly like the example of 2 line label and release to generate a label.
    QSYSPRT   E            HDR1           0  1                            
             OR    OV                                                     
                                               13 '>XA>PON>LH0,0'         
              E            DEVLBL         1                               
                   21                          34 '>FO015,030>A0,090,055' 
                   22                          34 '>FO015,030>A0,070,040' 
                                               37 '>FV'                   
                   21      LBLTXT1A            56                         
                   22      LBLTXT2A            62                         
                   21                          59 '>FS'                   
                   22                          65 '>FS'                   
              E            DEVLBL         1                               
                   21                          34 '>FO015,130>A0,090,055' 
                   22                          34 '>FO015,130>A0,070,040' 
                                               37 '>FV'                   
                   21      LBLTXT1B            56                         
                   22      LBLTXT2B            62                         
                   21                          62 '>FS>XZ'                
                   22                          68 '>FS>XZ'                
                                                                          
    Is the print set up for the label.
    A* SET THE GREATER THAN SIGN '>' AS THE CHARACTER CONTROL 
    A* FOR THE ZEBRA PRINTERS                                 
    A          R LABEL1                                       
    A                                     1'~XA'              
    A                                     4'~CC>'             
    A                                     8'~XZ'              
    A                                       SPACEA(1)         
    
    is a printfile so either method works to generate code the printer can use. . .
    1,000 pointsBadges:
    report
  • WoodEngineer
    In a former life we used a Zebra printer for those tiny labels you see attached to jewelry. It was attached directly using twin ax cable. One thing we learned the hard way was specifying the X and Y print positions correctly. After a bunch of experimenting we discovered we had the wrong reference point. Once we specified the correct X and Y print position we started seeing data. Just passing this along in case it helps.
    6,305 pointsBadges:
    report
  • Dasi4jpm
    WoodEngineer, Do you remember what you used for the manufacturer and model number? The 5224 is not valid on V5R4 in the CRTDEVPRT command. (I think it only attached via a PC.) Thanks. JP
    85 pointsBadges:
    report
  • WoodEngineer
    I believe we attached the printer as a 5224 model 1. I just checked CRTDEVPRT and see that model listed as a valid option. We are runing V5R4. How is your printer attached?
    6,305 pointsBadges:
    report
  • RSJensen
    I use an RPG program to create the string , then I ftp the string to the printer. Works great that way
    10 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following