Tandy CGP115 partial emulation - work in progress

This experimental page started off experimenting with the CANVAS for drawing and audio.

This plotter could be driven by 600Baud serial. For now, do some of the commands stored in a TextArea.

The Graphics commands seem to be the first letter of the line

The plotter is reset to Pen on left with paper midway vertically for 480x400 cartesian co-ordinate box.

using serial port

Paste CGP115 Graphics plotter commands. TEXT mode not supported yet.


Graphics Commands 

A	Reset - Return Pen to left, Reset origin, ( currently does not Return to Text Mode ) 
Cn	Change Colour 0=Black,1=Blue,2=Green,3=Red
D 	Draw Absolute x,y,.....
H 	Return to origin
I   Set Origin.
J 	Draw Relative x,y,.....
M 	Move x,y
L 	Line Type
P 	Print Text Characters - CGP115 font to be done
S 	Character Size, cpl=80/(size + 1), 480/80 = 6
Q 	Rotate Print Direction
R 	Move Relative x,y
X 	Draw X-Y Axis  axis,step,repeats

Text Commands - To be done

CHR$(8)  Backspace
CHR$(11) Reverse Line feed
CHR$(18) Select Graphic mode
CHR$(17) Select Text Mode
CHR$(29) Rotate Pen Holder

NOTE: This emulation remains in Graphics mode, when the A command is received. The paper has been scrolled to emit some paper for a 480x400 plot

The plot would move the pen left and right and roll the paper up and down.

It would use the the CGP115 Font to print text:

Doug Rice, 2024-10-06

Examples



A H M140,0 S4 S1 C0 Q0 Pdoug rice S2 C1 Q1 Pdoug rice S3 C2 Q2 Pdoug rice S4 C3 Q3 Pdoug rice

Test relative

A R10,0 I J0,10 H R10,0 I J0,10 H R10,0 I J0,10 H R10,0 I J0,10 H R10,0 I J0,10 H R10,0 I J0,10 H

Test Example

A M450,-150 I X0,6,20 X1,-10,16 A Preset:left,midway M50,180 I H PSet Origin to 50,180 A M50,-50 I H M0,0 PCrossHairs - Absolute H M-10,0 D10,0 M0,-10 D0,10 A M50,-100 I H C3 PCrossHairs - Relative H R-10,0 J20,0 H R0,-10 J0,20 A M50,20 I D0,10,10,10,10,0,0,0 H M0,-20 J0,10,10,10,10,0,0,0 A H M100,-10 PColored Boxes M100,0 J0,100,100,0,0,-100,-100,0 C1 M120,20 J0,100,100,0,0,-100,-100,0 L4 C2 M140,40 J0,100,100,0,0,-100,-100,0 L8 C3 M160,60 J0,100,100,0,0,-100,-100,0 M180,80 L12 C0 J0,100 J100,0 J0,-100 J-100,0 H M340,0 S4 S1 C0 Q0 Pdoug rice S2 C1 Q1 Pdoug rice S3 C2 Q2 Pdoug rice S4 C3 Q3 Pdoug rice