1. Trang chủ
  2. » Kỹ Thuật - Công Nghệ

Tài liệu Understanding HPGL pptx

49 286 0
Tài liệu đã được kiểm tra trùng lặp

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Understanding Hpgl
Trường học Hewlett-Packard University
Thể loại Tài liệu
Định dạng
Số trang 49
Dung lượng 204,5 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

To produce a sample HPGL file, configure a CAD package to plot to file using an HPGL driver possibly called "HP Plotter" or given a specific model number, such as HP7220 or HP7586.. Even

Trang 1

Understanding HPGL

Hewlett-Packard has found itself in the fortunate position of having creating two de facto standards

for output devices: HPGL (short for Hewlett-Packard Graphics Language) and PCL, short for Printer Control Language Although HPGL was intended for HP's line of pen plotters, variants have found their way into inkjet and laser printers PCL, on the other hand, is strictly used by HP for its raster devices and is very slowly loosing favor to PostScript and Windows-based direct-GDI

A Brief History of HPGL

HPGL is a command set embedded in the ROM of pen plotters to help reduce the work required by applications programmers to create plotted output HPGL uses two-letter mnemonics as instructions for drawing lines, circles, text, and simple symbols HPGL has evolved over the years as HP added features to its line of pen, electrostatic, inkjet, and laser plotters and printers

However, there is one primary drawback to HPGL: it is bulkier than other plotting languages, which means it takes longer to transmit an HPGL plot file than, say, a Houston Instruments' DM/PL (short for digital microprocessor plotting language) plot file To overcome the limitation, Hewlett-Packard in 1988 introduced HPGL/2, which featured

"polyline encoding," a form of data compression that reduces the plot file size and, hence, transmission time by two-thirds

With HPGL being the de facto plotting standard, competitors inevitably include HPGL or some similarly-named dialect in their plotter products In addition, HPGL has become a form of CAD drawing translation of last resort, since all CAD packages produce HPGL files and several read the format

Coordinate Systems

One irritant to HPGL is that there are two different coordinate systems in use Small-format plotters, including A- and B-size plotters, locate the origin at the lower-left corner; large-format plotters, including D- and E-size plotters, located the origin at the center of the media

TIP: HPGL uses the plu (short for plotter units) as its form of measurement There are 40 plu per

millimeter and 1,016 plu in one inch

All plotting languages have two forms of limits: (1) hard limits; and (2) soft limits The hard limits are the limits beyond which the plotter cannot plot due to physical constraints The soft limits are usually imposed by the application software generating the plot file Any part

of the drawing extending beyond the limits (hard or soft) is clipped (is not be plotted) HPGL names the plot extents as P1 (the lower-left corner) and P2, the upper-right corner

Reading An HPGL Plot File

A typical HPGL plot file consists mostly of ASCII characters with some control codes thrown in You can read the file with any text editor Since the plot files tend to be written

as one long line (no CR or LF), it is helpful to have a text editor with no limitation on line length

Trang 2

To produce a sample HPGL file, configure a CAD package to plot to file using an HPGL driver (possibly called "HP Plotter" or given a specific model number, such as HP7220 or HP7586) Create a very simple drawing (a couple of lines), then plot the drawing to disk When you load a plot file into the text editor, it looks something like this:

Plot initialization data:

