The XDEVTYPS module contains an entry for each device type. Each entry describes a combination of a printer type and a protocol converter type. The XDEVTYPS module also contains masks, which are used to determine if a module must be deleted from storage when no longer needed. The module can also be kept, to save re-loading it the next time it is used.
XDEVTYPS Macros
The following macros are used in the XDEVTYPS module:
Names device type for all macro calls until next $LPDVP macro
Describes the characteristics of a device type
Defines command skeletons to construct commands which make the printer do certain tasks such as reset the printer, or move the printer's logical cursor. The sequence must be in alphabetic order of the parameters on the $LPDEV macro call that selected them.
XDEVTYPS Macros Example
The following shows an example of XDEVTYPS macro use:
XDEVTYPS $LPDVP DEVICE=XX-XEROX
$LPDEV PPYDIR=UP,PLCHNXY=YES,PLCHPOS=TOP,FBOLDN=YES,
FBOLDF=YES,ABSO=YES,RESET=YES,FONTSEL=YES
* COMMAND FOR ABSOLUTE POSITIONING
$LPCMS CMDTYPE=TEXT,DATA1='1Ba',TYPE1=C
$LPCMS CMDTYPE=X
$LPCMS CMDTYPE=TEXT,DATA1=',',TYPE1=C
$LPCMS CMDTYPE=Y
$LPCMS CMDTYPE=TEXT,DATA1="C20D0A',TYPE1=C,
DATA2='0D0C',TYPE2=X,DATA3=''',TYPE3=C
$LPCMS END=YES
* COMMAND FOR STOP BOLDING
$LPCMS CMDTYPE=TEXT,DATA1="1Bp',TYPE1=C
$LPCMS END=YES
* COMMAND FOR START BOLDING
$LPCMS CMDTYPE=TEXT,DATA1="1Bb',TYPE1=C
$LPCMS END=YES
* COMMAND FOR SELECTING A FONT NUMERICALLY
$LPCMS CMDTYPE=TEXT,DATA1="1B',TYPE1=C
$LPCMS CMDTYPE=NUM $LPCMS END=YES
* COMMAND TO RESET PRINTER
$LPCMS CMDTYPE=TEXT,DATA1="1B+X'C20D0A',TYPE1=C,
DATA2='0D0C',TYPE2=X,DATA3=''',TYPE3=C
$LPCMS END=YES
$LPDVP DEVICE=XX-HPIDA
$LPDEV POPO=YES,POLA=YES,ABSO=YES,RESET=YES
* COMMAND FOR ABSOLUTE POSITIONING
$LPCMS CMDTYPE=TEXT,DATA1="1B*p',TYPE1=C
$LPCMS CMDTYPE=X
$LPCMS CMDTYPE=TEXT,DATA1='x',TYPE1=C
$LPCMS CMDTYPE=Y
$LPCMS CMDTYPE=TEXT,DATA1='Y''',TYPE1=C,
DATA2='0D0C',TYPE2=X,DATA3=''',TYPE3=C
$LPCMS END=YES
* COMMAND FOR FDEF=LAND PDEF=LAND
$LPCMS CMDTYPE=TEXT,DATA1="1B',TYPE1=C,
DATA2='50',TYPE2=X,DATA3='l1o0E',TYPE3=C
$LPCMS END=YES
* COMMAND FOR FDEF=LAND PDEF=PORT
$LPCMS CMDTYPE=TEXT,DATA1="1B',TYPE1=C,
DATA2='50',TYPE2=X,DATA3='l0o0E',TYPE3=C
$LPCMS END=YES
* COMMAND TO RESET PRINTER
$LPCMS CMDTYPE=TEXT,DATA1="1BE',TYPE1=C
$LPCMS END=YES
$LPDVP END=YES
END
|
Copyright © 2015 CA Technologies.
All rights reserved.
|
|