[comp.sys.ibm.pc] Help! DIP settings on Epson MX-80 serial board?

bio_zwbb@jhunix.HCF.JHU.EDU (Dr. William B. Busa) (07/04/89)

I have inherited an old Epson MX-80 printer with an optional
asynchronous serial board installed. Unfortunately, I have no
documentation on the serial board. Its DIP switches are currently
set for 9600 baud (determined by trial and error), which is too fast
for my intended application. Can anyone tell me what switch settings
will give me 1200 baud, etc.? Please e-mail replies to:

bio_zwbb@jhuvms

Bill Busa
Dept. of Biology
The Johns Hopkins University
(301)-338-8207

nts0302@dsacg3.UUCP (Bob Fisher) (07/06/89)

From article <2030@jhunix.HCF.JHU.EDU>, by bio_zwbb@jhunix.HCF.JHU.EDU (Dr. William B. Busa):
> I have inherited an old Epson MX-80 printer with an optional
> asynchronous serial board installed. Unfortunately, I have no
> documentation on the serial board. Its DIP switches are currently
> set for 9600 baud (determined by trial and error), which is too fast
> for my intended application. Can anyone tell me what switch settings
> will give me 1200 baud, etc.? Please e-mail replies to:
> 

Here are two lists - dip switches and some common control characters.
My printer is an Epson MX-80 with Graftrax Plus.

The book may be useful to you.  My book was published (1982 edition) by
Compusoft Inc, PO Box 196669, San Diego CA 92119.  According to page iii
of the book, it is available as Stock No. 004-000-00345-4 from the
US Government Printing Office, Washington, DC 20402.

Enjoy!

		- - - - - - - - - - - - - - - - - - - - - - - -

			EPSON MX-80 PRINTER DIP SWITCHES
			   (Appendix E in the manual)


(There are two switch banks.  SW1 has 8 switches, SW2 has 4 switches.)


SWITCH SUMMARY:
			ON			OFF

	SW1-8		Select fixed		Select not fixed
	SW1-7		Slashed zero		Regular zero
	SW1-6		Buzzer on		Buzzer off
	SW1-5		Emphasized		Normal
	SW1-4		Italic			Normal
	SW1-3		Paper out sensor off	Paper out sensor on
	SW1-2		Not Used		Not used
	SW1-1		Compressed		Normal

	SW2-4		1 inch skip over perf	Normal
	SW2-3		Auto LF with CF		LF must be from host
	SW2-2		Not used		Not used
	SW2-1		Not used		Not used


SWITCH	NORMAL		FUNCTION
NUMBER	POSITION

1-8	ON	When the switch is ON, printer is permanently in the "selected"
		mode and no external command can "deselect" it.  In the OFF
		position, it theoretically could be selected and deselected by
		external software codes.  Since the printer does not recognize
		these codes, we leave it in the ON position.  This refers to
		pin 36 on the connector.  Some computers control this pin; if
		they do control the pin, SW should be OFF.

1-7	OFF	Allows the option of regular or slashed zeros.  If ON, slashed
		zero is printed.  If OFF, regular zero is printed.

1-6	ON	if ON, buzzer will sound at ASCII 7 or paper-out signal.  If
		OFF, buzzer will not sound at all.

1-5	OFF	Selects the default printing mode.  Off gives normal print
		characters.  ON gives emphasized characters.  Emphasized has
		priority over compressed mode (SW1-1).

1-4	OFF	Determines the print font used.  OFF gives normal characters.
		ON gives italic characters.

1-3	OFF	Affects paper out detection.  With switch OFF, paper-out signal
		terminates printing.  With switch ON, printer continues without
		paper (this will not work if computer monitors pin 12.  PE
		signal will go high if SW1-3 is ON).

1-2	OFF	Not used

1-1	OFF	Determines default print width.  Off gives normal (10 CPI)
		character width.  On gives compressed (17.16 CPI) characters.
		Emphasized mode (SW1-5) has priority over compressed mode.