[Esc].(;.I81;;17:[Esc].N;19:IN;SC;PU;PU;SP1;LT;VS36;

Plot data:

PA12345,4567;PD;PA-2345;6789; et cetera

Plot termination data:

PU;PA0,0;SP;EC;PG1;EC1;OE;

Decoding the HPGL Code

HPGL consists of two kinds of instructions:

• 1 HPGL instructions

• 2 Device-control instructions (or DCI, for short)

The most typical HPGL instruction is:

PA1234,5678;

The PA instruction moves the pen to absolute position (1234,5678) in plu coordinates The instruction has four parts to its syntax: PA is an HPGL command (in this case, to move the pen)

 1234 and 5678 are parameters (in this case, absolute coordinates)

 , a separator (the comma) between two or more parameters

 ; and a terminator (the semi-colon)

PA All HPGL instructions start with a two-letter mnemonic For example, PA is the

abbreviation for Pen Absolute, a pen positioning command Other common command mnemonics include:

PD for pen down

PU for pen up

SP for select pen

VS for velocity speed

1234 and 5678 Most HPGL instructions include one or more parameters to modify their

meaning Here, 1234 and 5678 are the absolute pen coordinates in plu Parameters of other instructions are the pen number and plotter speed

TIP: To use the default parameter of an instruction, simply leave out the parameter value

, (separator) When an instruction uses more than one parameter, HPGL wants them

; (terminator) To indicate the end of the instruction, you have the option of using a

semi-colon ( ; ) or nothing at all

Trang 3

TIP: Use the semi-colon when you want to make the plot file legible to humans; use no terminator

to significantly reduce transmission time and file size

Trang 4

Device-Control Instructions

HPGL uses device-control instructions to set up the plotter's hardware These instructions set up communications between the CAD software and the plotter, return plotter status data, reset the plotter, et cetera

Device-control instructions (DCI, for short) begin with the escape character (ASCII 27, or

1B in hex) shown as [Esc] in this tutorial Text editors often show Escape as a left arrow

( <- ) or as Ctrl-Bracket ( ^[ ) A typical HP device-control instruction looks like this:

[Esc].N0;19:

The purpose of this DCI is to specify the Xoff (short for transmission off) trigger character, which tells the plotter which ASCII character the CAD software expects to receive as the Xoff character, as follows:

[Esc] (Escape followed by period) Alerts the plotter that a device-control instruction

follows

N This DCI specifies the Xoff handshake character.

0 Value of intercharacter delay

TIP: The default value is zero; default DCI values can be omitted, as in [Esc].N;19;

; (separator) Separates DCI parameters

TIP: The separator is optional for DCIs that don't use parameters

19 The ASCII value of the Xoff character ASCII 19 is DC3, a commonly-used value.

: (terminator) Terminates the DCI

TIP: DCIs with parameters must end with the colon ( : ); the terminator is optional for DCIs

without parameters

Initializing the HPGL Plot File

A typical HPGL plot file consists mostly of ASCII characters with some control codes thrown in The plot initialization data (in this case, generated by AutoCAD R11) looks something like this:

Trang 5

[Esc].(; instructs the plotter to interpret data as HPGL and DCI instructions, rather than

plotting the data stream as literal text characters This DCI has no parameters; [Esc].Y is an alternative provided by HPGL

[Esc].I81;;17: sets the parameters for Xon-Xoff handshake mode, with the following

parameters:

81; (Xoff threshold level) When 81 bytes remain free in the plotter buffer, the plotter sends

the Xoff instruction to the CAD software Xoff tells the CAD software to stop sending data, otherwise the plotter buffer fills up and data is lost TIP: If the byte size is too large, HPGL automatically reduces the size to one byte smaller than the plotterþs logical I/O buffer size; use [Esc].Sn: to find the size of the buffer

; (ommited parameter) Since the next parameter is missing, the plotter is able to differentiate

between Xoff/Xon and Enq/Ack protocols TIP: You can substitute 0 (zero) for the ommited parameter

17: (Xon trigger character) After the CAD software stops sending data to the plotter, the

plotter uses the Xon trigger character to tell the software to continue sending data ASCII 17

is DC3, the standard value TIP: You can specify any decimal ASCII value between 0 and

126 and use as many as ten characters

[Esc].N;19: was described earlier

IN; (INitialize) Resets most of the plotter's functions to default settings, some of which

follow:

• Set linetype to solid (equivalent HPGL instruction is LT0;)

• Set plotting mode to absolute (PA;)

• Set chord angle to 5 degrees (CT;)

• Turn off user scaling (SC;)

• Recognize all HPGL errors (IM;)

• Set input window to hardclip limits (IW;)

• Set units to metric and pen width to 0.3mm (PT;)

• Lift pen (PU;) and move it within 600 plu of hardclip limits

TIP: Settings made on the plotter's front panel are not reset

TIP: Recall that the semi-colon ( ; ) terminator is optional

SC; (SCale) Scale the coordinate system to the plot's extents, P1 and P2; the default is no

scale (the CAD software handles the scaling)

PU; (Pen Up) Lifts the pen; optionally moves the pen to a new location

SP1; (Select Pen) Selects a pen, #1 in this case

TIP: HPGL automatically returns the current pen to its holder at the end of a plot

LT; (Line Type) Selects the linetype and pattern length; the default is continuous lines (the

CAD software handles the linetype generation)

VS36; (Velocity Select) Selects the pen speed in cm/sec; optionally selects the pen by

number

Trang 6

TIP: The pen speed is sometimes overruled by the setting of the pen carousel HP suggests using a

slower speed to create a slightly thicker line (but at the expense of longer plot time)

Trang 7

HP-GL/2 History

HP-GL/2 was added to the PCL language in PCL Level 5, for LaserJet III family printers and is supported in LaserJet 4 family printers with PCL Level 5 Enhanced To print in HP-GL/2 you are required to leave the PCL environment and enter the HP-GL/2 environment Switching into and out

of HP-GL/2 requires only a few commands, and cannot be done through the front menu panel Some software applications may easily switch between the two modes as needed without affecting performance

Trang 8

Learning HP-GL/2

The best way to learn HP-GL/2 is to read the "Introduction to HP-GL/2 Graphics" in the PCL 5 Printer Language Technical Reference Manual for an overview of HP-GL/2 Then find the specific commands you need in subsequent chapters Reading through the examples, then trying to print them using a text editor or programming language is the best way to learn HP-GL/2

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

SP1; Selects pen number 1 (black) Even though there is no physical pen, the SP command must

be used to enable printing

Trang 9

SI width, height; or SI;

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

SP1; Selects pen number 1, (black) Even though there is no physical pen,

the SP command must be used to enable printing

PA700,2000;SI1,1.5;LBPrint#; Moves to (700,2000); specifies an absolute character size of 1

cm wide by 1.5 cm high; prints the word "Print"

PA4000,2000;SI1,1.5;LBPrint#; Moves the pen to (4000,2000) and specifies a character size of

1 cm by 1.5 cm; prints the word "Print"

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

Trang 10

EcE Resets the printer

Ec%0B Enters HP-GL/2 mode

IN; Initializes HP-GL/2 mode

SP1; Selects pen number 1, (black) Even though there is no physical pen, the SP command must

be used to enable printing

PA3000,3000; Specifies absolute plotting and moves to location (3000,3000)

FT3,400,45;RR1000,1000;

ER1000,1000; Specifies a fill type of number 3 (parallel lines), with each line 400 plotter units (plu) apart and set at a 45 degree angle RR fills a rectangle using the current pen location as the lower left corner, and a point 1000 plu to the right and 1000 plu up as the upper right corner The ER edges the same rectangle just filled

PR1000,0;FT4,400,45;RR1000,

1000;ER1000,1000; Moves 1000 plu to the right, andselects fill type 4 (cross-hatch); then draws a rectangle the same size as the first one, and fills it with the cross-hatch pattern just specified, then edges it with the ER command

PR1000,0;FT3,400,45;

RR1000,1000;ER1000,1000; Moves to the right another 1000 plu, and creates another rectangle of the same size, then fills this one with the number 3 fill pattern again Then edges the rectangle just specified

PA3000,1500;AC3000,1500;

RR1000,1000;ER1000,1000; Moves the pen to absolute position (3000,1500), and moves the anchor corner to location (3000,1500) Fills a rectangle with the fill pattern selected (number 3 from the command above), and

edges it

PA4000,1500;AC4000,1500;

FT4,400,45;RR1000,1000, ER1000,1000; Moves to location (4000,1500) andspecifies the

location as the anchor corner Selects fill type number 4 again, then fills, and edges a rectangle

EcE Sends a reset to end the job and eject the page

NOTE Due to space limitations these lines of code appear on more than one line When entered into the DOS editor they should appear on one line

Trang 11

NOTE The Bezier command is not supported in any printers prior to the HP LaserJet 4 printer

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the Printer

SP1; Selects pen number 1 (black) Even though there is no physical pen, the SP command must

be used to enable printing

The other three control points for the second curve are (4064,8128), (7112,7620), and (7112,2032)

Ec%0A Enters PCL mode

This command, BR or Bezier Relative , draws bezier curves using relative coordinates This

command uses the current pen position as the first control point, and specifies the other three control points as relative increments from the first point For more information see the PCL 5 Printer Language Technical Reference Manual

NOTE The Bezier command is not supported on printers prior to the LaserJet

4 printer

LEGEND: Ec = [Ctrl] [P] Esc] in DOS EDIT

EcE Resets the Printer

Ec%0B Enters HP-GL/2 mode

Trang 12

IN; Initializes HP-GL/2 mode

SP1; Selects pen number 1 (black) Even though there is no physical pen, the SP command must

be used to enable printing

Changing Radii and Line Types in Circles

The Line Type command specifies a line pattern to be used when drawing lines You can specify the line type, pattern length and the mode The line type specifies a particular pattern, the pattern length specifies the length of one complete line pattern, and mode specifies how the values of the pattern length parameter are interpreted For more information see the PCL 5 Printer Language Technical Reference Manual

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

SP1; Selects pen number 1 (black) Even though there is no physical pen, the SP command must

be used to enable printing

Trang 13

SP1; Selects pen number 1, (black) Even though there is no physical pen, the SP command must

be used to enable printing

Trang 14

differences in appearance between chord angles on circles For more

information see the PCL 5 Printer Language Technical Reference Manual

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

SP1; Selects pen number 1 (black) Even though there is no physical pen, the

SP command must be used to enable printing

SC-3000,3000,-2000,2000,1; Specifies a scaling mode, making P1 equal

to (-3000,-2000) user units and P2 equal to (3000,2000) user units With

isotropic scaling specified

PA-1700,2000;CI750,45; Specifies absolute plotting and moves to

(-1700,2000), the center of the circle, to be drawn Draws a circle with a radius of

750 user-units and a chord angle of 45 degrees

PA300,2000;CI750,30; Specifies absolute plotting and moves to (300,2000)

to draw another circle This circle is drawn with a radius of 750 user-units, and a chord angle of 30 degrees

PA-1700,-200;CI750,15; Specifies absolute plotting and moves to (-1700,-200) the center point of a third circle This circle is drawn with a radius of 750 user-units, and a chord angle of 15 degrees

PA300,-200;ci750; Specifies absolute plotting and moves to (300,-200),

the center of the fourth circle Draws this circle with a radius of 750 user-units and the default chord angle of 5 degrees

Trang 15

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

EcE Sends a reset to end the job and eject the page

Subroutine to Print the Arrow Image

-Creating and Printing a Raster Fill Pattern

=========================================

The Raster Fill ( RF ) Command is used to define a fill pattern to be used in other fill commands The RF command does not select a fill type, it defines a user created fill type that can then be selected using the Fill Type ( FT )

command, with a type parameter of 11 and the corresponding raster fill index number for the second parameter For example FT11,3; for the index number 3

Trang 16

For more information see the PCL 5 Printer Language Technical Reference

Manual The syntax for the RF command is as follows:

RF index,width,height,pen number pen number; or RF index; or RF;

Raster Fill Pattern Parameters

Index Specifies the index number of the pattern being defined

Width and Height Specifies the width and height in pixels of the pattern being defined

Pen Number Represents a pixel in the pattern being defined and indicates

its color, black (>0) or white (0) This parameter defines pixels left to right, top

to bottom, and the total number of pen number parameters should be equal to

the width times the height parameter For example, to define a pattern that is 8 x16 pixels, you need 128 pen number parameters If not all pen parameters are specified, the remainder parameters default to zeros (white) The pattern that is created is printed in rows parallel to the plotter-units X-axis

Raster Fill Pattern Program

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

SP1; Selects pen number 1, (black) Even though there is no physical pen,

the SP command must be used to enable printing

edges the polygon just drawn

Ec%0A Enters the PCL mode

Trang 17

EcE Sends a reset to end the job and eject the page

-

-Default Settings for The HP-GL/2 Environment

=========================================

When you enter the HP-GL/2 environment for the first time, all settings are at their default When you exit HP-GL/2 to send other PCL commands then re-enter HP-GL/2, most variables retain their previous values However, the following changes in the PCL environment can affect the HP-GL/2

environment

Related Topics:

Resetting the Printer ("Esc E", or Control Panel Reset)

Page Size, Page Length, or Orientation Command

Redefining the PCL Picture Frame

Setting the Picture Frame Anchor Point

Setting an HP-GL\2 Plot Size

Resetting the Printer ("Esc E", or Control Panel Reset)

* Executes an IN ( Initialize ) command

* Defaults the PCL Picture Frame size

* Defaults the PCL Picture Frame anchor point

* Defaults the HP-GL/2 Plot size

* Defaults the PCL logical page orientation

Page Size, Page Length, or Orientation Command

* Defaults the PCL Picture Frame anchor point

* Defaults the PCL Picture Frame

* Defaults the HP-GL/2 plot size

* Defaults P1 and P2 ( IP,IR )

* Resets the soft-clip window to the PCL Picture Frame boundaries ( IW )

* Clears the polygon buffer ( PM0, PM2 )

* Updates the cursor to the lower left corner of the picture frame ( P1 ) Redefining the PCL Picture Frame

* Defaults P1 and P2 ( IP,IR )

* Resets the soft-clip window ( IW ) to the PCL Picture Frame

boundaries

* Clears the polygon buffer ( PM0, PM2 )

* Updates the current pen position to the lower-left corner of the picture frame ( P1)

Setting the Picture Frame Anchor Point

* Defaults P1 and P2 ( IP, IR )

* Resets the soft-clip window to the PCL Picture Frame boundaries ( IW

Trang 18

)

* Clears the polygon buffer ( PM0, PM2 )

* Updates the current pen position to the lower-left corner of the picture frame ( P1)

Setting an HP-GL\2 Plot Size

* Changes the picture frame scaling factor

-

-Drawing Arcs

=========================================

The Arc Absolute (AA), and the Arc Relative (AR), commands use the

following method for drawing arcs Your current pen location becomes one end

of the arc; you specify the center point with one parameter (setting the radius), and set another parameter to specify the number of degrees through which you want the arc drawn For more information see the PCL 5 Printer Language Technical Reference Manual

LEGEND: Ec = [Ctrl] [P] Esc] in DOS EDIT

EcE Resets the printer

SP1; Selects pen number 1 (black) Even though there is no physical pen, the

SP command must be used to enable printing

-Drawing Basic Wedges

=========================================

The wedge commands, Edge Wedge ( EW ) and Fill Wedge ( WG ), use your current pen location as the center point of the wedge You then specify the radius, the start angle, and the sweep angle to complete the wedge The angles are measured counterclockwise, zero at the 3 o-clock position For more information see the PCL 5 Printer Language Technical Reference Manual

Syntax for the EW command is as follows: EW[radius],[start angle],[sweep angle];

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

Trang 19

EcE Resets the printer

-Drawing Bezier Curves

=========================================

The Bezier Absolute ( BZ ) and Bezier Relative ( BR ) commands use your current pen position as the first control point in the bezier curve You specify the second, third and fourth control points For more information see the PCL 5 Printer Language Technical Reference Manual

LEGEND: Ec = [Ctrl] [P] Esc] in DOS EDIT

