public abstract class MPS803 extends SerialIECDevice implements UserportPrinterEnvironment
General Specifications | |
A. Print method | Impact Dot Matrix |
B. Printing direction | Bi-directional |
C. Character matrix | 7x6 dot matrix |
D. Characters | Upper/lower case characters, numerals, symbols, and PET graphic characters |
E. Bit Image type | 7 Vertical Dots Bit Image Printing |
F. Character codes | CBM ASCII CODE (8 Bit} |
G. Character composition | Vertical: 7 dots [0.09", 2.4mm), Horizontal: 6 dots [0.08", 2.2mm) |
H. Dot size | 0.3mm (wire diameter), Horizontal pitch 1/60", Vertical pitch 1/72" |
I. Print speed | 60 characters per second |
J. Column width | 80 characters |
K. Column spacing | 10 characters/inch |
L. Line spacing | 6 lines/inch (USA) or 8 lines/inch (Europe}. 72/7 lines/inch in bit image printing |
M. Line feed speed | 4 lines/sec .... in character printing, 5.6 lines/sec ... in bit image printing |
N. Paper feed method | Friction feed, Tractor feed optional |
0. Paper width | Cut sheet, A4 210.8mm (8.3"'}, Letter size 2l6mm (8.5"), Continuous, 101.6mm (4.0") to 254mm (10jr), With optional tractor feed |
P. Number of copies | Original + 2 copies |
Q. Inked ribbon | Cassette type fabric ribbon [black], 8mm x 10 meters |
R. Ribbon life | 1.2 x 10 characters |
Modifier and Type | Field and Description |
---|---|
protected int |
bitCnt
Bit counter of the bit image printing.
|
protected static int |
CHAR_HEIGHT
Character height in dots.
|
protected static int |
CHAR_WIDTH
Character width in dots.
|
protected static int |
COLUMN_WIDTH
Maximum column with.
|
protected byte |
digitHighByte
Dot Address Determination.
|
protected int |
expectedDigits
Dot Address Determination (expected number of the following digits).
|
protected boolean[][] |
lineBuffer
Buffered line data to print (480 dots horizontal * 7 dots vertical).
|
protected int |
lineBufferPos
Current line buffer horizontal pixel position.
|
static int |
MAX_WIDTH
Maximum number of dots horizontally (6 pixels * 80 characters).
|
protected IPaper |
paper
Paper to print to.
|
protected int |
repeatN
Repeat Bit Image Printing.
|
protected int |
secondary
Secondary address.
|
protected int |
state
Current printer state (bit-mask of the fields above).
|
protected static int |
STATE_BIT_IMAGE_PRINTING
BIT_IMAGE_PRINTING state.
|
protected static int |
STATE_ENHANCE
ENHANCE_ON state.
|
protected static int |
STATE_ESCAPE
ESCAPE state
|
protected static int |
STATE_GRAPHIC
GRAPHIC_MODE state (BUSINESS_MODE, if not set).
|
protected static int |
STATE_REPEAT_BIT_IMAGE
REPEAT_BIT_IMAGE state.
|
protected static int |
STATE_REVERSE
REVERSE_ON state.
|
protected boolean |
strobe
Strobe signal.
|
protected byte |
value
Userport value.
|
byt, enabled, flags, IECBUS_DEVICE_READ_ATN, IECBUS_DEVICE_READ_CLK, IECBUS_DEVICE_READ_DATA, IECBUS_DEVICE_WRITE_CLK, IECBUS_DEVICE_WRITE_DATA, P_ATN, P_BIT0, P_BIT0w, P_BIT1, P_BIT1w, P_BIT2, P_BIT2w, P_BIT3, P_BIT3w, P_BIT4, P_BIT4w, P_BIT5, P_BIT5w, P_BIT6, P_BIT6w, P_BIT7, P_BIT7w, P_DONE0, P_DONE1, P_EOI, P_EOIw, P_FRAMEERR0, P_FRAMEERR1, P_LISTENING, P_PRE0, P_PRE1, P_PRE2, P_READY, P_TALKING, primary, prnr, secondaryPrev, st, timeout
Constructor and Description |
---|
MPS803(IECBus bus,
int p,
int s)
Create a printer.
|
Modifier and Type | Method and Description |
---|---|
void |
close(int device,
byte secondary) |
byte |
getStatus() |
void |
listenTalk(int device,
byte secondary) |
void |
open(int device,
byte secondary) |
void |
printerUserportWriteData(byte b) |
void |
printerUserportWriteStrobe(boolean s) |
void |
putc(byte c)
This method implements the state machine.
|
byte |
read(int device,
byte secondary) |
void |
reset()
Reset printer.
|
abstract void |
setBusy(boolean flag)
Signal busy printer.
|
void |
setPaper(IPaper p)
Set printer paper output.
|
void |
turnPrinterOnOff(boolean on)
Turn on/off printer.
|
void |
unlisten(int device,
byte secondary) |
void |
untalk(int device,
byte secondary) |
void |
write(int device,
byte secondary,
byte data) |
clk, clock, getID, setClock, setDeviceEnable
protected static final int COLUMN_WIDTH
protected static final int CHAR_WIDTH
protected static final int CHAR_HEIGHT
public static final int MAX_WIDTH
protected static final int STATE_REVERSE
protected static final int STATE_GRAPHIC
protected static final int STATE_BIT_IMAGE_PRINTING
protected static final int STATE_ENHANCE
protected static final int STATE_REPEAT_BIT_IMAGE
protected static final int STATE_ESCAPE
protected int state
protected boolean[][] lineBuffer
protected int lineBufferPos
protected int expectedDigits
protected byte digitHighByte
protected int repeatN
protected int bitCnt
protected int secondary
protected byte value
protected boolean strobe
protected IPaper paper
public MPS803(IECBus bus, int p, int s)
p
- primary device numbers
- secondary device numberpublic void reset()
reset
in class SerialIECDevice
public void printerUserportWriteStrobe(boolean s)
printerUserportWriteStrobe
in interface UserportPrinterEnvironment
public final void printerUserportWriteData(byte b)
printerUserportWriteData
in interface UserportPrinterEnvironment
public void turnPrinterOnOff(boolean on)
on
- true (on), false (off)public void setPaper(IPaper p)
p
- paper to be usedpublic void putc(byte c)
c
- byte code to print or printer commandpublic abstract void setBusy(boolean flag)
flag
- busy flagpublic void open(int device, byte secondary)
open
in class SerialIECDevice
public void close(int device, byte secondary)
close
in class SerialIECDevice
public void listenTalk(int device, byte secondary)
listenTalk
in class SerialIECDevice
public void unlisten(int device, byte secondary)
unlisten
in class SerialIECDevice
public void untalk(int device, byte secondary)
untalk
in class SerialIECDevice
public byte read(int device, byte secondary)
read
in class SerialIECDevice
public void write(int device, byte secondary, byte data)
write
in class SerialIECDevice
public byte getStatus()
getStatus
in class SerialIECDevice
Copyright © 2018 Ken Händel. All rights reserved.