2-4	OFF	When ON, gives automatic 1 inch skip over perforation.  When
		OFF, gives no skip over perforation.

2-3	OFF	Forces automatic LF with each CR.  When OFF, LF must be
		provided via software as needed.

2-2	OFF	Not used

2-1	OFF	Not used

		- - - - - - - - - - - - - - - - - - - - - - - -

			EPSON MX-80 PRINTER CONTROL CODES
			   (Appendix B in the manual)

These are the control codes for Epson MX-80/100 printers.  Some things
to watch for ....

	The manual was printed in the days when BASIC was popular (maybe
	still is for some folks).  Some of the formats given use numeric
	digits.  Numeric digits are BINARY values, not decimal.  The
	same applies to the values for N.  True ASCII values are shown
	within quotes.  I stumbled over them for a while when I first
	bought my printer.

	There are two formats for the code to set form length.
		<ESC>"C"N	sets to N lines
		<ESC>"C"0N	sets to N inches

I have never used the graphics capabilities except to do the excersizes
in the book.  I can't vouch for their adequacy.

I have never had any problems with the lines flagged with the % symbol,
but see the note at the end of the codes.  Your printer may be different.




	DEC	HEX	ASCII	FUNCTION
%	0	00	NUL	Follows <ESC>"D" as terminator for TABS
	7	07	BEL	Sounds buzzer for 1/3 second.  Paper out rings
				for 3 seconds
	8	08	BS	Backspace. Empties printer buffer, then
				backspaces print head one space
	9	09	HT	Horizontal Tab. Print head moves to next tab
				stop
	10	0A	LF	Line Feed. Printer empties its buffer and does
				line feed at current line spacing and resets
				buffer pointer to zero
%	11	0B	VT	Vertical Tab - does single line feed
%	12	0C	FF	Advances paper to next logical TOF (top of
				form)
	13	0D	CR	Carriage Return.  Prints buffer contents and
				resets buffer character count to zero
	14	0E	SO	Shift Out.  Turns on double width mode to end
				of line unless cancelled by DC4(20)
	15	0F	SI	Shift In.  Turns on compressed character mode.
				Does not work with emphasized mode.  Stays on
				until cancelled by DC2(18).
%	18	12	DC2	Turns off compressed characters and empties
				buffer
%	20	14	DC4	Turns off double width mode (shift out only)
	27	1B	ESC	ASCII code for ESCAPE. Prepares printer to
				receive control codes
<ESC>	35	23	#	Accepts eighth bit "as is" from computer
<ESC>	45	2D	-	Underline mode.  N=0 turns underline OFF.
				N>0 turns underline ON
<ESC>	48	30	0	Sets line spacing to 1/8"
<ESC>	49	31	1	Sets line spacing to 7/72"
<ESC>	50	32	2	Returns line spacing to default of 1/6"
<ESC>	51	33	3	Sets line spacing to N/216". Stays on until
				changed.  Format: <ESC>"3"N,  1 <= N <= 255.
<ESC>	52	34	4	Italic character set ON
<ESC>	53	35	5	Italic character set OFF
<ESC>	56	38	8	Ignores "paper out" sensor
<ESC>	57	39	9	Enables "paper out" sensor
<ESC>	60	3C	<	One line unidirectional print.  Prints current
				line only from left to right
<ESC>	61	3D	=	Clears eighth bit (ie sets to zero)
<ESC>	62	3E	>	Sets eighth bit to 1
<ESC>	64	40	@	Resets all special modes to power up state
				including Top Of Form
<ESC>	65	41	A	Sets spacing of LF (line feed) to N/72"
<ESC>	67	43	C	Sets from length (FL) to N lines.  Default is 66
				Format: <ESC>"C"N, 1 <= N <= 127
<ESC>	67	43	C	Sets from length (FL) to N inches. Default is 11
				Format: <ESC>"C"0N, 1 <= N <= 22