EcE Resets the printer

PA1000,5000;PD; Specifies absolute plotting and moves to position

(1000,5000) then puts the pen down

BZ2000,8000,4000,2000,5000,5000; Draws a bezier curve with

(1000,5000) as the starting point (first control point) Specifies (2000,8000), (4000,2000), and (5000,5000) as the second, third and fourth control points

Trang 20

LEGEND: Ec = [Ctrl] [P] Esc] in DOS EDIT

EcE Resets the printer

CI500; Draws a circle with a radius of 500 plu (plotter units); the center of the

circle is the current pen location (2400,2500)

-Drawing Equal-Size Pictures on a Page

=========================================

For more information see the PCL 5 Printer Language Technical Reference

Manual

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

Trang 21

SC0,10,0,15; Sets up user-unit scaling to range from (0,0) to (10,15)

SP1; Selects pen number 1 Even though there is no physical pen, the SP command must be used to enable printing

PA0,0; Begins absolute plotting from the origin (0,0)

PD10,0,10,15,0,15,0,0;PU; Pen Down and print from (0,0) to (10,0) to

(10,15) to (0,15) to (0,0); then Pen Up

PD10,0,10,15,0,15,0,0;PU; Pen Down and print from (0,0) to (10,0) to

(10,15) to (0,15) to (0,0); then Pen Up

