home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
S2R10_C.ZIP
/
S2R10C10.SI
< prev
next >
Wrap
Text File
|
1990-03-09
|
44KB
|
1,002 lines
.RR--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!--!
.PL 62
.LM 1
.RM 78
.MT3
.MB4
.HM1
.FM1
.PO10
.CW10
.SR2
.UJ0
.OJ0
.UL1
.hePrinter Devices 3/9/90
.foSCSI-2 draft proposed American National Standard 10-# Revision 10c
.pn 1
.cp 30
.aw off
.pm 0
10. Commands for Printer Devices
.aw on
.pm 3
.cp 20
.aw off
.pm 0
10.1. Mode∞ fo≥ Printer Devicσs
.aw on
.pm 3
ááThi≤ commanΣ se⌠ include≤ capabilit∙ fo≥ thσ printe≥-controllinτ device¼ ì
whicΦ i≤ aε SCS╔ targe⌠ t∩ bσ i≤ functionall∙ separatσ froφ thσ physica∞ ì
printe≥ devicσ (seσ Figurσ 1░-1⌐ a≤ wel∞ a≤ integrateΣ witΦ it« Thσ physica∞ ì
printe≥ devicσ i≤ connecteΣ t∩ thσ SCS╔ targe⌠ viß onσ oµ severa∞ commoε ì
devicσ-leve∞ interfaces« Therσ ma∙ bσ morσ thaε onσ physica∞ printe≥ devicσ ì
attacheΣ t∩ thσ printe≥ controllinτ device« Iε sucΦ ß case¼ eacΦ physica∞ ì
printe≥ devicσ i≤ assigneΣ ß separatσ logica∞ uni⌠ number¼ beginninτ witΦ ì
zero« Thσ printe≥-controllinτ device¼ printe≥ devicσ-leve∞ interface¼ anΣ thσ ì
physica∞ printe≥ devicσ arσ collectivel∙ referreΣ t∩ a≤ thσ printe≥ device.
.lm 1
.pm 0
.aw off
--------------¡ ------------
ⁿ ⁿ ⁿ |
----------ⁿ Printer¡ ⁿ Printe≥ Device¡ ⁿ Physica∞ |
SCS╔ Bu≤ ⁿ Controllinτ |----¡------------ⁿ Printe≥ |
----------ⁿ Devicσ | leve∞ Interfacσ ⁿ Devicσ |
ⁿ ⁿ ⁿ |
--------------¡ ------------
Figure 10-1: SCS╔ Printe≥ Model
.aw on
.lm 1
.pm 3
ááSpecifiπ contro∞ mechanism≤ arσ defineΣ iε modσ page≤ fo≥ tw∩ industr∙-ì
standarΣ interface≤ knowε a≤ thσ linσ printe≥ interfacσ (e.g.¼ thσ Datß ì
Product≤ interfacσ o≥ equivalent⌐ anΣ thσ EI┴ R╙-232├ interface« Thesσ modσ ì
page≤ arσ useΣ t∩ contro∞ optiona∞ feature≤ oµ thesσ interfaces« N∩ modσ pagσ ì
wa≤ defineΣ fo≥ thσ popula≥ industr∙-standarΣ paralle∞ interfacσ becausσ thσ ì
option≤ requirinτ control≤ arσ embeddeΣ iε thσ data.
ááThσ printe≥-controllinτ devicσ ma∙ bσ physicall∙ integrateΣ withiε thσ ì
printe≥ devicσ anΣ i⌠ i≤ no⌠ requireΣ t∩ usσ onσ oµ thσ industr∙-standarΣ ì
interface≤ referenceΣ above.
ááThσ printe≥ devicσ command≤ arσ structureΣ oε thσ assumptioε tha⌠ specifiπ ì
printe≥ contro∞ code≤ ma∙ bσ embeddeΣ iε thσ datß transferreΣ b∙ thσ FORMAT¼ ì
PRINT¼ anΣ SLE╫ AN─ PRIN╘ commands« Thσ transparen⌠ contro∞ code≤ ma∙ takσ ì
thσ forφ oµ "escapσ codσ sequences"« Command≤ fo≥ thσ operatioε oµ thσ targe⌠ ì
functioε anΣ somσ printe≥ controls¼ whicΦ arσ no⌠ convenien⌠ t∩ handlσ iε ß ì
transparen⌠ way¼ arσ specifieΣ iε 10.2.
ááThi≤ standarΣ doe≤ no⌠ specif∙ whicΦ characte≥ se⌠ i≤ useΣ b∙ thσ printe≥ ì
devicσ no≥ doe≤ i⌠ specif∙ thσ meaninτ oµ thσ "escapσ codσ sequencesó tha⌠ ma∙ ì
bσ used«
.cp 40è.aw off
.pm 0
10.2. Command≤ fo≥ Printe≥ Devices
.aw on
.pm 3
ááThσ command≤ fo≥ printe≥ device≤ shal∞ bσ a≤ showε iε Tablσ 1░-1.
.aw off
.pm 0
.cp 37
Table 10-1: Commands for Printer Devices
==============================================================================
Operation
Command Name Code Type Section Page
------------------------------------------------------------------------------
CHANG┼ DEFINITIO╬ 40h ╧ 7.2.1
COMPAR┼ 39Φ ╧ 7.2.2
COPY 18h O 7.2.3
COP┘ AN─ VERIFY 3Ah O 7.2.4
FORMAT 04h O 10.2.1
INQUIRY 12h M 7.2.5
LO╟ SELEC╘ 4CΦ ╧ 7.2.6
LO╟ SENS┼ 4DΦ ╧ 7.2.7
MODE SELECT(6) 15h O 7.2.8
MOD┼ SELECT(10) 55h O 7.2.9
MODE SENSE(6) 1Ah O 7.2.10
MOD┼ SENSE(10) 5Ah O 7.2.11
PRINT 0Ah M 10.2.2
REA─ BUFFER 3Ch O 7.2.12
RECEIVE DIAGNOSTIC RESULTS 1Ch O 7.2.13
RECOVER BUFFERED DATA 14h O 10.2.3
RELEASE UNIT 17h M 9.2.9
REQUEST SENSE 03h M 7.2.14
RESERVE UNIT 16h M 9.2.10
SEND DIAGNOSTIC 1Dh M 7.2.15
SLEW AND PRINT 0Bh O 10.2.4
STOP PRINT 1Bh O 10.2.5
SYNCHRONIZE BUFFER 10h O 10.2.6
TEST UNIT READY 00h M 7.2.16
WRIT┼ BUFFER 3Bh O 7.2.17
==============================================================================
.aw on
.pm 3
ááKey║ ═ ╜ CommanΣ implementatioε i≤ mandatory.
áá ╧ ╜ CommanΣ implementatioε i≤ optional.
ááThσ followinτ operatioε code≤ arσ vendo≥ specific║ 01h¼ 02h¼ 05h¼ 06h¼ 07h¼ ì
08h¼ 09h¼ 0Ch¼ 0Dh¼ 0Eh¼ 0Fh¼ 11h¼ 13h¼ 19h¼ anΣ C0Φ througΦ FFh« Al∞ ì
remaininτ operatioε code≤ fo≥ printe≥ device≤ arσ reserveΣ fo≥ futurσ ì
standardization.
.cp 25è.aw off
.pm 0
10.2.1. FORMAT Command
Table 10-2: FORMAT Command
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 | Operation Code (04h) |
-----|-----------------------------------------------------------------------|
1 | Logical Unit Number | ReserveΣ | Format Type |
-----|-----------------------------------------------------------------------|
2 | (MSB) |
-----|--- ---|
3 | Transfer Length |
-----|--- ---|
4 | (LSB) |
-----|-----------------------------------------------------------------------|
5 | Control |
==============================================================================
.aw on
.pm 3
ááThσ FORMA╘ commanΣ (Tablσ 1░-2⌐ provide≤ ß mean≤ fo≥ thσ initiato≥ t∩ ì
specif∙ form≤ o≥ font≤ t∩ printer≤ tha⌠ suppor⌠ programmablσ form≤ o≥ fonts« ì
Thσ forma⌠ informatioε i≤ periphera∞-devicσ specific.
ááThσ forma⌠ typσ fielΣ specifie≤ thσ typσ oµ forma⌠ informatioε t∩ bσ ì
transferreΣ froφ thσ initiato≥ t∩ thσ target« Thi≤ fielΣ i≤ defineΣ a≤ ì
follows:
.aw off
.pm 0
.cp 10
DB(1) DB(0) Format Type
----- ----- -------------
0 0 Set Form
0 1 Set Font
1 0 Vendor Unique
1 1 Reserved
.aw on
.pm 3
ááThσ transfe≥ lengtΦ specifie≤ thσ lengtΦ iε byte≤ oµ forma⌠ informatioε tha⌠ ì
shal∞ bσ transferreΣ durinτ thσ DAT┴ OU╘ phase« ┴ transfe≥ lengtΦ oµ zer∩ ì
indicate≤ tha⌠ n∩ forma⌠ informatioε shal∞ bσ transferred« Thi≤ conditioε ì
shal∞ no⌠ bσ considereΣ a≤ aε error.
.cp 25è.aw off
.pm 0
10.2.2. PRINT Command
Table 10-3: PRINT Command
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 | Operation Code (0Ah) |
-----|-----------------------------------------------------------------------|
1 | Logical Unit Number | Reserved |
-----|-----------------------------------------------------------------------|
2 | (MSB) |
-----|--- ---|
3 | Transfer Length |
-----|--- ---|
4 | (LSB) |
-----|-----------------------------------------------------------------------|
5 | Control |
==============================================================================
.aw on
.pm 3
ááThσ PRIN╘ commanΣ (Tablσ 1░-3⌐ transfer≤ thσ specifieΣ numbe≥ oµ byte≤ froφ ì
thσ initiato≥ t∩ thσ targe⌠ t∩ bσ printed.
ááThσ transfe≥ lengtΦ specifie≤ thσ lengtΦ iε byte≤ oµ datß tha⌠ shal∞ bσ ì
transferreΣ durinτ thσ DAT┴ OU╘ phase« ┴ transfe≥ lengtΦ oµ zer∩ indicate≤ ì
tha⌠ n∩ datß shal∞ bσ transferred« Thi≤ conditioε shal∞ no⌠ bσ considereΣ a≤ ì
aε error.
.cp 25
.aw off
.pm 0
10.2.3. RECOVER BUFFERED DATA Command
Table 10-4: RECOVER BUFFERED DATA Command
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 | Operation Code (14h) |
-----|-----------------------------------------------------------------------|
1 | Logica∞ Uni⌠ Numbe≥ ⁿ Reserved |
-----|-----------------------------------------------------------------------|
2 | (MSB) |
-----|--- ---|
3 | Transfer Length |
-----|--- ---|
4 | (LSB) |
-----|-----------------------------------------------------------------------|
5 | Control |
==============================================================================
.aw on
.pm 3
.cp 2
ááThσ RECOVE╥ BUFFERE─ DAT┴ commanΣ (Tablσ 1░-4⌐ return≤ t∩ thσ initiato≥ datß ì
tha⌠ ha≤ beeε previousl∙ transferreΣ t∩ thσ target¼ bu⌠ no⌠ ye⌠ printed.
è.cp 7
ááThi≤ commanΣ i≤ normall∙ useΣ onl∙ t∩ recove≥ froφ erro≥ o≥ exceptioε ì
condition≤ tha⌠ makσ i⌠ impossiblσ t∩ prin⌠ thσ buffereΣ data« Thσ orde≥ iε ì
whicΦ datß arσ transferreΣ froφ thσ targe⌠ t∩ thσ initiato≥ i≤ thσ samσ a≤ ì
wheε thσ datß werσ previousl∙ transferreΣ usinτ thσ PRIN╘ commanΣ o≥ SLE╫ AN─ ì
PRIN╘ command« Datß transferreΣ b∙ thi≤ commanΣ arσ deleteΣ froφ thσ targe⌠ ì
datß buffer« Onσ o≥ morσ RECOVE╥ BUFFERE─ DAT┴ command≤ ma∙ bσ useΣ t∩ returε ì
thσ buffereΣ datß tha⌠ i≤ no⌠ printed.
ááIµ aε attemp⌠ i≤ madσ t∩ recove≥ morσ datß thaε i≤ containeΣ iε thσ buffer¼ ì
thσ commanΣ shal∞ bσ terminateΣ witΦ CHEC╦ CONDITIO╬ statu≤ anΣ thσ sensσ ke∙ ì
shal∞ bσ se⌠ t∩ N╧ SENSE« Iε addition¼ thσ EOM¼ valid¼ anΣ IL╔ bit≤ shal∞ bσ ì
se⌠ t∩ one« Thσ informatioε byte≤ shal∞ bσ se⌠ t∩ thσ differencσ (residue⌐ ì
betweeε thσ transfe≥ lengtΦ anΣ thσ actua∞ numbe≥ oµ byte≤ returned«
ááThσ transfe≥ lengtΦ specifie≤ thσ maximuφ lengtΦ iε byte≤ oµ datß tha⌠ shal∞ ì
bσ transferreΣ durinτ thσ DAT┴ I╬ phase« ┴ transfe≥ lengtΦ oµ zer∩ indicate≤ ì
tha⌠ n∩ datß shal∞ bσ transferred« Thi≤ conditioε shal∞ no⌠ bσ considereΣ a≤ ì
aε error.
.cp 25
.aw off
.pm 0
10.2.4. SLEW AND PRINT Command
Table 10-5: SLEW AND PRINT Command
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 | Operation Code (0Bh) |
-----|-----------------------------------------------------------------------|
1 | Logica∞ Uni⌠ Numbe≥ ⁿ Reserved ⁿ Channel|
-----|-----------------------------------------------------------------------|
2 | Slew Value |
-----|-----------------------------------------------------------------------|
3 | (MSB) |
-----|--- Transfer Length ---|
4 | (LSB) |
-----|-----------------------------------------------------------------------|
5 | Control |
==============================================================================
.aw on
.pm 3
ááThσ SLE╫ AN─ PRIN╘ commanΣ (Tablσ 1░-5⌐ transfer≤ thσ specifieΣ numbe≥ oµ ì
byte≤ froφ thσ initiato≥ t∩ thσ targe⌠ t∩ bσ printed« Thi≤ commanΣ i≤ ì
provideΣ fo≥ printe≥ device≤ tha⌠ d∩ no⌠ suppor⌠ form≤ contro∞ informatioε ì
embeddeΣ withiε thσ prin⌠ data.
ááThσ transfe≥ lengtΦ specifie≤ thσ lengtΦ iε byte≤ oµ datß tha⌠ shal∞ bσ ì
transferreΣ durinτ thσ DAT┴ OU╘ phase« ┴ transfe≥ lengtΦ oµ zer∩ indicate≤ ì
tha⌠ n∩ datß shal∞ bσ transferred« Thi≤ conditioε shal∞ no⌠ bσ considereΣ a≤ ì
aε error.
.cp 7èááIµ thσ channe∞ bi⌠ i≤ zero¼ thσ sle≈ valuσ specifie≤ thσ numbe≥ oµ line≤ thσ ì
forφ shal∞ bσ advanceΣ beforσ printing« ┴ valuσ oµ 25╡ indicate≤ tha⌠ thσ ì
forφ shal∞ bσ advanceΣ t∩ thσ firs⌠ linσ oµ thσ nex⌠ forφ beforσ printing« Iµ ì
thσ channe∞ bi⌠ i≤ one¼ thσ sle≈ valuσ specifie≤ thσ form≤ contro∞ channe∞ ì
numbe≥ t∩ whicΦ thσ forφ shal∞ bσ advanceΣ prio≥ t∩ printinτ thσ data« Iµ ì
implemented¼ thσ printe≥ option≤ pagσ iε thσ MOD┼ SELEC╘ commanΣ provide≤ ì
additiona∞ contro∞ ove≥ thσ usagσ oµ thσ sle≈ valuσ field.
ááIµ thσ channe∞ bi⌠ i≤ one¼ anΣ thσ channe∞ optioε i≤ no⌠ implemented¼ thσ ì
commanΣ shal∞ bσ terminateΣ witΦ CHEC╦ CONDITIO╬ statu≤ anΣ thσ sensσ ke∙ ì
shal∞ bσ se⌠ t∩ ILLEGA╠ REQUEST.
.cp 25
.aw off
.pm 0
10.2.5. STOP PRINT Command
Table 10-6: STOP PRINT Command
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 | Operation Code (1Bh) |
-----|-----------------------------------------------------------------------|
1 | Logica∞ Uni⌠ Numbe≥ ⁿ Reserved | Retain |
-----|-----------------------------------------------------------------------|
2 | Vendor Unique |
-----|-----------------------------------------------------------------------|
3 | Reserved |
-----|-----------------------------------------------------------------------|
4 | Reserved |
-----|-----------------------------------------------------------------------|
5 | Control |
==============================================================================
.aw on
.pm 3
ááThσ STO╨ PRIN╘ commanΣ (Tablσ 1░-6⌐ request≤ thσ targe⌠ t∩ hal⌠ printinτ oε ì
buffereΣ device≤ iε aε orderl∙ fashion.
áá┴ retaiε bi⌠ oµ zer∩ request≤ tha⌠ thσ targe⌠ datß buffe≥ bσ discarded╗ ì
otherwise¼ thσ datß no⌠ printeΣ shal∞ bσ retained« Thσ datß no⌠ printeΣ ma∙ ì
bσ recovereΣ usinτ thσ RECOVE╥ BUFFERE─ DAT┴ command¼ iµ implementeΣ b∙ thσ ì
target« ┴ subsequen⌠ SYNCHRONIZ┼ BUFFE╥ command¼ PRIN╘ commanΣ o≥ SLE╫ AN─ ì
PRIN╘ commanΣ shal∞ causσ thσ remaininτ datß no⌠ alread∙ printeΣ anΣ t∩ bσ ì
printeΣ followeΣ b∙ thσ datß transferreΣ b∙ thσ subsequen⌠ command¼ iµ any« ì
Thσ poin⌠ a⌠ whicΦ printinτ i≤ suspendeΣ b∙ thi≤ commanΣ i≤ vendo≥ specific.
.cp 25è.aw off
.pm 0
10.2.6. SYNCHRONIZE BUFFER Command
Table 10-7: SYNCHRONIZE BUFFER Command
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 | Operation Code (10h) |
-----|-----------------------------------------------------------------------|
1 | Logica∞ Uni⌠ Numbe≥ ⁿ Reserved |
-----|-----------------------------------------------------------------------|
2 | Reserved |
-----|-----------------------------------------------------------------------|
3 | Reserved |
-----|-----------------------------------------------------------------------|
4 | Reserved |
-----|-----------------------------------------------------------------------|
5 | Control |
==============================================================================
.aw on
.pm 3
ááThσ SYNCHRONIZ┼ BUFFE╥ commanΣ (Tablσ 1░-7⌐ provide≤ ß mean≤ fo≥ aε ì
initiato≥ t∩ ensurσ tha⌠ thσ datß havσ beeε successfull∙ printeΣ prio≥ t∩ ì
releasinτ thσ periphera∞ device« Thi≤ i≤ usefu∞ fo≥ application≤ tha⌠ wisΦ t∩ ì
handlσ an∙ erro≥ o≥ exceptioε condition≤ (e.g.¼ enΣ-oµ-medium⌐ prio≥ t∩ ì
terminatioε oµ thσ application.
ááWheε al∞ buffereΣ datß arσ actuall∙ printeΣ thσ commanΣ shal∞ bσ terminateΣ ì
witΦ ß GOO─ status« Iµ i⌠ i≤ no⌠ possiblσ t∩ finisΦ printinτ al∞ oµ thσ ì
buffereΣ datß (duσ t∩ aε erro≥ o≥ exceptioε conditioε oε thσ periphera∞ ì
device)¼ theε thi≤ commanΣ shal∞ bσ terminateΣ witΦ ß CHEC╦ CONDITIO╬ statu≤ ì
anΣ thσ appropriatσ sensσ key.
ááThσ printe≥ option≤ pagσ iε thσ MOD┼ SELEC╘ command¼ iµ implemented¼ ì
provide≤ additiona∞ contro∞ ove≥ terminatioε sequence≤ wheε usinτ thi≤ ì
command.
.cp 20è.aw off
.pm 0
10.3. Parameter≤ fo≥ Printer Devices
.aw on
.pm 3
.cp 10
.aw off
.pm 0
10.3.1. Diagnostic Paramete≥s
.aw on
.pm 3
ááThi≤ sectioε define≤ thσ descriptor≤ anΣ page≤ fo≥ diagnostiπ parameter≤ ì
useΣ witΦ printe≥ devices«
ááThσ diagnostiπ pagσ code≤ fo≥ printe≥ device≤ arσ defineΣ iε Tablσ 1░-8.
.aw off
.pm 0
.cp 15
Table 10-8: Diagnostiπ Page Codes
==============================================================================
Page Code Description Section
------------------------------------------------------------------------------
.pm 4
.lm 16
.aw on
ááá00h SupporteΣ Diagnostiπ Page≤ 7.3.1.1
ááá01h-3Fh ReserveΣ (fo≥ al∞ devicσ typσ pages⌐
ááá40h-7Fh Reserved
ááá80h-FFh Vendo≥-specifiπ pages
.lm 1
.pm 0
==============================================================================
.aw on
.pm 3
.lm 1
.cp 5
.aw off
.pm 0
10.3.2. Log Paramete≥s
.aw on
.pm 3
ááThi≤ sectioε define≤ thσ descriptor≤ anΣ page≤ fo≥ loτ parameter≤ useΣ witΦ ì
printe≥ devices«
ááThσ loτ pagσ code≤ fo≥ printe≥ device≤ arσ defineΣ iε Tablσ 1░-9.
.aw off
.pm 0
.cp 15
Table 10-9: Log Page Codes
==============================================================================
Page Code Description Section
------------------------------------------------------------------------------
.pm 4
.lm 16
.aw on
ááá01h Buffe≥ Ove≥-Run/Unde≥-Ruε Pagσ 7.3.2.1
ááá07h Las⌠ ε Erro≥ Event≤ Pagσ 7.3.2.3
ááá06h Noε-Mediuφ Erro≥ Pagσ 7.3.2.4
ááá00h SupporteΣ Loτ Page≤ 7.3.2.5
ááá02h - 05h ReserveΣ
ááá08h - 2Fh ReserveΣ
ááá3Fh ReserveΣ
ááá30h - 3Eh Vendo≥-specifiπ pages
.aw off
==============================================================================
.aw on
.pm 3
.lm 1
.cp 10
.aw off
.pm 0
10.3.3. Mode Paramete≥s
.aw on
.pm 3
.cp 2
ááThi≤ sectioε define≤ thσ descriptor≤ anΣ page≤ fo≥ modσ parameter≤ useΣ witΦ ì
printe≥ devices«
.cp 2
ááThσ modσ paramete≥ list¼ includinτ thσ modσ paramete≥ heade≥ anΣ modσ blocδ ì
descripto≥ arσ describeΣ iε 7.3.3.
.cp 2
ááThσ mediuφ-typσ codσ fielΣ i≤ containeΣ iε thσ modσ paramete≥ heade≥ (seσ ì
Tablσ ╖-6▒ anΣ ╖-62)« Thi≤ fielΣ i≤ reserveΣ fo≥ printe≥ devices.è
.cp 3
ááThσ devicσ specifiπ paramete≥ fielΣ i≤ containeΣ iε thσ modσ paramete≥ ì
heade≥ (seσ Tablσ ╖-6▒ anΣ ╖-62)« Tablσ 1░-1░ define≤ thσ devicσ specifiπ ì
paramete≥ useΣ fo≥ printe≥ devices«
.cp 10
.aw off
.pm 0
Table 10-10: Printe≥ Devicσ Specifiπ Parameter
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
==============================================================================
ⁿReservedⁿ BuffereΣ Modσ ⁿ Reserved |
==============================================================================
.aw on
.pm 3
ááWheε usinτ thσ MOD┼ SELEC╘ command¼ ß buffereΣ modσ oµ zer∩ indicate≤ tha⌠ ì
thσ targe⌠ shal∞ no⌠ repor⌠ ß GOO─ statu≤ oε PRIN╘ command≤ o≥ SLE╫ AN─ PRIN╘ ì
command≤ unti∞ thσ datß arσ actuall∙ printed« ┴ buffereΣ modσ oµ onσ ì
indicate≤ tha⌠ thσ targe⌠ ma∙ repor⌠ ß GOO─ statu≤ oε PRIN╘ command≤ o≥ SLE╫ ì
AN─ PRIN╘ command≤ a≤ sooε a≤ thσ datß havσ beeε transferreΣ t∩ thσ SCS╔ ì
devicσ buffer« Thσ datß froφ onσ o≥ morσ command≤ ma∙ bσ buffereΣ prio≥ t∩ ì
printing« BuffereΣ mode≤ oµ 2Φ througΦ 7Φ arσ reserved.
ááWheε usinτ thσ MOD┼ SENS┼ command¼ thσ buffereΣ modσ fielΣ return≤ thσ ì
curren⌠ valuσ oµ thi≤ parameter.
ááThσ densit∙ codσ fielΣ i≤ containeΣ iε thσ modσ paramete≥ blocδ descripto≥ ì
(seσ Tablσ ╖-63)« Thi≤ fielΣ i≤ reserveΣ fo≥ printe≥ devices.
.cp 25
ááThσ modσ pagσ code≤ fo≥ printe≥ device≤ arσ showε iε Tablσ 1░-11.
.aw off
.pm 0
Table 10-11: Modσ Page Codes
==============================================================================
Page Code Description Section
------------------------------------------------------------------------------
ááá00h Vendo≥ Specifiπ (doe≤ no⌠ requirσ pagσ format⌐
0AΦ Contro∞ Modσ Page 7.3.3.1
ááá02h Disconnect-Reconnec⌠ Page 7.3.3.2
ááá03h Paralle∞ Printe≥ Interfacσ Parameter≤ 10.3.3.1
09Φ Periphera∞ Devicσ Pagσ 7.3.3.3
ááá05h Printe≥ Option≤ 10.3.3.2
ááá04h Seria∞ Printe≥ Interfacσ Parameter≤ 10.3.3.3
ááá01h Reserved
06h - 08h Reserved
0Bh - 1Fh Reserved
20h - 3Eh Vendo≥ Specifiπ (pagσ forma⌠ required)
ááá3Fh Return≤ al∞ page≤ (valiΣ onl∙ fo≥ thσ MOD┼ SENS┼ command)
==============================================================================
.aw on
.pm 3
.cp 25è.aw off
.pm 0
10.3.3.1. Parallel Printe≥ Interfacσ Parameter≤ Page
.aw on
.pm 3
ááThi≤ pagσ (Tablσ 1░-12⌐ i≤ intendeΣ t∩ suppor⌠ printe≥ device≤ whicΦ usσ thσ ì
industr∙-standarΣ linσ printe≥ interface.
.aw off
.pm 0
.cp 20
Table 10-12: Parallel Printe≥ Interfacσ Parameters
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 ⁿ P╙ |Reserved| Page Code (03h) |
-----|-----------------------------------------------------------------------|
1 | Parameter Length (03h) |
-----|-----------------------------------------------------------------------|
2 | Parit∙ Selec⌠ ⁿ PIP├ ⁿReserved| VCB╨ | VCB╙ ⁿ VE╙ ⁿ Autofd |
-----|-----------------------------------------------------------------------|
3 | ReserveΣ |
==============================================================================
.aw on
.pm 3
ááThσ parameter≤ savablσ (PS⌐ bi⌠ i≤ onl∙ useΣ witΦ thσ MOD┼ SENS┼ command« ì
Thi≤ bi⌠ i≤ reserveΣ witΦ thσ MOD┼ SELEC╘ command« ┴ P╙ bi⌠ oµ onσ indicate≤ ì
tha⌠ thσ targe⌠ i≤ capablσ oµ savinτ thσ pagσ iε ß noε-volatilσ vendo≥-ì
specifiπ location.
.cp 15
ááThσ parit∙ selec⌠ fielΣ specifie≤ parit∙ generatioε oε thσ printe≥ interfacσ ì
anΣ i≤ defineΣ a≤ follows:
.aw off
.pm 0
.cp 6
Code Parity Select
---- -------------------------
00b No parity generation
01b Even Parity
10b Odd Parity
11Γ Reserved
.aw on
.pm 3
.cp 5
áá┴ pape≥ instructioε parit∙ checδ (PIPC⌐ bi⌠ oµ onσ indicate≤ tha⌠ thσ ì
printe≥ interfacσ "Pape≥ Instructionó signa∞ i≤ includeΣ iε parit∙ generatioε ì
oε thσ printe≥ interfacσ b∙ thσ target« ┴ PIP├ bi⌠ oµ zer∩ indicate≤ tha⌠ thσ ì
"Pape≥ Instructionó signa∞ i≤ no⌠ includeΣ iε parit∙ generatioε oε thσ printe≥ ì
interfacσ b∙ thσ target.
.cp 30è.lm 3
ááIMPLEMENTOR╙ NOTES:
áá(1⌐ Thσ forma⌠ oµ thσ vertica∞ form≤ uni⌠ (VFU⌐ contro∞ bytσ i≤ specifieΣ b∙ ì
ááthσ VCBP¼ VCBS¼ anΣ VE╙ bits« Thσ VF╒ contro∞ bytσ i≤ no⌠ par⌠ oµ thi≤ ì
áástandard¼ howeve≥ ß discussioε oµ i⌠ i≤ includeΣ herσ fo≥ ß bette≥ ì
ááunderstanding« Thi≤ VF╒ contro∞ bytσ (seσ table¼ below⌐ include≤ ß contro∞ ì
áábi⌠ (C⌐ t∩ selec⌠ whethe≥ t∩ sle≈ ove≥ ß numbe≥ oµ line≤ o≥ t∩ ski≡ t∩ ß ì
áávertica∞ form≤ uni⌠ (VFU⌐ channe∞ number« Thi≤ bi⌠ ma∙ bσ locateΣ iε tw∩ ì
áádifferen⌠ bi⌠ position≤ anΣ ma∙ havσ eithe≥ polarity«
áá(2⌐ Thσ numbe≥ oµ line≤ t∩ sle≈ ove≥ ma∙ bσ codeΣ a≤ aε unsigneΣ fou≥-bi⌠ ì
áánumbe≥ (NNNN⌐ o≥ aε unsigneΣ si°-bi⌠ numbe≥ (EENNNN)« Thσ uppe≥ tw∩ bit≤ oµ ì
ááthσ si°-bi⌠ numbe≥ (EE⌐ ma∙ bσ positioneΣ contiguousl∙ witΦ thσ lowe≥ fou≥ ì
áábit≤ (NNNN⌐ o≥ the∙ ma∙ bσ separateΣ froφ thσ lowe≥ fou≥ bit≤ b∙ thσ contro∞ ì
áábi⌠ (C)« Furthermore¼ thσ uppe≥ tw∩ bit≤ ma∙ o≥ ma∙ no⌠ bσ supported.
áá(3⌐ Thσ VF╒ channe∞ t∩ selec⌠ i≤ specifieΣ b∙ aε unsigneΣ fou≥-bi⌠ numbe≥ ì
áá(NNNN⌐ iε thσ VF╒ contro∞ byte.
áá(4⌐ Pictorially¼ thσ contro∞ bytσ i≤ a≤ follows:
.aw off
.pm 0
.cp 6
VFU Control Byte Description
7 6 5 4 3 2 1 0
--------------- ------------------------------------------
0 E E C N N N N Advance (EE)NNNN lines (C = line skip)
0 0 0 C N N N N Skip to VFU channel NNNN (C = VFU channel)
0 C E E N N N N Advance (EE)NNNN lines (C = line skip)
0 C 0 0 N N N N Skip to VFU channel NNNN (C = VFU channel)
áá Key║ ├ i≤ thσ VF╒ contro∞ bit.
.aw on
.pm 3
.lm 1
áá┴ VF╒ contro∞ bi⌠ polarit∙ (VCBP⌐ bi⌠ oµ onσ indicate≤ tha⌠ thσ thσ VF╒ ì
contro∞ bi⌠ (C⌐ i≤ truσ fo≥ ß VF╒ channe∞ commanΣ anΣ falsσ fo≥ ß linσ ski≡ ì
command« ┴ VCB╨ bi⌠ oµ zer∩ indicate≤ thσ oppositσ polarity«
áá┴ VF╒ contro∞ bi⌠ selec⌠ (VCBS⌐ bi⌠ oµ onσ indicate≤ tha⌠ thσ contro∞ bi⌠ ì
(C⌐ i≤ iε bi⌠ positioε ╢ anΣ thσ E┼ bit≤ arσ iε bi⌠ position≤ ╡ anΣ 4« ┴ VCB╙ ì
bi⌠ oµ zer∩ indicate≤ tha⌠ thσ contro∞ bi⌠ (C⌐ i≤ iε bi⌠ positioε ┤ anΣ thσ E┼ ì
bit≤ arσ iε bi⌠ position≤ ╢ anΣ 5.
áá┴ VF╒ extendeΣ ski≡ (VES⌐ bi⌠ oµ onσ indicate≤ tha⌠ thσ E┼ bit≤ arσ ì
supporteΣ fo≥ linσ ski≡ operations« ┴ VE╙ bi⌠ oµ zer∩ indicate≤ tha⌠ thσ E┼ ì
bit≤ arσ no⌠ supported.
ááFo≥ MOD┼ SELEC╘ aε automatiπ linσ feeΣ (Autofd⌐ bi⌠ oµ onσ specifie≤ tha⌠ ì
thσ targe⌠ asser⌠ thσ printe≥ interfacσ "Aut∩ Linσ Feedó signal« Aε AutofΣ ì
bi⌠ oµ zer∩ specifie≤ tha⌠ thσ targe⌠ negatσ thσ printe≥ interfacσ "Aut∩ Linσ ì
Feedó signal« Fo≥ MOD┼ SENS┼ thσ targe⌠ shal∞ returε thσ curren⌠ valuσ oµ ì
thi≤ bit.
.cp 35è.aw off
.pm 0
10.3.3.2. Printer Option≤ Page
.aw on
.pm 3
ááThσ printe≥ option≤ pagσ (Tablσ 1░-13⌐ support≤ contro∞ anΣ reportinτ oµ ì
variou≤ targe⌠ function≤ anΣ features.
.aw off
.pm 0
.cp 35
Table 10-13: Printer Options
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 ⁿ P╙ |Reserved| Page Code (05h) |
-----|-----------------------------------------------------------------------|
1 | Parameter Length (0Ah) |
-----|-----------------------------------------------------------------------|
2 | EVFU ⁿ Font Identificatioε |
-----|-----------------------------------------------------------------------|
3 | Reserved ⁿ Sle≈ Modσ ⁿ ReserveΣ | SCT┼ ⁿ AFC |
-----|-+---------------------------------------------------------------------|
4 | (MSB) |
-----|--¡ Maximuφ Linσ LengtΦ ---|
5 | (LSB⌐ |
-----|-----------------------------------------------------------------------|
6 | EVF╒ Forma⌠ Star⌠ Character |
-----|-----------------------------------------------------------------------|
7 | EVF╒ Forma⌠ Sto≡ Characte≥ |
-----|-+---------------------------------------------------------------------|
╕ | Linσ Sle≈ option≤ ⁿ Forφ Sle≈ Options |
-----|-----------------------------------------------------------------------|
╣ | Datß Terminatioε Option≤ ⁿ ReserveΣ |
-----|-----------------------------------------------------------------------|
10 ⁿ ReserveΣ |
-----|-----------------------------------------------------------------------|
11 ⁿ ReserveΣ |
==============================================================================
.aw on
.pm 3
ááThσ parameter≤ savablσ (PS⌐ bi⌠ i≤ onl∙ useΣ witΦ thσ MOD┼ SENS┼ command« ì
Thi≤ bi⌠ i≤ reserveΣ witΦ thσ MOD┼ SELEC╘ command« ┴ P╙ bi⌠ oµ onσ indicate≤ ì
tha⌠ thσ targe⌠ i≤ capablσ oµ savinτ thσ pagσ iε ß noε-volatilσ vendo≥-ì
specifiπ location.
ááAε electroniπ vertica∞ form≤ uni⌠ (EVFU⌐ bi⌠ oµ onσ indicate≤ tha⌠ ß tapσ o≥ ì
electroniπ vertica∞ form≤ uni⌠ i≤ presen⌠ iε thσ printe≥ device« Aε EVF╒ bi⌠ ì
oµ zer∩ indicate≤ tha⌠ thσ electroniπ vertica∞ form≤ uni⌠ shoulΣ no⌠ bσ useΣ ì
o≥ tha⌠ thσ uni⌠ i≤ no⌠ presen⌠ iε thσ printe≥ device«
.cp 10èááFo≥ thσ MOD┼ SELEC╘ command¼ thσ fon⌠ identificatioε fielΣ specifie≤ whicΦ ì
fon⌠ i≤ t∩ bσ used« Fo≥ thσ MOD┼ SENS┼ command¼ thi≤ fielΣ identifie≤ thσ ì
currentl∙ selecteΣ font« Thσ fon⌠ identificatioε code≤ arσ defineΣ a≤ ì
follows:
.aw off
.pm 0
.cp 5
Codσ Fon⌠ Identification
--------- --------------------
00h Defaul⌠ Font
01Φ ¡ 3FΦ Reserved
40Φ ¡ 7FΦ Vendor specific Font
.aw on
.pm 3
.cp 5
ááFo≥ thσ MOD┼ SELEC╘ command¼ thσ sle≈ modσ fielΣ control≤ thσ target'≤ ì
behavio≥ wheε ß SLE╫ AN─ PRIN╘ commanΣ i≤ receiveΣ witΦ ß channe∞ bi⌠ oµ zer∩ ì
(seσ 10.2.4)« Fo≥ thσ MOD┼ SENS┼ command¼ thi≤ fielΣ report≤ thσ curren⌠ sle≈ ì
mode« Thi≤ sle≈ modσ i≤ defineΣ a≤ follows:
.pm 1
.cp 15
.lm 9
Code Sle≈ Mode
---- ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡-
00b SLE╫ AN─ PRIN╘ command≤ witΦ ß channe∞ bi⌠ oµ zer∩ arσ supporteΣ ì
ááááááááwithou⌠ an∙ requireΣ setup.
01b SLE╫ AN─ PRIN╘ command≤ witΦ ß channe∞ bi⌠ oµ zer∩ arσ onl∙ accepteΣ ì
ááááááááafte≥ thσ initiato≥ issue≤ ß FORMA╘ commanΣ witΦ ß forma⌠ typσ oµ "se⌠ ì
ááááááááformó (t∩ initializσ thσ electroniπ vertica∞ form≤ unit).
10b SLE╫ AN─ PRIN╘ command≤ witΦ ß channe∞ bi⌠ oµ zer∩ arσ alway≤ ì
ááááááááaccepted« Thσ targe⌠ shal∞ usσ thσ electroniπ vertica∞ form≤ uni⌠ iµ ì
áááááááái⌠ ha≤ previousl∙ beeε initializeΣ o≥ i⌠ shal∞ initializσ thσ ì
ááááááááelectroniπ vertica∞ form≤ uni⌠ fo≥ linσ skippinτ b∙ sendinτ thσ EVF╒ ì
áááááááástar⌠ forma⌠ characte≥ immediatel∙ followeΣ b∙ thσ EVF╒ sto≡ forma⌠ ì
áááááááácharacte≥ (botΦ arσ defineΣ below⌐ prio≥ t∩ executinτ thσ SLE╫ AN─ ì
ááááááááPRIN╘ command.
11b Reserved
.pm 3
.lm 1
ááFo≥ thσ MOD┼ SELEC╘ command¼ ß ste≡ coun⌠ truncatσ enablσ (SCTE⌐ bi⌠ oµ onσ ì
indicate≤ tha⌠ thσ targe⌠ shal∞ assumσ thσ printe≥ truncate≤ sle≈ value≤ iε ì
SLE╫ AN─ PRIN╘ command≤ s∩ tha⌠ thσ datß i≤ printeΣ oε thσ firs⌠ linσ oµ thσ ì
nex⌠ form« ┴ SCT┼ bi⌠ oµ zer∩ indicate≤ tha⌠ thσ targe⌠ shal∞ assumσ thσ ì
printe≥ continue≤ t∩ sle≈ ove≥ form≤ boundarie≤ iε SLE╫ AN─ PRIN╘ command≤ iµ ì
thσ sle≈ valuσ exceed≤ thσ numbe≥ oµ remaininτ line≤ oε thσ curren⌠ form« Thσ ì
targe⌠ shal∞ returε thσ curren⌠ valuσ oµ thi≤ fielΣ iε thσ MOD┼ SENS┼ data.
ááAε ASCI╔ form≤ contro∞ (AFC⌐ bi⌠ oµ onσ indicate≤ tha⌠ thσ printe≥ support≤ ì
ASCI╔ form≤ contro∞ characters« Aε AF├ bi⌠ oµ zer∩ indicate≤ tha⌠ thσ printe≥ ì
doe≤ no⌠ suppor⌠ ASCI╔ form≤ contro∞ characters.
ááThσ maximuφ linσ lengtΦ fielΣ specifie≤ thσ maximuφ transfe≥ lengtΦ (maximuφ ì
numbe≥ oµ byte≤ pe≥ line⌐ t∩ bσ accepteΣ iε thσ SLE╫ AN─ PRIN╘ command« ┴ ì
valuσ oµ 0000Φ iε MOD┼ SELEC╘ specifie≤ tha⌠ thσ targe⌠ shal∞ usσ it≤ defaul⌠ ì
value« Iε an∙ case¼ thσ targe⌠ shal∞ repor⌠ it≤ actua∞ valuσ iε thσ MOD┼ ì
SENS┼ datß (no⌠ 0000h).
.cp 3
ááThσ EVF╒ forma⌠ star⌠ characte≥ fielΣ specifie≤ thσ characte≥ codσ t∩ bσ ì
useΣ b∙ thσ targe⌠ t∩ star⌠ thσ initializatioε oµ thσ electroniπ vertica∞ ì
form≤ uni⌠ iµ sle≈ modσ optioε 10Γ i≤ selected.
.cp 4èááThσ EVF╒ forma⌠ sto≡ characte≥ fielΣ specifie≤ thσ characte≥ codσ t∩ bσ useΣ ì
b∙ thσ targe⌠ t∩ sto≡ thσ initializatioε oµ thσ electroniπ vertica∞ form≤ uni⌠ ì
iµ sle≈ modσ optioε 10Γ i≤ selected.
.cp 20
ááThσ linσ sle≈ option≤ fielΣ specifie≤ thσ implementatioε oµ thσ linσ sle≈ ì
(usinτ ASCI╔ form≤ contro∞ characters⌐ iε thσ SLE╫ AN─ PRIN╘ command« Codσ ì
value≤ iε thi≤ fielΣ arσ defineΣ a≤ follows║
.lm 9
.pm 1
Code Linσ Sle≈ Option
----- ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡-
0h No⌠ implemented« (SLE╫ AN─ PRIN╘ command≤ causσ CHEC╦ CONDITIO╬ ì
áááááááástatu≤ witΦ ILLEGA╠ REQUES╘ sensσ key.)
1h Thσ targe⌠ shal∞ inser⌠ aε ASCI╔ carriagσ returε characte≥ (0Dh⌐ fo≥ ì
ááááááááeacΦ linσ t∩ sle≈ over.
2h Thσ targe⌠ shal∞ inser⌠ aε ASCI╔ linσ feeΣ characte≥ (0Ah⌐ fo≥ eacΦ ì
áááááááálinσ t∩ sle≈ over.
3h Thσ targe⌠ shal∞ inser⌠ aε ASCI╔ carriagσ returε characte≥ (0Dh⌐ anΣ ì
áááááááálinσ feeΣ characte≥ (0Ah⌐ fo≥ eacΦ linσ t∩ sle≈ over.
4h-7h Reserved
8h-Fh Vendo≥ Unique
.lm 1
.pm 3
ááThσ forφ sle≈ option≤ fielΣ specifie≤ thσ implementatioε oµ forφ slewinτ iε ì
thσ SLE╫ AN─ PRIN╘ command« Codσ value≤ iε thi≤ fielΣ arσ defineΣ a≤ follows:
.lm 9
.pm 1
Code Forφ Sle≈ Option
----- ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡-
0h No⌠ implemented« (SLE╫ AN─ PRIN╘ command≤ causσ CHEC╦ CONDITIO╬ ì
áááááááástatu≤ witΦ ILLEGA╠ REQUES╘ sensσ key.)
1h Thσ targe⌠ shal∞ inser⌠ aε ASCI╔ forφ feeΣ characte≥ (0Ch⌐ t∩ movσ t∩ ì
ááááááááthσ beginninτ oµ thσ nex⌠ form.
2h Thσ targe⌠ shal∞ inser⌠ aε ASCI╔ carriagσ returε characte≥ (0Dh⌐ anΣ ì
ááááááááforφ feeΣ characte≥ (0Ch⌐ t∩ movσ t∩ thσ beginninτ oµ thσ nex⌠ form.
3h-7h Reserved
8h-Fh Vendo≥ Unique
.lm 1
.pm 3
.cp 25èááThσ datß terminatioε option≤ fielΣ specifie≤ thσ terminatioε sequencσ t∩ bσ ì
issueΣ t∩ thσ printe≥ devicσ wheε ß SYNCHRONIZ┼ BUFFE╥ commanΣ i≤ received« ì
Codσ value≤ fo≥ thi≤ fielΣ arσ defineΣ a≤ follows:
.cp 18
.pm 1
.lm 9
Code Datß Terminatioε Option
----- ¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡¡-
0h Select≤ thσ targe⌠ defaul⌠ implementatioε (MOD┼ SELECT).
1h N∩ terminatioε sequence« (Thσ targe⌠ send≤ an∙ remaininτ datß iε it≤ ì
áááááááábuffe≥ t∩ thσ printe≥ devicσ witΦ n∩ terminatioε sequence.)
2h Thσ targe⌠ shal∞ prin⌠ an∙ buffereΣ datß followeΣ b∙ aε ASCI╔ carriagσ ì
ááááááááreturε characte≥ (0Dh).
3h Thσ targe⌠ shal∞ prin⌠ an∙ buffereΣ datß followeΣ b∙ aε ASCI╔ linσ ì
ááááááááfeeΣ characte≥ (0Ah).
4h Thσ targe⌠ shal∞ prin⌠ an∙ buffereΣ datß followeΣ b∙ aε ASCI╔ carriagσ ì
ááááááááreturn¼ linσ feeΣ characte≥ sequencσ (0Dh¼ 0Ah).
5h Thσ targe⌠ shal∞ senΣ an∙ buffereΣ datß followeΣ b∙ aε ASCI╔ forφ feeΣ ì
áááááááácharacte≥ (0Ch).
6h Thσ targe⌠ shal∞ prin⌠ an∙ buffereΣ datß followeΣ b∙ aε ASCI╔ carriagσ ì
ááááááááreturn¼ forφ feeΣ characte≥ sequencσ (0Dh¼ 0Ch).
7h Thσ targe⌠ shal∞ issuσ ß zer∩ linσ sle≈ commanΣ t∩ thσ printe≥ device.
8h-Bh Reserved
Ch-Fh Vendo≥ Unique
.lm 1
.pm 3
.cp 30
.aw off
.pm 0
10.3.3.3. Serial Printe≥ Interfacσ Parameter≤ Page
.aw on
.pm 3
ááThi≤ pagσ (Tablσ 1░-14⌐ i≤ intendeΣ t∩ suppor⌠ printe≥ device≤ whicΦ usσ thσ ì
industr∙-standarΣ seria∞ interfacσ usuall∙ referreΣ t∩ a≤ EI┴ R╙-232C.
.aw off
.pm 0
.cp 20
Table 10-14: Serial Printe≥ Interfacσ Parameters
==============================================================================
Bit| 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
Byte | | | | | | | | |
==============================================================================
0 ⁿ PS |Reserved| Page Code (04h) |
-----|-----------------------------------------------------------------------|
1 | Parameter Length (06h) |
-----|-----------------------------------------------------------------------|
2 | ReserveΣ ⁿ Sto≡ Bi⌠ LengtΦ |
-----|-----------------------------------------------------------------------|
3 | Parit∙ Selectioε |Reservedⁿ Bit≤ pe≥ Character |
-----|-+---------------------------------------------------------------------|
4 | RT╙ ⁿ CT╙ ⁿ ReserveΣ ⁿ Pacinτ Protocol |
-----|-----------------------------------------------------------------------|
5 | (MSB⌐ |
-----|--¡ ---|
6 | BauΣ Ratσ |
-----|--¡ ---|
7 ⁿ (LSB⌐ |
==============================================================================
.aw on
.pm 3
.cp 4èááThσ parameter≤ savablσ (PS⌐ bi⌠ i≤ onl∙ useΣ witΦ thσ MOD┼ SENS┼ command« ì
Thi≤ bi⌠ i≤ reserveΣ witΦ thσ MOD┼ SELEC╘ command« ┴ P╙ bi⌠ oµ onσ indicate≤ ì
tha⌠ thσ targe⌠ i≤ capablσ oµ savinτ thσ pagσ iε ß noε-volatilσ vendo≥-ì
specifiπ location.
ááThσ sto≡ bi⌠ lengtΦ fielΣ specifie≤ thσ lengtΦ oµ thσ sto≡ bit(s⌐ iε unit≤ ì
oµ 1/1╢ bit« Thσ targe⌠ ma∙ rounΣ thi≤ fielΣ a≤ describeΣ iε 6.5.4« ┴ sto≡ ì
bi⌠ lengtΦ oµ zer∩ iε thσ MOD┼ SELEC╘ commanΣ indicate≤ tha⌠ thσ targe⌠ shal∞ ì
usσ it≤ defaul⌠ value.
.cp 15
ááThσ parit∙ selectioε fielΣ specifie≤ parit∙ generatioε anΣ checkinτ a≤ ì
defineΣ iε thσ followinτ table:
.aw off
.pm 0
.cp 10
Code Parity Selection
---¡ ----------------
000b None
001b Mark
010Γ Space
011Γ Odd
100b Eveε
101b Reserved
110b Reserved
111b Reserved
.aw on
.pm 3
ááThσ bit≤ pe≥ characte≥ fielΣ specifie≤ thσ numbe≥ oµ bit≤ iε eacΦ character« ì
┴ valuσ oµ zer∩ iε thσ MOD┼ SELEC╘ commanΣ indicate≤ tha⌠ thσ targe⌠ shal∞ usσ ì
it≤ defaul⌠ characte≥ size.
.cp 5
ááFo≥ thσ MOD┼ SELEC╘ command¼ ß reques⌠ t∩ senΣ (RTS⌐ bi⌠ oµ onσ specifie≤ ì
tha⌠ thσ targe⌠ shal∞ insurσ thσ "Reques⌠ t∩ Sendó (RTS⌐ signa∞ iε thσ seria∞ ì
interfacσ follow≤ thσ linσ statσ oµ thσ "Datß Termina∞ Readyó (DTR⌐ signa∞ iε ì
thσ seria∞ interface« ┴ RT╙ bi⌠ oµ zer∩ specifie≤ tha⌠ thσ targe⌠ shal∞ se⌠ ì
thσ "Reques⌠ t∩ Sendó (RTS⌐ signa∞ t∩ "highó wheneve≥ thσ targe⌠ powe≥ i≤ on« ì
Fo≥ thσ MOD┼ SENS┼ command¼ thσ targe⌠ shal∞ repor⌠ thσ curren⌠ valuσ oµ thi≤ ì
field.
.cp 5
ááFo≥ thσ MOD┼ SELEC╘ command¼ ß clea≥ t∩ senΣ (CTS⌐ bi⌠ oµ onσ specifie≤ tha⌠ ì
thσ targe⌠ shal∞ dela∙ datß transmissioε t∩ thσ printe≥ devicσ unti∞ thσ ì
printe≥ devicσ assert≤ thσ "Clea≥ t∩ Sendó (CTS⌐ signa∞ iε thσ seria∞ ì
interface« ┴ CT╙ bi⌠ oµ zer∩ indicate≤ tha⌠ thσ targe⌠ shal∞ ignorσ thσ ì
"Clea≥ t∩ Sendó signal« Fo≥ thσ MOD┼ SENS┼ command¼ thσ targe⌠ shal∞ repor⌠ ì
thσ curren⌠ valuσ oµ thi≤ field.
.cp 15èááThσ codσ value≤ fo≥ thσ pacinτ protoco∞ fielΣ arσ defineΣ a≤ follows:
.aw off
.pm 0
.cp 10
Code Pacinτ Protocol
---- ---------------
0h None
1Φ XON/XOFF
2Φ ETX/ACK
3Φ DTR
4h-7Φ Reserved
8h-FΦ Vendo≥ specific
.aw on
.pm 3
ááThσ bauΣ ratσ fielΣ specifie≤ thσ bauΣ ratσ iε bit≤ pe≥ second« Thσ targe⌠ ì
ma∙ rounΣ thi≤ valuσ a≤ describeΣ iε 6.5.4« ┴ bauΣ ratσ oµ zer∩ iε thσ MOD┼ ì
SELEC╘ commanΣ specifie≤ tha⌠ thσ targe⌠ shal∞ usσ it≤ defaul⌠ bauΣ rate.
..end of section
.paè
áá (Thi≤ pagσ i≤ intentionall∙ blank.)
.paè