Intermate iSeries Stepper Machine User Manual


 
368 User’s Manual for InterForm400
®
Attaching through a TCP/IP Raw Socket (Port 9100/3700)
Some LAN Print Servers from e.g. HP, Lexmark, Kyocera and IBM offer the possibility of
attaching through a raw TCP/IP socket, which enables the host to communicate
bidirectionally with the printer using HP PJL. Support for this print method was introduced
with OS/400 V3R2 and V4R1. The advantage of this method compared to standard LPD
printing, is that the host receives status reply from the printer.
1. The following information for the device must be provided by the system
administrator: IP address and Port Number (most print servers uses port
9100 as raw socket (HP, Lexmark and Kyocera), while IBM Print Servers
uses port 3700 or 2501. Consult the user manual of your IBM printer for
correct port no..
2. The following CL command will create a new device description called
PRTXXX for a 3812 model 1 on port 9100 and IP address: 222.2.1.235.
CRTDEVPRT DEVD(PRTXXX) DEVCLS(*LAN) TYPE(3812)
MODEL(1) LANATTACH(*IP) PORT(9100) FONT(11)
FORMFEED(*AUTOCUT) PARITY(*NONE) STOPBITS(1)
TRANSFORM(*YES) MFRTYPMDL (*HP4 )
RMTLOCNAME('222.2.1.235') SYSDRVPGM(*HPPJLDRV)
PRTERRMSG(*INFO)
If you are not able to fit the entire command on the command line, you can
prompt the command CRTDEVPRT with F4 and fill in the rest.
J TIP J
It is a good idea (but not necessary) to specify PRTERRMSG(*INFO). This value will
make the printer job automatically recover from a message if possible. if e.g. the printer
runs out of paper the printer job halts with an error. When you add paper the printer job
will detect this and ‘reply’ to the message automatically.
See a list of some of the possible port numbers at this site:
http://www-912.ibm.com/s_dir/slkbase.nsf/1ac66549a21402188625680b0002037e/94e73364f979e388862569030071c398?OpenDocument&ExpandSection=3&Highlight=0,printing,port,number#_Section3
3. Vary on the device with the following command
VRYCFG CFGOBJ(PRTXXX) CFGTYPE(*DEV) STATUS(*ON)
13. Start the printer writer with the following command:
STRPRTWTR DEV(PRTXXX)
Attaching through a 5250 Terminal
A 5250 terminal with a printer port is in reality working as a Twinax protocol converter. The
printer session has a dedicated device address which corresponds to a printer device
description on the AS/400. You should therefore follow the instructions in section
Attaching through a Twinax protocol converter.
The requirement to the printer session of a 5250 terminal is that it understands ASCII
transparency. This is supported by terminals such as IBM 3197, IBM 3477 and IBM 3487.
Other brands like Memorex Telex will in most cases also work. Consult the documentation
of the terminal or your agent for further information.