-Drawing Filled Rectangles

=========================================

The Fill Rectangle Absolute (RA) and Fill Rectangle Relative (RR) commands fill their rectangles with the default or current fill pattern When you use these commands, the rectangle created does not have an edge Therefore, if you want the rectangle to have an edge, you should use the edge or outline rectangle commands, Edge Polygon ( EP ) For more information see the PCL 5 Printer Language Technical Reference Manual This example shows one rectangle with

an edge and another without

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

1000 plu in the Y direction from the starting location

Trang 22

EP; Draws an edge around the rectangle that was just drawn Since the previous RR command leaves its definition in the polygon buffer (1500,1000), you do not need to specify the coordinates again

PR2000,0; Specifies relative plotting and moves the pen 2000 plu in the

X direction from the current pen location

FT4,100,45; Specifies fill type number 4 (cross-hatching), sets the spacing

to 100 plu between fill lines, and sets the fill line angle to 45 degrees

RR1500,1000; Fills a rectangle with the currently specified fill type Using the current relative pen location of (0,0) as the lower left corner of the rectangle and a point (1500,1000) relative plu away for the upper right corner

LEGEND: Ec = [Ctrl] [P] Esc] in DOS EDIT

EcE Resets the Printer

-Drawing Rectangles Using the Edge Rectangle Absolute (EA) Command

