home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 19 Printer
/
19-Printer.zip
/
slpos2.zip
/
SLPOS2.DOC
< prev
next >
Wrap
Text File
|
1996-11-11
|
5KB
|
108 lines
SLPOS2.CMD - Build OS/2 Objects for Seiko Label Printer
(c) 1994-96 by Copyright C F S Nevada, Inc.
This OS/2 REXX program will create an object on your Desktop
which will allow you to use a Seiko Label Plus or Seiko Label Pro
printer in a full screen DOS VDM. It presumes that your Seiko
label printer functions properly in native DOS. This version has
been tested with OS/2 Warp 4.0 (Merlin) and the default
communications port driver - VCOM.SYS.
You may have to modify the following two statements within the
SLPOS2.CMD program file:
SLP_DRIVER = 'SLPPRO.SYS' /* must contain driver name */
COM_PORT = 'COM3' /* must contain correct COM? */
SLPPRO.SYS is the driver name for the Seiko Label Printer PRO and
SLP.SYS is the driver name for the Seiko Label Printer Plus.
COM_PORT must contain the value of the com port to which your
Seiko Label Printer is attached.
The program performs the following functions:
1) Determines whether the standard COM.SYS / VCOM.SYS com port
drivers are in use vs. Ray Gwinn's SIO.SYS / VSIO.SYS
drivers.
Note: The Seiko label printers no longer work with the
current versions of Gwinn's drivers but this
program continues and sets up the DOS VDM
appropriately as if they did work. Gwinn has
apparently conceded this problem and has
discontinued attempts at correcting the problem.
Seiko has no interest in lending assistance to
anyone trying to make their printers work under
OS/2.
2) Searches all of the local hard drives on your system trying
to locate the Seiko SLP dive driver. If multiple copies of
the driver are found, you are given the opportunity to
select which copy you want the program to use. If SLPOS2
cannot find the SLP driver, you are asked to supply the path
to the SLP driver. (In this case, a valid path to the SLP
driver must be entered.)
3) The setup string parameters used by the REXX
SysCreateObject() function are built for either COM.SYS or
SIO.SYS and an object is created on your Desktop for the
Seiko printer. Below is a sample setup string. Actual values
will vary.
EXENAME=command.com;'
ICONFILE=C:\REXXPROG\SLPOS2.ICO;'
MINIMIZED=NO;'
PARAMETERS=/k C:\SLPPRO\SLP-INIT.BAT;
PROGTYPE=VDM;'
SET AUDIO_ADAPTER_SHARING=None;'
SET COM_DIRECT_ACCESS=1;'
SET COM_HOLD=1;'
SET COM_SELECT=3;'
SET DOS_BACKGROUND_EXECUTION=1;'
SET DOS_DEVICE=SIZE=0 ?:\OS2\MDOS\ANSI.SYS,
SIZE=0 C:\SLPPRO\SLPPRO.SYS;
SET DOS_HIGH=1;'
SET DOS_UMB=1;'
SET DPMI_DOS_API=DISABLED;'
SET DPMI_MEMORY_LIMIT=0;'
SET HW_ROM_TO_RAM=1;'
SET HW_TIMER=1;'
SET IDLE_SECONDS=60;'
SET IDLE_SENSITIVITY=100;'
SET INT_DURING_IO=1;'
SET KBD_ALTHOME_BYPASS=1;'
SET SESSION_PRIORITY=32; /* Warp only */
OBJECTID=<SEIKO Label Printer>;
4) If you want your Seiko Label Printer DOS session started
from your Startup folder you must remove the two comment
lines surrounding the REXX code in SLPOS2.CMD which is used
to create a shadow of the Seiko Label Printer object. The
lines to be removed include " Remove this line to
shadow...".
5) The SLP-INIT.BAT files is created in the same directory
where the SLP driver was found. The .BAT file contains:
@echo off
rem ╔═══════════════════════════════════════════════════════════════════╗
rem ║ The following MODE statement is not necessary if your DOS session ║
rem ║ is normally 25 lines by 80 columns. ║
rem ╚═══════════════════════════════════════════════════════════════════╝
mode co80,25
SET PROMPT=$e[0;37;44m$t$h$h$h $p$e $e[m
C:
cd \SLPPRO
lh SLPPRO /R
cls
Note: It may be necessary to remove (or REM out) the
MODE line for some video cards. If your DOS
sessions are normally 25 lines by 80 columns, the
MODE line is not necessary.
This program is being made available as is, without warranty or
support. Questions may be directed to Dick Goran at 71154.2002 on
CompuServe or dgoran@cfsrexx.com on the Internet. The home
repositories for this program are <http://www.cfsrexx.com> and
Compuserve, OS2DF1 forum, Library 6.