Kyocera TASKalfa 4501i PRESCRIBE Commands Technical Reference Manual - Rev. 4. - Page 214
Setting the Scaling Points, Sample KC-GL Program, IP0
View all Kyocera TASKalfa 4501i manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 214 highlights
Chapter 7 Emulation 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. 29. on page 103. IN; IP0,0,400,400; SC0,1,0,1; "Initialize plotter" "P1 and P2: 1-cm square1" "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 label2" 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. 7-102