===================================================== The commands to draw rectangles in HP-GL/2 are Edge Rectangle Absolute (EA) , and Edge Rectangle Relative (ER) To use these commands, the printer uses the current pen location for one corner and you give the coordinates for the diagonally opposite corner This example uses EA to draw the rectangle For more information see the PCL 5 Printer Language Technical Reference Manual

Trang 23

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

EA2500,1500; Draws the outline of a rectangle with the lower left corner

being the current pen location, (10,10), and the upper right corner being

(2500,1500)

Ec%0A Enters PCL mode

EcE Sends a reset to end the job and eject the page

-

-Edge Polygon (EP) Command

=========================================

The Edge Polygon ( EP ) command outlines any polygon that is currently in the polygon buffer This includes wedges and rectangles defined using the EA , ER , EW , RA , RR , and WG commands EP accesses the data in the polygon buffer, but does not clear the buffer or change the data in any way For more information see the PCL 5 Printer Language Technical Reference Manual

NOTE The last polygon drawn is stored in the polygon buffer This is where

EP finds the information it needs to edge a polygon

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

EcE Resets the printer

Trang 24

PU610,610;CI500;PM2; While still in polygon mode, lifts the pen and moves

to (610,610) Draws a circle with a diameter of 500 plu, then closes the current

subpolygon and exits polygon mode

