APPENDIX P  RS232 INFO AND OUTP EXAMPLE   CON'T

ASCII		FUNCTION	FUNCTION	ASCII		FUNCTION	FUNCTION
CODE		ACRONYM		CODE		ACRONYM

 0		NUL		Null	17	DC1	Device Control 1
 1		SOH		Start heading	18	DC2		Device Control 2
 2		STX		Start text	19	DC3		Device Control 3
 3		ETX		End text	20	DC4		Device Control 4
 4		EOT		End transmission	21	NAK		Negative ACK
 5		ENQ		Enquiry	22	SYN		Synchronous idle
 6		ACK		Acknowledge	23	ETB		End transmission block
 7		BEL		Bell	24	CAN		Cancel
 8		BS		Backspace	25	EM		End medium
 9		HT		Horizontal tab	26	SUB		Substitute
10		LF		Line feed	27	ESC		Escape
11		VT		Vertical tab	28	FS		File separator
12		FF		Form feed	29	GS		Group separator
13		CR		Carriage return	30	RS		Record separator
14		SO		Shift out	31	US		Unit separator
15		SI		Shift in
16		DLE		Data link escape

SOFTWARE OPTIONS

OPTION			Enter As

BAUD RATE=110, 300,600,
1200, 2400, 4800, 9600	.BA=(desired rate)
DATA BITS= 7 or 8		.DA= 7 (or 8)
PARITY=ODD,EVEN,ONE	.PA= O (or E or N)
TWO STOP BITS		.TW
NULLS			.NU
CHECK PARITY		.CH
ECHO OFF		.EC
CRLF OFF			.CR
LF OFF			.LF

Only Baud rate and stop bits are allowed in an OLD/SAVE to RS232
Only Nulls, Echo off, Crlf off and Lf off can be used with PIO

Example program using OUTP

100 A$="THIS IS A TEST"
110 CALL OUTP(1,7)		Ring printer bell
120 CALL OUTP(1,15)		Set printer to condensed
130 FOR X=1 TO 14		\
140 A=ASC(SEG$(A$,X,1))	Send ASCII value to printer
150 CALL OUTP(1,A)		 /
160 NEXT X			/
170 CALL OUTP(1,18)		Cancel condensed
180 CALL OUTP(1,10)		Send linefeed
190 !CALL OUTP(1,13)		Carriage return(uni-directional printers)
The 1 in OUTP is RS232 port at CRU >1300   2 would be >1500