HP 7550A Emulation [KC-GL] (Mode 8)
7-101
Setting the Scaling Points
At power-up, scaling point P1 will be in the lower left corner of the paper, the default
plot position. Point P2 is always diagonally opposite to P1. These two points define the
diagonal of a rectangle, which by default is centered on the paper. P1 and P2 can be
moved by an instruction which defines any rectangle, independent of the actual paper
size.
The default positions of the scaling points in modes A and B are listed at the end of this
section as Coordinate Values.
Sample KC-GL Program
The following file draws circles according to the KC-GL instructions. The result appears
in Figure 7. 30. on page 102.
IN; “Initialize plotter”
IP0,0,400,400; “P1 and P2: 1-cm square
1
”
SC0,1,0,1; “Scale: user unit = 1 cm”
DT ;
SP1; “Select pen 1”
PA10,19; “Move pen”
CI.1;PR0,-.1; “Draw four circles”
CI.2;PR0,-.2;
CI.4;PR0,-.4;
CI.8;PR0,-.8;
SP2; “Select pen 2”
CI1.6;PR0,-1.6; “Draw two circles”
CI3.2;PR0,-3.2;
SP8; “Select pen 8”
CI.1;PR.5,-.5; “Draw circle”
SP2; “Select pen 2”
CS0;SI.2,.3;LBCURSOR* ; "Print label
2
”
SP;
1
This instruction locates P1 at 0, 0 and P2 at 400, 400 in plotter units. 400 plotter units=1 cm (0.025 mm x 400).
2
ETX (End of Text, character code 03) is required as a terminator.