-Entering HP-GL/2 Mode

=========================================

The HP LaserJet printer will not understand HP-GL/2 commands without first

toggling the printer into HP-GL/2 mode This can be done by using PCL

commands

To send PCL commands to the printer you can create a text file using any text

editor, and printing the file on the target printer The following example will be done using the DOS text editor EDIT

Creating a File Using EDIT to Enter HP-GL/2

LEGEND: Ec = [Ctrl] [P] [Esc] in DOS EDIT

1 At the DOS prompt type EDIT HPGL2.MOD and press ENTER This

will create a new file called HPGL2.MOD that you can save and use to enter

HP-GL/2 mode whenever you want After you press enter, the EDIT screen will appear

2 The escape character in EDIT is done by pressing CTRL-P and then

pressing ESC (The escape character is produced in numerous other ways for

different types of editors Please consult your user manual for appropriate keys

to produce the escape character in your editor)

3 In EDIT the escape character is represented by a left arrow, in this

example we will use "Ec"

4 Send these commands to the printer by selecting FILE, PRINT, Full

Document and OK if you have a mouse

-OR-

Press ALT, F, P, then ENTER You will now be in HP-GL/2 Mode

5 To exit EDIT press ALT, F, then X EDIT will ask you if you want to

save the file now, press ENTER and it will save and exit EDIT

After you have entered this command sequence, the printer will accept HP-GL/2

Ngày đăng: 19/01/2014, 13:20

TỪ KHÓA LIÊN QUAN

w