<ESC>	68	44	D	Resets current tabs and sets up to 28 HT (horiz
				tabs).  TABs may range up to maximum width for
				character and printer size.  E.G. Maximum TAB
				for normal characters on MX-80 is 80.
				Format: <ESC>"D"N1 N2 N3...NN 0.
				Terminate TAB sequence with zero or 128.
<ESC>	69	45	E	Turns on emphasize mode.  Can't mix with
				superscript, subscript or compressed modes
<ESC>	70	46	F	Turns off emphasized mode
<ESC>	71	47	G	Turns on double strike mode
<ESC>	72	48	H	Turns off double strike mode, superscript and
				subscript modes
<ESC>	74	4A	J	Sets line spacing to N/216" for one line only
				and when received causes contents of buffer
				to print.  Format: <ESC>"J"N, 1 <= N <= 255.
<ESC>	75	4B	K	Sets dot graphics mode to 480 dots per 8" line
				(816 dots for 13.6" line
				Format: <ESC>"K"N1 N2, N1 and N2 determine line
				length.  Line length = N1 + 256*N2
				1 <= N1 <= 255
				0 <= N2 <= 255 (modulo 8, i.e. 8 = 0)
<ESC>	76	4C	L	Sets dot graphics mode to 960 dost per 8" line
				(1632 dots for 13.6" line)
				Format: <ESC>"L"N1 N2, N1 and N2 determine line
				length.  Line length = N1 + 256*N2
				1 <= N1 <= 255
				0 <= N2 <= 255 (modulo 8, i.e. 8 = 0)
<ESC>	78	4E	N	Sets skip over perforation to N lines
				Format: <ESC>"N"N, 1 <= N <= 127.
<ESC>	79	4F	O	Reset skip over perforation to 0 lines
<ESC>	81	5B	Q	Sets column width.  Format: <ESC>"Q"N,
				1 <= N <= maximum number of characters/line
<ESC>	83	5D	S	Sets superscript/subscript modes
				Format: <ESC>"S"N, N = 0 superscript,
				N > 0 subscript.
<ESC>	84	5E	T	Resets superscript, subscript and unidirectional
				printing (does not turn off double strike from
				script modes)
<ESC>	85	5F	U	Unidirectional printing.  Prints each line from
				left to right.  Format: <ESC>"U"N, N = 0 OFF,
				N > 0 ON.
<ESC>	87	61	W	Double width printing. Stays ON until turned OFF
				Format: <ESC>"W"N, N = 0 OFF, N = 1 ON.
				Has precedence over Shift Out (SO = CHR$(14)).
	127	7F	DEL	Deletes last character in printer buffer
	128	80	NUL	Follows <ESC>"D" as terminator for TABS
	135	87	BEL	Sounds buzzer fro 1/3 second.  Paper out rings
				for 3 seconds
	136	88	BS	Backspace. Empties printer buffer, then
				backspaces print head one space
	137	89	HT	Horizontal Tabulation.
	138	8A	LF	Line Feed.
	140	8B	VT	Vertical Tab - does single line feed
	141	8C	FF	Advances paper to next logical TOF (top of form)
	142	8D	CR	Carriage Return.
	143	8E	SO	Shift Out.  Turns on double width mode to end
				of line.
	144	8F	SI	Shift In.  Turns on compressed character mode.
				Does not work with emphasized mode.
	146	92	DC2	Turns off compressed characters
	148	94	DC4	Turns off double width mode (shift out only)
	155	9B	ESC	ASCII code for ESCAPE.
	255	FF	DEL	Deletes last character in printer buffer.

NOTE: Numbers flagged with a % may require the addition of 128 to make them
      work reliably.  When in doubt, add 128.
-- 
Bob Fisher (osu-cis!dsacg1!bfisher) 614-238-9071 (Autovon 850-9071)
From the Internet: bfisher%dsacg1.uucp@daitc.arpa
US Defense Logistics Agency Systems Automation Center
DSAC-TSX, Box 1605, Columbus, OH 43216-5002