background image

Summary of Contents for 7470A

Page 1: ...INTERFACING AND PROGRAMMING MANUAL HP 7470A Graphics Plotter RS 232 C CCITT V24 DESIGNED FOR SYSTEMS ...

Page 2: ...er there is no guarantee that interference will not occur in a particular installation lfthis equipment does cause interference to radio or television reception which can be determined by turningtheequipmentoffand on the useris encouragedtotryto correct the interference by one or more of the following measures reorient the receiving antenna relocate the computer with respect to the receiver move t...

Page 3: ...INTERFA 1 1 JIG 1C 1PpZ_47 tt D ra 1cs 0 er PROGRAMMING M RS 232 C CCITT V 24 ossncnmran SYSTEMS W 1982 1984 by Hewlett Packard Comp 16399 W Bernardo Drive San Diego CA 92 1899 ...

Page 4: ...he presence of a digitized point Chapter 7 Obtaining Information from the Plotter Describes the instructions used to obtain information about pen posi tion errors and capabilities of the plotter Chapter 8 Putting the Commands to Work A step by stepexample illustrating the procedures to be followed to draw labels and plot data using HP GLinstructions Chapter 9 HP IB Interfacing Summarizes operation...

Page 5: ...ion Syntax Provides a summary of both HP GL and device control instructions Appendix C Reference Material Includes a summary of default conditions error messages scaling equations NOP instructions ASCII codes and character sets MANUAL SUMMARY iii ...

Page 6: ...ruction IN 1 11 The Input Mask Instruction IM 1 12 Looking Ahead 1 15 Chapter 2 Establishing Boundaries and Units 2 1 What You ll Learn in This Chapter 2 1 HP GL Instructions Covered 2 1 Terms You Should Understand 2 1 The Plotting Area 2 2 Unit Systems 2 3 The Plotter Unit 2 3 User Units 2 3 Setting the Scaling Points 2 3 Setting P1 and P2 Manually 2 4 The Input P1 and P2 Instruction IP 2 4 The O...

Page 7: ...SM 4 4 The Line Type Instruction LT 4 6 Chapter 5 Labeling 5 1 What You ll Learn in This Chapter 5 1 HP GL Instructions Covered 5 1 Terms You Should Understand 5 1 Plotter Character Sets 5 2 The Designate Standard Character Set Instruction CS 5 3 The Designate Alternate Character Set Instruction CA 5 4 The Select Standard Set Instruction SS 5 4 The Select Alternate Set Instruction SA 5 5 The Defin...

Page 8: ...al Method 6 4 Monitoring the Status Byte 6 5 HP IB Interrupts and Polling 6 7 Chapter 7 Obtaining Information From the Plotter 7 1 What You ll Learn in This Chapter 7 1 HP GL Instructions Covered 7 1 Terms You Should Understand 7 1 A Brief Word about Plotter Output 7 2 Notes for an HP IB User 7 2 Notes for an RS 232 C User 7 2 Notes for an HP IL User 7 2 The Output Actual Position and Pen Status I...

Page 9: ...Plotter 9 2 Bus Commands 9 4 Reaction to Bus Commands DCL SDC and IFC 9 4 Serial and Parallel Polling 9 4 Addressing the 7470 as a Talker or Listener 9 6 Computers with No High Level I O Statements 9 6 Computer with High Level I O Statements 9 6 Sending and Receiving Data 9 7 Computer to Plotter 9 7 Plotter to Computer 9 10 Chapter 10 RS 232 C CCITT V 24 Interfacing 10 1 What You ll Learn in This ...

Page 10: ...or Instruction ESC E 10 27 The Set Handshake Mode 1 Instruction ESC H 10 28 The Set Handshake Mode 2 Instruction ESC I 10 29 The Abort Device Control Instruction ESC J 10 31 The Abort Graphic Instruction ESC K 10 32 The Output Buffer Size Instruction ESC L 10 32 The Set Output Mode Instruction ESC M 10 33 The Set Extended Output and Handshake Mode Instruction ESC N 10 34 The Output Extended Status...

Page 11: ...ges A 8 Appendix B Instruction Syntax B 1 HP GL Syntax B 1 RS 232 C Instruction Syntax B 12 Appendix C Reference Material C 1 Binary Coding and Conversions C 1 Binary Decimal Conversions C 1 Scaling Without Using the SC Instruction C 2 Plotter Default Conditions C 5 HP GL Error Messages C 6 RS 232 C Error Messages C 6 The No Operation Instructions NOP C 7 ASCII Character Codes C 7 Subject Index SI...

Page 12: ...Notes ...

Page 13: ... Packard Graphics Language the two letter mnemonic graphics language understood by the 7470Plotter and other HP graphics devices The instruction s mnemonic is suggestive of its role For instance PA is used to plot to absolute coordinates SP is used to select a pen and DR is used to establish the relative direction of labeling HP IB Hewlett Packard Interface Bus HP s implementation of IEEE standard...

Page 14: ...lly noted all information in this manual pertains to all configurations NOTE All information in this manual for Option 001 plotters applies equally to RS 232 C and CCITT V 24 interfaces For purposes of sim plicity both are referred to as RS 232 C I Documentation for this plotter is designed to enable you to use the plotter easily without reading unnecessary manuals All plotters are shipped with th...

Page 15: ...ead Chapter 1 of this manual before programming The 7470 has added capabilities not found in earlier plotters Among these are the ability to plot to non integeruser unitvalues to mirror labels using negative size and direction parameters and to output the current window values To understand these differences you need to read the sections on scaling SC Chapter 2 plotting PA and PR Chapter 3 and set...

Page 16: ... MANUAL 07470 90002 I INTERCONNECTION GUIDE 07470 90003 RS 232 C USER HP IB HP IL USERS INTERFACING AND L PROGRAMMING MANUAL CHAPTER 10 07470 90001 4 t V USER OF SOFTWARE GRAPHICS ROM USER HP GL PROGRAMMER PACKAGE INTERFACING AND PROGRAMMING YOUR GRAPHICS ROM MANUAL SOFTWARE MANUAL MANUAL o747o 9ooo1 CHAPTERS 1 8 AND CHAPTER 9 10 OR 11 1 4 GETTING STARTED ...

Page 17: ...f two pens If additional colors are desired the pro gram can be paused to allow manual installation of additional pens Seven different dashed linefonts and symbol mode plotting provide additional trace identification capabilities Character plotting speed of up to six characters per second enables you to produce fully lettered graphs quickly Annotation can be easily done using any of five character s...

Page 18: ...pon receipt Refer to Chapter 10for the syntax description and an explanation of the devicecontrol instructions HP GLSyntax An HP GL instruction is a two letter mnemonic which may be upper or lowercase A command is defined as an instruction followed by its parameter field if any and a terminator If parameters follow the mnemonic they must be separated from each other by at least one comma or space ...

Page 19: ...plotters and only may be used as the terminator for RS 232 C plotters In addition pa rameters requiring integer format may not contain a decimal point or decimal fraction I Some instructions have optional parameters which when omitted assume a default value In order to omit a parameter all subsequent parameters in the same instruction must be omitted The only excep tion is the pen parameters in th...

Page 20: ...meter C C terminator terminator For readability the mnemonic is shown upper case and separated from the parameters and or terminator All typeset items are required parameters All items in parentheses are optional Any number oflabeling characters Any number of X Ycoordinate pairs or any nonnumeric or nonalphabetic character such as or or the next mnemonic LF is also valid for HP IBand HP ILplotters...

Page 21: ... and length Output actual position and pen status Output commanded position and pen status Output digitized point and pen status Output error Output factors Output identification Output options Output P1 and P2 Output status Output window Plot absolute Pen down Plot relative Pen up Selectalternate character set Scale Absolute character size Absolute character slant from vertical Symbol mode c Selec...

Page 22: ... are operating in an RS 232 Cenviron ment you will need to establish handshaking protocol and include the necessary devicecontrol statements in your program If you are programming in another language substitute the output or input commands of your language for the BASIC statements PRINT and ENTER Change FOR NEXT loops and replacement statements X 3 14 to whatever statements are comparable in your ...

Page 23: ...ter set selected Standard Character slant 0 degrees Mask value 223 0 0 Digitize clear On Scale Off Pen velocity 38 1cm s 15in s Label terminator ETX ASCII decimal equivalent 3 Chord angle Set to 5 degrees for AA AR and CI Applicable only to Option O01 plotters that have the serial prefix number 2308Aor higher The Initialize Instruction IN UESCWP UN The initialize instruction IN returns the plotter ...

Page 24: ...ause an HP IB service request message and the conditions that can cause a positive response to an HP IB parallel poll E Withall three interfaceconfigurations HP IB HP IL and RS 232 C this instruction can be used to change the conditions under which HP GL error status is reported In an HP IB system only the instruction is used to enable the plotter to send a service request message when specified bi...

Page 25: ...ault value 223 The S mask value specified is the sum of any of the bit values shown below It determines when a service request message will be sent When a bit of the status byte changes value the status byte is ANDed with the S maskin a bit by bit fashion to determine if bit 6 of the status byte is to be set and the service request message sent The status of bit 6 changes as plotter conditions cha...

Page 26: ... data pinch wheels down 32 5 Error For example a P mask value of 48 specifies that only bits 4 and 5 16 32 of the status byte can cause the plotter to respond to a parallel poll with a logical 1 on the appropriate data line The plotter when set to default values or initialized automatically sets the E mask to 223 the S mask to 0 and the P mask to 0 An IM command without parameters or with invalid p...

Page 27: ...s simple bar graphs stacked bar graphs and clustered bar graphs The simple bar graph here shows that sales are increasing Bar graphs are essentially a collection of rectangles i e four plotted lines Each of these rectangles ww m is filled refer to the ad vanced programming tips at the end of Chapter 8 tolearnhow tocreate a filled or hatched area A stacked bar might be used to showthesesamesales data...

Page 28: ...Notes ...

Page 29: ...C The Scale Instruction IW The Input Window Instruction OW The Output Window Instruction Terms YouShould Understand Scaling dividing the plotting area into units convenient for your ap plication Units need not be the same physical size in both axes nor do there need to be an equal number of units in the X and Y axes Scaling Points the points on the plotting surface moved to when the front panel bu...

Page 30: ... of as a two dimensional Cartesian coordinate system Remember in a two dimensional Cartesian coordi nate system a point is defined by its X and Y coordinates for example 200 300 represents a distinct point where X 200 and Y 300 When paper is loaded the orientation of the X and Y axes is established as shown in the following diagram When looking at the plotter from the front the origin is located n...

Page 31: ...and is sent to the plotter the scaling point P1 is set to 250 279 plotter units and the scaling point P2 is set to 10 250 7479plotter units These settings are independent ofthe setting of the paper switch User Units The plotting area can also be scaled into user units This is done with the scale instruction SC which assigns values to the scaling points P1 and P2 A user unit may be almost any size ...

Page 32: ... will occur 3 Check the new locations of the scaling points by pressing P1 then press P2 The In ut P1 and P2 Instruction IP P DESCRIPTIONThe input P1 and P2 instruction IP provides the means to relocate P1 and P2 through program control NEE The IP instruction is often used to ensure that a plot is always the same size especially when the user and programmer are not the same person It establishes p...

Page 33: ...a valid IP command bit position 1 of the output status word is set true 1 Upon power on front panel reset or execution of an IN or DF com mand the character size is set relative SR to the locations of P1 and P2 Unless an SI command has been entered as part of the program the character size will be directly affected by the IP command The following HP GL command relocates the scaling points P1 and P...

Page 34: ...low US A4 0 X 10300 0 X 10900 0 Y 7650 0 Y 7650 Upon completion of output bit position 1 of the output status byte is cleared The Scale Instruction SC DESCRIPHUN The scale instruction SC establishes a user unit coordi nate system by mapping values onto the scaling points P1 and P2 This instruction is used to enable you to plot in user units con venient to your application For instance if your X va...

Page 35: ...y the SC command is not limited to the rectangle defined by P1 and P2 it extends over the entire plotting area When user unit scaling has been established by executing an SC command with parameters decimal parameters of plot commands are not trun cated the point 3 5 7 5 is distinct from the point 3 6 7 8 This is different from some other HP plotters and makes plotting ofnoninteger data much simple...

Page 36: ... 23 _ P2 10 10 1 _ P1 0 0 USER UNITS 4 1 1 1 1 1 1 L 1 1 o 3 o 35 IF o o 1oo0 1ooo sc o 1o 0 1o 76 6 124 766 P2 1000 1000 PLOTTER UNITS uses UNITS P1 0 0 usen UNITS AND PLOTTER UNITS 124 0 2 8 ESTABLISHING BOUNDARIES ANI UNITS ...

Page 37: ...by the setting of the rear pane1 paper switch as read when the plotter was last initialized by either power up front panel reset or execution of an IN command The four parameters specify in absolute plotter units the X and Y coordinatesof the lower left and upper right corners of the window area The parameters should be positive and less than or equal to 10 900 or 10300 for X depending on the sett...

Page 38: ...erminator EXPLANA UNNo parameters are used Output is in plotter units After an OW command is received the plotter will output the coordi nates of opposite corners of the plotting area in plotter units as four integers in ASCII in the following form Xlowerleft Ylowerleft Xupper right Yupperright TERM where TERM is the output terminator for your system See Terms You Should Understand in Chapter 7 Th...

Page 39: ...of the instructions set the window to and outline four separate areas A small space has been left between each area by adding or subtracting a constant value from X and Y coordinates in the center of the total area This program could be modified to divide the plotting area into thirds or into areas of any other size Another application of windowing is shading rectangular areas for bar graphs SeeAdv...

Page 40: ...Notes ...

Page 41: ...struction PA The Plot Absolute Instruction AR The Arc Relative PR The Plot Relative Instruction Instruction Terms YouShould Understand Absolute Plotting plotting to a point whose location is specified relative to the origin 0 0 When the PA command is used to plot to a point the pen always moves to the same point on the plotting surface no matter where the pen was before the move Relative Plotting p...

Page 42: ...parameters are included both coordinates of an X Ycoordinate pair must be given An odd number of parameters will set an error condi tion but all X Ypairs which precede the unmatched parameter will be plotted For a description of the PU and PD commands with parameters refer to The Plot Absolute Instruction PA and The Plot Relative Instruction PR which follow NOTE The plotter has an automatic pen li...

Page 43: ...minator A VS command without parameters sets pen velocity to its default velocity of 38 1 cm s 15in s and acceleration to 2 g 980 cm s2 A VS command with parameters sets the pen velocity for hori zontal or vertical pen down moves to the value specified by the first parameter and slows the acceleration to 0 5 g Anything after the first parameter is ignored Parameters must be in the range 0 to 127 99...

Page 44: ...discarded and the in teger portion remains unchanged For example both 1234 4 and 1234 9 become 1234 0 For negative numbers the fractional portion is discarded and the in teger portion is changed to the next more negative integer For ex ample both 1234 4and 1234 9 become 1235 Since you cannot plot to negative values unless scaling is on in which case decimal portions of parameters are used the only...

Page 45: ... given Commas spaces or a sign are required between numeric parameters and are optional after two letter mnemonics The last entry is followed by the terminator In the following examples commas are used to show optional and required separators Optional commas or spaces which can be used between each letter of the mnemonics are not shown The semicolon is used to indicate the terminator PA PD X1 Y1 P...

Page 46: ...the new point with the pen up or down as programmed In type two the pen moves from the last point toward the new point and stops where the line between the two points intersects the current window The pen up down condition is as programmed until the inter section is reached Then the pen is raised In type three the pen moves with the pen up to the point where the straight line between the last and ...

Page 47: ...and then move to the point 10900 7650with the pen up IH SP1 J F l l2OOC3 1 501 PD 0 l 3C1l 3v 2C3C lU _ F I lC 1E F l PU l500_ 1 5C D ET5C J I J 335CJ L 1 25l _HJ _ l 5 C_3 1_C __ F L _ l I t l 2000 3500 2500 3500 X V 1500 2000 500 2500 1500 4500 1500 The next strings of HP GL instructions scale the plotting area into user units 0 to 100in each axis and again draws two triangles Use an out put sta...

Page 48: ...0 SP1 SCO 1 0 1 30 FOR T O TU 2 PI PI 20 STEP PI 20 40 N cascTn so SIN TB so PRINT USING B5 PH X Y PD as INRGE 2H 2 MU UDDD 3H 70 NEXT T so PRINT PU SPO so END The Plot Relative Instruction PR DESCMPTIUN The plot relative instruction PR moves the pen rela tive to its current location by the number of units specified by the X and Y increment parameters ME The plot relative instruction can be used a...

Page 49: ...ing is off both parameters are interpreted as plotter units The mnemonics PU and PD can be included ahead of between or after X Yincrement pairs PU lifts the pen PD lowers the pen Any number of increment pairs as well as PU or PD mnemonics limited only by the ability of the controller to output without a line feed character can be listed after the PR instruction The placement of optional or requir...

Page 50: ...n Appendix C The following strings of HP GL instructions when sent to the plotter using your computer s output statements cause triangles to be drawn that are identical to the ones previously drawn using only the PA in struction The numbers in parentheses on the plot are the X Yincre ments of the PR commands The numbers without parentheses are the plotter unit coordinates of the vertices Il l SF 1...

Page 51: ...o be sent to the plotter it is specified as a literal in quotes With the 7470 a space may be substituted for the literal comma shown in quotes If your computer automatically sends spaces between Variables these spaces will delimit the coordinate parameters and a literal comma or space will not be necessary Since scaling is turned on in line 20 the fractional portions of the Variables X and Y are us...

Page 52: ...rting point of the Circle a circle with a positive radius starts at the 0 degree point a circle with a negative radius starts at the 180 degree point The current pen position is the Center of the circle If scaling is off the radius is in plotter units If scaling is on the radius is in user units If user units are not the same size in the X and Y directions ellipses will be drawn The chord angle pa...

Page 53: ...used and 360 produces the smoothest circle This pattern follows modulo 360 through the permitted range of 32 768 to 432 767 Specify ing out of range parameters sets error 3 and the command is ignored The following strings of HP GL instructions when sent to the plotter using your computer s output statements show the effect of different chord angles IH SP1 IP2B50 1325 E50 5325 sc 1oo 1oo 1oo 1oo PH...

Page 54: ...o and away from the circle s center with the pen up Circles are drawn within the defined window with clipping occurring outside the window limits Drawing circles within the window conforms to the definitions given for plotting under the PAinstruction Each chord of the circle is drawn using the currently defined line type Refer to The Line Type Instruction LT in Chapter 4 To demonstrate some of the f...

Page 55: ...s 7sso s32s an PRINT sc 1nno 1non 1ooo 1ooo w 4n PRINT FR BOO 800 so nnsun 130 so PRINT PH200 B00 70 nnsua 130 so PRINT PH BOO 200 so ensue 130 100 PRINT PR2nn 2oo 110 ensue 130 120 END 130 PRINT CI50 PRSO0 0 CI50 PR 300 30m CI25D 140 PRINT PR 300 300 CISO PR600 0 CISU 150 RETURN Line 10 defines the select code of the interface change this statement as necessary for your computer CONTROLLING THE P...

Page 56: ...ircle is drawn followed by a relative move of 600 units in the X directionwhere another 50 unitradius circle is drawn A move of 300units in X and 300 units in Y locates the center of the 250 unit circle The last two 50 unit circles are drawn with the moves shown in the listing Lines 60 80 and 100 locate the starting points of the other three patterns START PA 800 800 PA 200 800 PA 8o0 200 PA 200 2...

Page 57: ...OSITION CHORD ANGLE EXPLANATIONThe AA instruction requires that both X and Y coordinates be specified coordinate pair in integer format They are interpreted as plotter units if scaling is off or as user units if scaling is on The X and Y coordinateslocate the center of the arc and may be located on or off the plotting surface The current pen position is the starting point of the arc The are angle i...

Page 58: ...PHO 20 50 PRINT Pu PPo 40 PRo 5o 1e0 PP0 so so PRINT HHD 100 SO PH4U 100 HH50 100 130 PHBO 100 0 PRINT P9100 1oo 9o PP1oo so PP1oo 50 1eo PP1oo 2o 30 PRINT PR1oo o 9o PP5o o RP5o o 1ao PP2o o aao o 9o so PRINT PU PH50 50 CI30 100 END Line 10 defines the select code of the interface change this statement as necessary for your computer Lines 20 and 30initialize the plotter and establish user unit sca...

Page 59: ...tion set of RS 232 C plotters that have the serial prefix number 2308A or higher M The instruction can be used to draw an arc of any radius length and smoothness with a single command The are is drawn from the current pen position and its center point is located by relative X Y coordinates SYNTAX AR X increment Y increment arc angle chord angle terminator CURRENT X INCREMENT CURRENT PEN PEN POSITIO...

Page 60: ...nstruction CI The sign of the parameter is ignored except to set the maximum in range limit to 32 768or 32 767 The default chord angle is 5 degrees Unlike circles arcs are drawn using the previously commanded pen state up or down and line type If no pen state has been commanded since initialization pen up is assumed If no line type has been commanded a solid line is drawn Arcs are drawn within the...

Page 61: ... 3ZS PRINT s 1oo 1oo 1oo 1oo PRINT F F1 100 40 F D F F Ei0 0 F1RO 40 E10 HR40 0 SO PRB0 0_ F U END In this example line 40 moves the pen to the point 100 40 lowers the pen and plots 60 0 units relative to the previous pen position 100 40 It then draws a 90 degree CW are centered at 0 40 units relative to the new 40 40 pen position and follows it with a 90 degreeCCW are centered 40 0 units relative...

Page 62: ...Notes ...

Page 63: ... instructions to draw tick marks on axes or create grids draw a symbol or character of your choice at each data point and draw dashed or dotted lines All these enhancements will make your data easier to interpret HP GLInstructions Covered XT The X TickInstruction YT The Y TickInstruction TL The Tick Length Instruction SM The Symbol Mode Instruction LT The Line Type Instruction ENHANCING THE PLOT 4...

Page 64: ... P2y Ply for XT for each positive and negative portion of the tick Refer to The Tick Length Instruction TL which follows The following example draws a horizontal line 3000plotter units long places X ticks at the endpoints and at X locations1200 and 2200 and raises and stores the pen IN SP2 PRZOO SOO PD XT PR1000 0 XT PR1000 0 XT PR1000 0 XT PU SPO m I uh The Tick Length Instruction TL The tick len...

Page 65: ...ly sets the tick length values to 0 5 of the scaling lengths P2y_ Ply and P2x Plx A TL command with no parameters will default to the same values A TL command with only one parameter specifies the length of tp and tn will be zero A negative tp parameter will draw a negative tick just as would be drawn by a tn with a positive parameter Likewise a negative tn parameter will draw a positive tick Use o...

Page 66: ...LO 5 PU PR2300 2 S 100 00503 1000 110 PRINT PHEOO 4 S TL100 YT PU SPO 120 sT0P 1000 1 suBR0uTINE T0 DRHN TICKS 1010 E0R J 1 T0 9 1020 PRINT PRO 20 YT 1030 NExT J 1040 RETURN 1050 END The Symbol ModeInstruction SM DESCRIPTION The symbol mode instruction SM is used with PA and PR commands and provides the means to draw a single character which is centered at the end of each vector 4 4 ENHANCING THE ...

Page 67: ...rawn at each point specified in the PA and PR command The character is drawn according to the character set selectedwhen the SM command is executed The character does not change even if a new set is selected An SM command remains in effect until another valid SM command is executed or an IN or DF command is executed The size SI and SR slant SL and direction DI and DR commands affect the character d...

Page 68: ...ultipleline graphs and enables emphasis or deemphasis of plotted lines or grids One line type causes only dots to be plotted at each data point 3YNTAX LT pattern number pattern length terminator or LT terminator EXPLANATIONShown below are the line patterns and their pattern numbers 0 specifiesdots only at the points that are plotted One pattern length No parameter Default Value The shaded portion ...

Page 69: ...n length parameter is in decimal format Both integer and fractional parts are used This parameter specifies the length of one complete pattern and is expressed as a per centage of the diagonal distance between the scaling points P1 and P2 When this parameter is positive and less than 127 9999 the pattern length is set to this length When this parameter is negative or is greater than or equal to 12...

Page 70: ...Notes ...

Page 71: ...The Define Terminator Instruction LB The Label Instruction DI The Absolute Direction Instruction DR The Relative Direction Instruction CP The Character Plot Instruction SI The Absolute Character Size Instruction SR The Relative Character SizeInstruction SL The Character Slant Instruction UC The User Defined Character Instruction Terms YouShould Understand Label Terminator the final character in ever...

Page 72: ...klmnopqrstuvwxyz l F Some examples of annotation in foreign languages are found below Notice that the label string in the HP GL label command shows the character in the character set of the keyboard on which the command is entered or uses the CHR function if that ASCII character code is not available on the computer s keyboard CS2 LB8O DRU CHR C1233 BER BO DRUBER CS4 LBt su cc rnparu CHR 124I1 ia ...

Page 73: ...riate for your application It is espe cially useful when labels are in a language other than English SYNTAX CS character set number terminator EXPLANAHONThe character set number can be 0 through 4 The set designated by the CS instruction is used for all labeling operations when the standard set is selectedby the SS instruction or by the control character shift in decimal equivalent 15 in a label s...

Page 74: ...ontrol character shift out decimal equivalent 14 in a label string Character set 0 is automatically designated as the alternate character set whenever the plotter is initialized or set to default values A CA command executed while the alternate set is selected will imme diately change the character set used for labeling CA commands executed while the standard set is selected will not change the se...

Page 75: ...e character set to access characters in a second set Sending the control character shift out inside a label string is equivalent to executing this command SYNTAX SA terminator EXPLANAHUNN0 parameters are used Any parameters which follow the instruction are ignored and the alternate set is selected An alpha betic parameter will be interpreted as the first letter of the next mnemonic and may therefor...

Page 76: ...27 can also be defined as the terminator but the character will be printed at the end of the label character string The ASCII control characters NULL decimal equiva lent 0 and ESC decimal equivalent 27 cannot be used as label termi nators Also in the RS 232 Cenvironment ENQ decimal equivalent 5 is not a valid terminator NOTE A DT command with no parameter does not establish ETX as the default termi...

Page 77: ...e commands SA or SS or the ASCII control characters shift out or shift in decimal equivalent 14and 15respectively If not specified the default character set set 0 is used The direction size and slant of the characters assume default values if not previously specified by DI DR S1 or SR commands The label mode can be terminated only by sending a label terminator at the end of the character string Ref...

Page 78: ...ons is executed PA PR DI DR AA AR RO DF or IN 0 you use the front panel CLEAR and RESET function keys or use the pen controls to move the pen to a new point Labeling with Variables In some applications it is desirable to label the plot using variables rather than literals to define the label string Many different conven tions are used in different computer languages and computers to define variable ...

Page 79: ... or may not be printed depending on your computer The number of blank character field spaces may vary with different computers LB X 1 2 7 5 50 51 52 L I I7 Q I BLANK CHARACTER FIELD SPACES The following example illustrates the closer spacing achieved in BASIC when semicolons separate variables in labeling commands The semi colons between the variables cause suppression of blank spaces The space be...

Page 80: ...nonzero i e I2 0 0004I A DI command with a rise parameter of zero will produce horizontal labeling A DI command with a run parameter of zero will produce vertical labeling A DI command with no parameters will default to the values DI 1 0 horizontal A DI command with only one or more than two parameters will set an error condition and the instruction will be ignored A change in the orientation of P...

Page 81: ...carriage return point the position of the pen at the last DI command 1N sP2 PH1o5o 445o DIO 1 LB_ _1S78 UI1 1 LB_ _19 9 DI1 0 LB_ _19B0 DI1 1 LB_ _1981R BIO 1 LB_ _1S82 DI 1 1 LB_ _1SB3 DI 1 0 LB_ _1S84 DI 1 1 LB_ _1985 PH1500 5350 DI CDS OJ SIN O LB_ _2000 E DI CUSL 45 S1N 45J LB_RElURN Polwraa é g_ _1 980 I _ 9 L n RL XE E Jé N p6 T __ _2ooo 9 TQL p 0 6 1 4 ls tl Ifiao O0 9 o N 3 W786I 079 NOTE C...

Page 82: ...tween P1 and P2 where run is the desired percentage 128 to 127 9999 of P2x Plx rise is the desired percentage 128 to 127 9999 of P2y Ply and P1 and P2 are the scaling points If you imagine the current pen position to be the origin the sign of the parameters determines in which quadrant the lettering will be In the example below rise and run assume all combinations of i1 with default P1 and P2 RUN ...

Page 83: ...ter be comesthe spacing between lines and characters The character space is illustrated below cHARAcTER SPACEWIDTH w I4 F _ _7 1 I I I I I I I CHARACTER SPACE I HEIGHT H CHARACTER I HEIGHT 0 5 H I __ ___ _ _I __ CHARACTER CHARACTER STARTING POINT STARTING WIDTH OF NEXT POINT 0 67 w CHARACTER When you specify the height of a character in an S1 or SR command however you should specify the character ...

Page 84: ...e relative to the label direction where a positive value means from P1 toward P2 This is shown below UP l LEFT LABEL DIRECTION DI1 0 F G T DOWN l DOWN RIGHT 0 1 ICI NOI l 33E ICl l38V LEFT UP The pen s position raised or lowered does not change when a CP com mand is executed The parameters must be 2 128 and 128 However since there are approximately 90 character space field widths and 40 character s...

Page 85: ...ange the character size from its default value or to another value and establish absolute character sizing in centimetres so character size is not dependent on the settings of P1 and P2 SYNTAX SI width height terminator or SI terminator EXPLANATIONIf parameters are included two parameters are re quired width and height The defined width and height are interpreted as centimetres must be in decimal f...

Page 86: ... parameters refer to the section Parameter Interaction in Labeling Commands later in this chapter In order to produce legible characters parameters should be greater than 0 1 Parameter values above 18allow a maximum of one character to be drawn on the paper The Relative Character Size Instruction SR DESCRIP UN The relative character size instruction SR specifies the size of characters and symbols a...

Page 87: ...per label is written with default character size Then P1 and P2 are changed to define a square area with 6000 plotter unit sides A new label is drawn Next a new SR command is executed with both width and height parameters set to three percent Because the area established by P1 and P2 is square equal parameters create square letters With default P1 and P2 settings equal parameters do not create squa...

Page 88: ...uded the first parameter is interpreted as the tangent of the angle from vertical as shown below Parameters following the first parameter are ignored An SL command without parameters defaults to the same value as SLO and labels are not slanted 0 0 7 V The useful parameter range is i0 05 to i2 when using default size characters and up to i3 5 for large letters An SL command remains in effect until ...

Page 89: ...f the character spacefield and thus the grid is always twice the current character height and 11 2 times the current character width In order to draw a user defined character the same size as a character drawn with a label command the user defined character must be de signed in the lower leftcorner of the grid with a width of four grid units and a height of eight grid units The three types of param...

Page 90: ...field to the right of the character origin point This point becomes the current pen position and hence the character origin point for the next character if any The following example generates a 2 symbol which is the same size as an uppercase letter For comparison an E is drawn with the label command The example shows how size commands affect both user defined characters and labeled characters The HP...

Page 91: ...tion as specified by D1 or DR com mands or default direction the sign of the parameters for the size com mands SI or SR and the relative positions of P1 and P2 These inter actions are complex This section considers the four possible combina tions of D1 DR SI and SR and illustrates the effects of various parameters and settings of P1 and P2 on labels The labels used in the illustrations are the comm...

Page 92: ... The negative height parameter ofthe SI instruction mirrors the label top to bottom Use of DR and SI 5 22 When DR and SI commands are used together the label size is deter mined by the SI command and does not change with changes in the settings of P1 and P2 However changes in the settings of P1 and P2 will affect the label direction The algebraic differences P2x Plx and P2y Ply are multiplied by t...

Page 93: ... making it appear upright Use of DI and SR When the DI command is used with SR only the DI command affects the directional baseline of labels changes in the relative positions of P1 and P2 do not affect the baseline Mirroring about this baseline will occur when either a negative SR width or height parameter with a posi tive difference P2x Plx or P2y Ply or a positive SR parameter and a negative di...

Page 94: ...ext three illustrations P1 and P2 have been changed so P1 is lower right and P2 is upper left Hence P2x Plx is negative and anything with a positive SR width parameter is mirrored right to left e g illustrations 9 and 11 The effect of the negative width parameter in illustration 10is cancelled by the negative difference P2X Plx Aaa 0 1Iu P2 DI1 0 SR 7S 1 P1 s t sL as 0 IfE In the next illustration...

Page 95: ... corner will make it easier for you to establish the direction and mirroring of labels you desire DR parameters interact with the albegraic differences P2 Plx and P2y Ply to establish label direction and SR parameters interact with these differences to create mirroring Signs of both parameters and differences are important A negative sign in either the parameter or the distance will affect both DR...

Page 96: ...r space a vertical movement of one quarter character space down will center uppercase letters on the point notice the parameter is negative A parameter of 0 5 will cause the top of uppercase letters to be level with the point Symbol mode plotting with an as the symbol has been used here to show pen position at the start of the label command The character plot instruction which positions the label ...

Page 97: ...uded in the discussion are three different methods of assuring that a point has been entered The method you will use will depend on your application and your interface HP IB HP IL or RS 232 C HP GLInstructions Covered DP The Digitize Point Instruction DC The Digitize Clear Instruction OD The Output Digitized Point and Pen Status Instruction Terms YouShould Understand Digitizing converting informat...

Page 98: ...ht gently into the pen holder it will snap into place CAUTION The sight should not be stored in a pen stall do not store using front panel buttons or an SP command Removethe sight from the pen holder before raising the PAPER LOADlever since the sight would be stored auto matically when the lever is raised To remove the sight from the pen holder pull either arm of the pen holder forward and push th...

Page 99: ...minate digitizemodewith out entering a point If you are using an interrupt routine in a digitiz ing program to branch to some other plotting function you could use DC to clear digitize mode immediately after branching SYNTAX DC terminator EXPLANAHUNNo parameters are used The instruction will execute even if no terminator is received When the DC command is received digitize mode is terminated Auto ...

Page 100: ... made to retrieve that point using the OD command There are three methods for doing this Manual Method The first method which might be called the manual method is easiest to understand It is not efficient in applications where many points will be entered or in an RS 232 C environment where the mainframe is not adjacent to the plotter or where human intervention in program execu tion is not possible...

Page 101: ...te the ENTER statement to obtain the digitized point 10 PRINTER IS 05 80 20 PRINT DP 30 DISP ENTER H POINT 40 PHUSE 50 PRINT un so ENTER 705 X Y P 70 DISP X Y P so END Monitoring the Status Byte The second method can be used with any interface and is the only method of checking based on software that can be done in an RS 232 C environment This method monitors bit position 2 the third least signifi ...

Page 102: ...RINT OD On some HP computers with an I O ROM the following three lines are equivalent to lines 100to 150of the first program segment shown 2000 PRINT OS 2010 THIS IS THE STHTEMENT TO REHD THE STHTUS 2050 IF BIT Status 2 0 THEN2000 In many applications a large number of points need to be digitized When the computer is used to monitor bit position 2 the points may or may not be processed immediately ...

Page 103: ...4 in the S mask of the IM command e g IM223 4 0 to cause the plotter to generate an RQS service request when a digitized point is available With an interrupt routine enabled for service requests the computer can send a DP command to initiate digitizing and then proceed with some other task until the digitized point is entered When the point is available the computer is interrupted by the RQS and p...

Page 104: ...Notes ...

Page 105: ... or HP IL Before using the output instructions you should have read the notes below and the appropriate interfacing chapter in this manual HP GLInstructions Covered 0A The Output Actual Position and Pen Status Instruction OC The Output Commanded Position and Pen Status Instruction OE The Output Error Instruction OF The Output Factors Instruction OI The Output Identification Instruction OO The Outpu...

Page 106: ...the 7470 sterminator for an output state ment denoted TERM is a carriage return unless the terminator is modified by an ESC M command As soon as an output command has been parsed by the plotter output occurs according to the handshake protocol established by the ESC M and ESC N commands Use of turnaround delays intercharacter delays and an output initiator should be specified as necessary to assure...

Page 107: ...ANAHUN Output is always in plotter units No parameters are used The instruction will execute even if no term i inator is received The pen position and status are output to the computer as integers in ASCII in the form X Y P TERM where X is always the X coordinate in plotter units Y is always the Y coordinate in plotter units P is the pen status 0 pen up 1 pen down and TERM is the output terminator...

Page 108: ... 1 pen down and TERM is the output terminator for the interface installed When scaling is off X and Y coordinates are in plotter units When scaling is on X and Y coordinatesare in user units Ranges of the X and Y coordinatesare 32 768 to 32 767 whether scaling is on or off NOTE If you have an HP IB or RS 232 C plotter that has the serial prefix number 2308A or higher or if you have an HP IL plotter...

Page 109: ...used to output the decimal equivalent of the last HP GL error if any USES This instruction can be used to determine the type of the last error It is useful when debugging programs or to determine if all data or instructions were accepted by the plotter SYNTAX OE terminator EXPLANATIONNo parameters are used The instruction will execute even if no terminator is received OBTAINING INFORMATION FROM TH...

Page 110: ... RS 232 Cerror which has not been cleared by an ESC E command You should note that anytime the plotter receives an unpaired alpha betic character error 1 will be set Thus an alphabetic parameter or three alphabetic characters in a row will generate error 1 When you encounter error 1 look for a misplaced alphabetic character Once your plotting programs are debugged you may want to remove most outpu...

Page 111: ...for the interface installed The Output Options Instruction OO DESCRIPTION The output options instruction O0 is used to output eight option parameters M This instruction is especiallyusefulin a remoteoperating en vironment to determine which options are available in the plotter which is on line SYNTAX 00 terminator EXPLANATIONNo parameters are used The instruction will execute even if no terminator...

Page 112: ...leared by reading output of OP in HP IBor HP ILsystem or by actual output of P1 P2 in RS 232 C system 4 2 Digitized point available cleared by reading digitized value in HP IB or HP IL system or by output of point in RS 232 Csystem 8 3 Initialized cleared by reading OS output in HP IBor HP ILsystem or by output of the status byte in RS 232 C system 16 Ready for data pinch wheels down 32 5 Error cl...

Page 113: ...s all S 11 digits OD 3 integers all S 5 digits OE 1 integer 1 digit OF 2 integers 2 digits each OI 1 5 characterstring OO 8 integers 1 digit each OP 4 integers 1st and 3rd 5 digits 2nd and 4th S 4 digits OS 1 integer 3 digits OW 4 integers 1st and 3rd 5 digits 2nd and 4th S 4 digits In addition to these parameters the output terminator TERM is always sent at the end of output and commas are sent t...

Page 114: ...Notes ...

Page 115: ... graphs can be used to plot almost any kind of data factory output sales volume data from laboratory experiments population trends etc The concepts of plotting and labeling demonstrated here are applicable in almost any application A variety of allowable separators and terminators have been used in this program listing In applications where it is important to minimize the number of characters sent...

Page 116: ... from 0 to 150 so all sales data fall well inside the scaled area You will either need to know the range of your data or be willing to go through some trial plots with different scales to determine what your scale statement should be This graph is scaled from 0 to 150 not 0 to 150000 the actual range of sales dollars There are two reasons for this First the largest number accepted by the plotter i...

Page 117: ...ers The method will differ from computer to computer consult your com puter s documentation and Plotting with Variables in Chapter 3 of this manual If you have an HP IB or HP IL plotter refer also to Sending and Receiving Data in Chapter 9 or 11 The XT instruction draws a tick whether the pen is up or down The pen is up here so we do not draw the axis line again Youmight want to use PD drawing ove...

Page 118: ... the command which labels the regions for the legend It is drawn now while the label size is small and the narrow pen is installed Note that the label statements contain the spaces nec essary to space the legend across the top of the graph These lines were inserted near the end of the creation process and involved trial and error to achieve satisfactory results The lines for the legend will be dra...

Page 119: ...s You may want to use only two pens in your whole plot If so you can use two colors of the same width or one wide and one narrow pen and run your program from beginning to end If you are not going to change pens either delete the PAUSE statements or continue your program immediately when the prompt appears on your CRT A word to the wise whenever you do want to change pens insert a pause in your pr...

Page 120: ...ds with parameters included when the program was written Hence if the data changes it will be necessary to change the plot commands in the program The first line the bottom most line on the graph is drawn with pen 1 using a dashed line type The program takes full advantage of the plotter s relatively free syntax and uses spaces to delineate parameters Send the character strings to the plotter exac...

Page 121: ...Computers often send a leading and or trailing blank or allow for a sign space before numeric variables The 7470will treat a blank comma or sign as a separator between numeric parameters Know your computer before sending variables with plot commands As with the two previously drawn lines after the line is plotted the corresponding line is placed in the legend The loop to plot this third line and t...

Page 122: ...TINE REHD X Y P IF P 1 THEN PRINT PU K T IF P O THEN PRINT PU N Y IF P 3 THEN 1090 1050DRTH 1 sa 0 2 100 1 3 102 1 4 105 1 5 107 1 s 110 1 1080 DHTR 125 1 e 112 1 9 115 1 10 125 1 11 130 1 1070 DHTR12 122 1 0 0 3 1080 GOTU 1010 1090 PRINT LT4 B PU3 2 1E5 PU4 1B55R0 1100 RETURN 1981 SALES BY REGION SALES s THOUSANDS UNITED sr was EUROPE JAPAN SOUTH AMERICA 150 125 100 75 25 CALENDAR MONTH 88 PUTTHfl...

Page 123: ...omputers you can also use the CHR 3 function to generate the end of text character This program listing was produced on an HP 7310printer I 10 PRINTER I5 705 30 20 PRINT IN SP1 IP1250 75D 9250 E250 30 PRINT 5c1 12 o 15o 40 PRINT PU1 0 PD 12 o 1E 15o 1 15o 1 0 PU 50 PRINT SI Z 3 TL1 5 0 50 FOR x 1 TU 12 o PRINT PR X O XT so REHD Rs 90 PRINT CF 33 1 LB H fi 100 NEXT x 110 PRINT PR5 5 o cP 5 LBCHLENDH...

Page 124: ... two directions at 90 degree angles we call the hatching crosshatching Sometimes a graph will have both narrow and wide hatching or crosshatching the wide hatching having more space between the lines than the narrow Filling a Bar The following two program segments together with lines 10to 100and 400 of this chapter s program will each fill a bar which represents the March data for line 1 i e 3 18 s...

Page 125: ... with the pen up to the X coordinate at the base of the bar and draws a line to the top of the bar All fill lines are drawn in the same direction Segment 1 Plotting on Paper 120 PRINT PH2 O PD 2 18 3 3 1S 3 3 0 2 O PU 130 PRINT UH 140 ENTER 705 H B C 150 PRINT PH2 18 DH 150 ENTER T05 U E 170 PRINT PH3 3 18 180 ENTER 705 G H 190 PRINT PP2 o s zoo P 2O 210 FOR x R TD G P STEP 2 P 220 PRINT Pn x B x ...

Page 126: ...height The bars are shown here actual size with P set at 100 and 300 The locations of the variables are shown on the first bar and should help you understand the program listing For plots on transparency film or to make hatch lines more uniform you should slow the pen Velocityusing the VS instruction The routine performs the following tasks 1 and 2 Same as solid fill algorithm 3 Using the output obt...

Page 127: ...INT PU H Y PD G Y G H 230 NExT 240 PRINT PU SC1 12 0 150 IN r D E G H T A B G B J M J M stanza G B G A P 100 P 300 Filling Segments of Pie Charts The algorithms to fill slices of pie charts are much more complex be cause the areas are not rectangular Software packages such as the Graphics Presentations Pacs for various HP desktop computers make it easy to draw pie charts with area fill Youmay wish...

Page 128: ...Notes ...

Page 129: ...NSI IEEE 488 1978specifications This chapter defines the 7470 simplementation of the bus Also included are address ing the 7470 the listen only mode reaction to bus clear commands serial and parallel polling addressing the 7470as a talker or listener and examples of sending and receiving data using a variety of computers This chapter assumes you have a working knowledge of the HP IB however if you...

Page 130: ... switches provide for selection of the plotter address or listen only mode Each HP IB interface can have as many as 15 devices con nected to it set to different specific address codes The plotter can be set to any one of 31 HP IBaddresses ranging from 0 through 30 Each address can be selected by setting the switches on the rear panel to the appropriate binary bit positions for the particular addres...

Page 131: ... 9 11 J 0 1 0 1 0 10 12 K 0 1 0 1 1 11 13 L 0 1 1 O 0 12 14 M 0 1 1 0 1 13 15 N 0 1 1 1 0 14 16 O 0 1 1 1 1 15 17 0 P 1 0 0 0 0 16 20 1 Q 1 0 0 O 1 17 21 2 R 1 0 O 1 0 18 22 3 S 1 0 0 1 1 19 23 4 T 1 0 1 0 0 20 24 I 5 U 1 0 1 0 1 21 25_ Reserved for _ _ _ 1 HPDeskt0p 6 V 1 0 1 1 0 22 26 Computer 7 W 1 0 1 1 1 23 27 Address 8 X 1 1 0 0 0 24 30 9 Y 1 1 0 0 1 25 31 Z 1 1 0 1 0 26 32 1 1 0 1 1 27 33 1...

Page 132: ...ich will cause the require service message to be sent to the computer are defined by the input mask instruction IM in Chapter 1 TheSerial Poll A serial poll enables the computer to learn the status or condition of devices on the bus It is commonly used by the computer to determine who is requiring service The serial poll is so named because the computer polls devices one at a time rather than all a...

Page 133: ... logical 1 The line used is determined by the plotter s address value as shown in the table below 7 Plotter Parallel Poll HP IB Data Address Bit Position Line Number 0 7 8 4AC ol A P O lO3 1 6 5 4 3 Plotter Preset Address 7 0 1 To execute a parallel poll the controller sets the ATN and E01 lines to 1 The controller reads the eight data lines and determines from these lines which instrument on the ...

Page 134: ...tes the device that is to talk A new talk address automatically unaddresses the previous talker 3 The listen addresses designate one or more devices that are to listen A listen address adds the designated device as listener along with other addressed listeners This basic addressing sequence simply states who is to talk to whom The unlisten command plays a vital role in this sequence It is importan...

Page 135: ...tity ofthe computer sending data beginning at the X Ycoordinates 1000 2000 The examples involve sending both character string and numeric data as variables and constants or literals HP 9825 and 9826 HPL Example 0 Txd 0 d1m H 13 1 SENDING DHTH H 2 2000 Y 3 S82E B 4 wrt O5 SP1 PH1000 Y 5 wtb O5 LBHP str E H 3 6 end A terminator is sent by the 9825 9826at the end of a wrt statement Result HP 9828 SEN...

Page 136: ...e 10 HSSIGN H35 TD 1 20 DIM H 13 30 H SENDING DHTH 40 B 2B4 50 Y ZOOO 50 PRINT 1 SP1 PF 1000 Y o PRINT 1 l_EIHP E F1 CHF2 3Il 80 END A terminator is sent by the 2647at the end of PRINT 1 statements Result HP 2847 SENDING DATA HP 83 85 Example 10 E0 30 40 5 1 60 70 PRINTER IS T05 F1 SENUI NG DFITH B B5 Y 2000 PRINT SP1 RH1000 Y PRINT LBHP B H F as END A terminator is sent by the computer following ...

Page 137: ... the PA command Result TEK 4051 SENDING DATA Commodore PET 2001 and 8032 Example 10 20 30 40 50 B0 70 80 UPEN 5 5 DIN H 13 H SENDING DHTH B 2001 Y 2000 PRINTu5 sP1 PH1ooo sTRscYn PRINTu5 LBPET B H CHR 33 END A terminator is sent by PET at the end of the PRINT 5 statement Result PET 2001 SENDING DATA Apple II Applesoft BASICExample 10 20 30 40 50 80 O 80 SO PR3 3 INN 3 Z NTx CHR DIM H 12 H SENDING ...

Page 138: ...e HP Series 80 computers Check your computer documentation or ask your HP salesperson to determine if your system requires a special I O ROM The following examples of obtaining output data from the plotter using various computers are only intended to illustrate the necessity for understanding the I O statement protocol implemented on your com puter Each of these examples commands the pen to move t...

Page 139: ... 70 HSSIGN H35 TD 1 PRINT u1 PR1ooo 1ooo Dc REPDa1 P B c PRINT a1 DI REPD u1 Ps PRINT H B C H END Displayed current pen position and identification 1000 1000 0 7470A HP 85 86 87Example 10 20 30 40 SE 50 R0 PRINTER I 5 P05 PRINT PR1ooD 1ooo Dc ENTER O5 P B c PRINT UI ENTER 705 Rs DISP H B C H END Displayed current pen position and identification 1000 0 1000 7470A Requires I O ROM HP Part Number 00087...

Page 140: ...re displayed as lowercase This is true for both BASIC program statements and for the p1otter s respOIISB A dummy string Variable should be included at the end of every input COIDmand which reads data from the plotter because the PET 8032 sends an untalk command after it receives a carriage return character Since the plotter with an HP IB interface terminates all output with a Carr this iage return...

Page 141: ...xample in the prior section The string Y instructs the plotter at address 5 to talk The Apple II sends an untalk command after it re ceives a carriage return character The plotter with an HP IB interface terminates all output with a carriage return followed by a line feed Therefore in order to clear the plotter s buffer for future output another talk instruction and another input statement contain...

Page 142: ...Notes ...

Page 143: ...Xoffhandshake enquire acknowledgehandshake and software checking handshake is included The last part of the chapter is devoted to the 14 device control instruc tions The syntax of device control instructions is given followed by a detailed section on each instruction It is important to be able to use these instructions properly to establish communications with the plotter in your operating environ...

Page 144: ...escribed in the section entitled Handshaking Note which device control instructions are used to establish that hand shake Since handshaking is often a function of your operating system you may need to refer to the manuals for your computer to determine which parameters you must set and to what values In the last part of this chapter read about the instructions you will use to set up the handshake ...

Page 145: ...EF1 I I RPOWER CORD Plotter Connection with a Computer Mainframe or Personal Computer Operation Operation with this type of installation is usually confined to the on line programmed on state The rear panel switch labeled Y Dshould be set to D direct When the switch is set to D whenever power is being applied to the plotter it is in the on line programmed on state In this state the plotter reacts t...

Page 146: ...y take place over telephone lines This setup with the plotter between the computer and the terminal is sometimes referred to as eavesdrop environment A special Y cable Part No 17455A which joins the lines from the computer and terminal into the plotter s one connector must be used in this environment Diagrams of the two systems with and without a modem follow along with pictures of the rear panel ...

Page 147: ...E L CONNECTIONS 17455A CABLE PURCHASED FROM HEWLETT PACKARDT I 3 PLUG IN RS 232 C CONNECTOR PLUGINRS 232 C ZFROM CONNECTOR FROM COMPUTER TERMINAL HERE HERE LPOWER CORD Plotter Interconnection with a Terminal and Remote Facility Using RS 232 C CCITT V 24Cabling RS 232 C CCITT V 24INTERFACING 10 5 ...

Page 148: ...urning the plotter s LINE switch to ONor by receipt of a plotter off instruction from the computer or of a terminal generatedBreak signal while the plotter is in the on line programmed on state In the on line programmed off state the plotter s processor passes data between the computer and the terminal as shown in the following diagram The plotter will respond only to a plotter on instruction from...

Page 149: ...gnal The plotter will inter pret anything greater than a 130 millisecond space as a Break This a Break signal is retransmitted to the computer and in process plotter outputs are aborted but plotting continues until stored buffer data is completed A new plotter on instruction from the computer is required to resume plotting operations The plotter will ignore a Break signal if the Y Dswitch is set t...

Page 150: ...h the computer and terminal Refer to The Set Plotter Configuration Instruction ESC for complete information The plotter monitors for a terminal generatedBreak signal Receipt of a Break signal will cause the same results as described under the on line programmed on state Then new plotter on and set plotter configuration instructions from the computer are required to resume plotting opera tions with m...

Page 151: ... usually has some intelligence When the terminal and plotter are connected using this special cable the terminal may be used to send instructions to the plotter A diagram of the terminal only environment and a picture showing the rear panel connection follow SYSTEM DIAG RAM TERMINAL PLOTTER REAR PANEL CONNECTIONS SPECIALLY CONSTRUCTED RS 232 C CABLE SUPPLIED BY usER POWER CORD Plotter Interconnect...

Page 152: ... the RS 232 CInterface The 7470 plotter interfaces to the RS 232 C communications lines through a standard 25 pinfemale connector mounted on the back of the plotter The 7470 is capable of operating in a three wire transmit receive ground configuration In hardwired handshake operation the Data Terminal Ready line pin 20 of the connector on the plotter is used to monitor the space in the buffer avail...

Page 153: ...te baud rate hardwired handshake mode and monitor mode All remaining pins make no internal connection Pins 14 and 16 are wired in the special Y cable available as Option 16 to implement monitor mode The Y cableschematic is shown below NOTE Hardwire handshake cannot be used to prevent buffer overflow when the Y cable is connected This is because pin 20 is connected between the COMPUTER and TERMINAL ...

Page 154: ...aud Rate The plotter is designed to operate in an asynchronous mode with switch selectable baud rates of 75 110 150 200 300 600 1200 2400 4800 and 9600 See the 7470A Operator s Manual for instructions on setting the baud rate However setting all BAUD switches to zero and connecting an external clock input to pin 17 of the connector allows operation of the plotter at any intermediate baud rate up t...

Page 155: ...0 Buffer overflow error the plotter receives more bytes of data than it has space for in the buffer When the plotter detects a framing parity or overrun error it turns on the front panel ERROR light and sets error code 15 This error code generally indicates that the communication incompatibility is hardware related incorrect stop bit jumper installation wrong parity selection incompatible or incorr...

Page 156: ...e peripheral to the computer 0 Enquire Acknowledge Handshake is managed by the computer system and interface This handshake is often used in Hewlett Packard systems and is so named because the ASCII characters ENQ and ACK may be used to control the handshake 0 Software Checking Handshake is managed by the applications programmer It can be used on almost any computer system but it must be used if t...

Page 157: ...he computer This completes my transmission Often computers expect the carriage return character CR decimal equivalent 13 as the plotter s output terminator Echo Terminate Character Echoing is commonly found in full duplex systems Use of the echo terminate parameter in a device control command tells the plotter that the computer will echo all responses and that this echoed data should be ignored th...

Page 158: ...my buffer space Computers frequently require a DC3 character decimal equivalent 19 for the immediate response 0 Acknowledgment String The acknowledgment string specifies the character or characters that the plotter will send to the computer when the plotter s input buffer has room for another block of data Computers frequently require that the ACK character decimal equiv alent 6 be used for the ack...

Page 159: ...ck of data the program willtransmit the data blockto the plotter This method is inefficient in time share environments The advantage of software checking is that it is independent of hard ware and operating system abilities required to implement other hand shake modes therefore it usually makes software transportable between computer systems The limitation of this method of handshaking is that it ...

Page 160: ... user s program START PREPARE BLOCK OF DATA FOR TRANS MISSION TO PLOTTER SEND OUTPUT r fi BUFFER COMMAND ESC B TO PLOTTER i RECEIVE ESC B RE SPONSE AND ENTER BUFFER SPACE DATA INTO PROGRAM SPACE TO SEND ENTIRE DATA BLOCK SEND DATA BLOCK TO PLOTTER ANY MORE DATA FOR PLOTTER YES 10 18 RS 232 C CCITTv 24 INTERFACING ...

Page 161: ...r The preceding figure is representative of the way the Xon Xoffhandshake works the numbers represent the following 1 Data enters the buffer faster than it can be acted on by the plotter and the buffer starts to fill 2 The plotter begins processing the input data faster than the computer sends it and the buffer starts to empty 3 The data enters the buffer at a faster rate than the plotter can proces...

Page 162: ...appropriate command Xoffthreshold level ESC I command Xon trigger character ESC I command Xofftrigger character ESC N command Intercharacter delay ESC N command The enquiry character ESC I command must either be defaulted or specified as zero Enquire Acknowledge Handshake With the enquire acknowledge handshake the computer s operating system or application program initiates the data exchange proces...

Page 163: ...ight look like the following example where the two commands M250 17 10 13 and H100 5 6 have beensent to specifythe variables as turnaround delay 250ms outputtrigger character ASCII character DC1 decimal equiva lent 17 echoterminate character ASCII character LF decimal equiva lent 10 output terminator ASCII character CR decimal equivalent 13 data block size 100 bytes enquiry character ASCII charact...

Page 164: ...e is insufficient space it sets the line low By monitoring this line the computer knows when it can or cannot safely transmit another blockof data The hardwire handshake mode is enabled at power on or by setting the Data Terminal Ready CD line control using the ESC command RS 232 CDevice Control Instructions Devicecontrol instructions establish the handshake protocolto be used by the 7470 plotter ...

Page 165: ...micolon appears without a parameter the parameter is defaulted The colon terminates any command which may have parameters and can occur after any valid number of parameter entries Any parameter that is not specified is defaulted This symbol specifies a decimal value parameter For example the characters 10 would represent the decimal value ten the characters 13 would represent the decimal value thirt...

Page 166: ... as plotter instructions M This instruction is used when the rear panel switch labeledY D is set to Yto ready the plotter to accept other instructions It is sent at the beginning of any plotting program or when the user wishes to resume plotting after the plotter has been turned off by an ESC or ESC Z command or a Break SYNTAX _ OX Y EXPLANATIONThis instruction is ignored when the rear panel switc...

Page 167: ...r NOTE A Break signal from the terminal will have the same effect as a plotter offinstruction I The Set Plotter Configuration Instruction ESC UESCRIP UN The set plotter configuration instruction ESC sets parameters necessary for hardwire handshake mode and monitor mode E3 Theinstructionis usedto enableor disablehardwire handshake or monitor mode SYNTAX DEC ASC A DEFAULT Enables hardwire handshake a...

Page 168: ...bytes unless a different value is specified by the ESC H or ESC I command EXAMPLE 13 will establish monitor mode 1 where all bytes are displayed on the terminal as they are received by the plotter The Output Buffer Space Instruction ESC B DESCRIPHUN The output buffer space instruction ESC B outputs the plotter s available buffer space IIEE This command is used in a software checking handshake to in...

Page 169: ...ed while another output instruction is executing The original instruction will continue normally the one in error will be ignored Invalid byte received after first two charac ters in a devicecontrolinstruction Invalid byte received while parsing a device controlinstruction The parameter containing the invalid byte and all followingparameters are defaulted Parameter out ofrange Too many parameters ...

Page 170: ...set in the ESC M instruction be used in response to the enquiry character or Xon character SYNTAX H DEC ASC ASC ASC 1 DEFAULT H See ESC I default EXPLANATIONThe two instructions ESC H and ESC I are mu tually exclusive The parameter descriptions are the same for both instructions and are given under the ESC I instruction Handshake mode 1 established by this command uses defaulted or specified param...

Page 171: ...shake Mode2 Instruction ESC I DESCWPTIUN The set handshake mode 2 instruction ESC I may be used with the enquire acknowledge or Xon Xoff handshake to establish parameters for the plotter s communication format It establishes the data block size the enquiry character and the acknowledgment string for the enquire acknowledge handshake when the computer expects only the turnaround delay and not the o...

Page 172: ...arame ter is omitted is 80 bytes ASC This parameter sets the enquiry character The para meter may be the decimal equivalent of any ASCII character in the range 0 to 127 If the parameter is omitted it assumes the default value 0 NULL charac ter disabling enquire acknowledge handshake Any value other than 0 enables enquire acknowledge hand shake However the value 5 enquire character ENQ is generally...

Page 173: ...tes the ASCII character ENQ as the enquiry character and the single ASCII character ACK as the acknowledgment string Only the turnaround delay intercharacter delay and immediate response string if any are used when sending the response No output initiator will precede it even if one is defined and no output terminator will follow it For Xon XoffHandshake I81 17 will set the Xoff threshold level to...

Page 174: ... The instruction can be used as part of an initialization sequence when starting a new program or to terminate plotting of HP GL instructions in the buffer SYNTAX_ K EXPLANATIONAny partially decoded HP GL instruction is aborted and all instructions in the buffer are discarded A partially executed instruction is allowed to finish The Output Buffer Size Instruction ESC L DESCRIPTION The output buffe...

Page 175: ...rameter is optional If present it is the turnaround delay The delayimplementedis parame ter 1 1875 mod 65 536 1 2 milliseconds The parameter range is 0 to 54 612 If parameters follow the semicolon must be included even if this decimal parameter is omitted ASC The second parameter is also optional and if omitted assumes its default value of 0 no trigger character If included it specifies a single ch...

Page 176: ...rac ter which becomesthe output initiator character The parameter may be the decimal equivalent of any ASCII character in the range 0 to 127 The parameter is fol lowed by a colon EXAMPLES See the ESC N instruction The flowchart on the next page depicts plotter output The Set Extended Output and Handshake Mode Instruction ESC N DESCWPHUN The set extended output and handshake mode instruc tion ESC N ...

Page 177: ...CTER 7 SEND REQUESTED INEoRMAnoN SEND CHARACTER LAST CHARACTER TRANSMIT HST SECOND OUTPUT OUTPUT YES SENDFIRST OUTPUT TERM NAT R TERMINATOR TERMINATOR TERMINATOR CHARACTER CHARACTER CHARACTER DEHNED DEHNED 7 7 N0 SENDSECOND TERMINATOR CHARACTER I WAHFDR SEND EC CHARACTER TERMINATE TERMINATOR CHARACTER CHARACTER DEFINED 7 ECHO TERMINATOR NTE RECHVED CHARACTER Sgfiry DELAY DEFINED ENABLE BUFFER INPUT...

Page 178: ...Sets the Xoff trigger character to DC3 There will be no intercharacter delay since the first parameter is defaulted to zero by the semicolon For Enquire Acknowledge Handshake The examples given here include all handshaking instructions In addition to illustrating the use of intercharacter delays and immediate response strings set by ESC N they are designed to clarify the difference between handsha...

Page 179: ...tring variable such as Z would have been used instead of Z The plotter waits approximately five milliseconds the intercharacter delay before sending the 1 and between the 1 and the output terminator carriage return Note the carriage return parameter could have been omitted but carriage return still would have been sent as the output terminator because that is the default value for output terminator...

Page 180: ...ers I followed by a carriage return The carriage return to terminate INPUT is now part of the acknowledgment string No output terminator now defaulted to carriage return is sent because handshake mode 2 is set here by ESC I The output terminator carriage return will still follow all responses to HP GL output commands The Output Extended Status Instruction ESC 0 DESCRIPTION The output extended stat...

Page 181: ...button pressed so graphics sus pended 10 32 Paper lever raised so graph ics suspended Combinations of these bits allow five different responses to the ESC O instruction Response Meaning 0 Buffer is not empty and plotter is process ing HP GL instructions 8 Buffer is empty and is ready to process or is processing HP GL instructions 16 Buffer is not empty and VIEW has been pressed 24 Buffer is empty a...

Page 182: ...cter acknowledgment string turnaround delay output trigger character echoterminate character output terminator output initiator intercharacter delay immediate response string monitor mode hardwire handshake pin20 ESC M and ESC N K The following table shows the default values of parameters used to establish handshakes Parameter Value block size 80 0 no enquiry character 0 no acknowledgment string 0...

Page 183: ... listeners and controllers 0 Talkers are devices that send data over the interface only one talker can be active at a given time The controller designates the role of talker with commands that are dependent on the specific controller The 7470is capable of being a talker 0 Listeners are devices that receive data from a talker or commands from a controller several listeners can be active simultaneou...

Page 184: ...1 Source handshake Complete capability D Driver Complete capability L1 Listener Basic listener L3 Listener Unaddress if addressed to talk MTA LEO Extended listener No capability T1 Talker Basic talker send data T2 Talker Send status Returns a byte containing the status that is sent with the HP GL output status command OS Does not reset bit number 3 the initialize flag in the status byte T3 Talker S...

Page 185: ...e interface clear IFC message the plotter resets the parser and starts looking for a new HP GL instruction Any partially parsed HP GL instruction or parameters will be lost This message does not reset parameters in the plotter to their default values Addressingthe Plotter The default address of the plotter is 5 However the plotter address in a program may vary this is because the system controller...

Page 186: ...ending data beginning at the X Y coordinates 1000 2000 The examples involve sending both character string and numeric data as variables and constants or literals HP 41 RPN Example NOTE The characters that are enclosed in quotation marks must be entered in the alpha mode the quotation marks do not need to be entered The 1 symbol is the alpha append symbol it is produced by pressing the shift and K ...

Page 187: ...s typically accom plished using I O statements such as READ INPUT and ENTER Sometimes these statements are only available in I O ROMS check your computer s documentation or ask your HP dealer or HP Sales and Support Office The following examples of obtaining output data from the plotter using various computers are only intended to illustrate the necessity for understanding the I O statement protoc...

Page 188: ...tter are not available for the HP 75 Please contact your dealer or HP Sales and Support Officefor more information Data can be sent to the plotter without additional I O functions Refer to the example in the previous section HP Series 80 BASIC Example 10 PRINTER IS 901 20 PRINT PH1000 1000 UC 30 ENTER801 H B C 40 PRINT DI so ENTER 901 H so DISP R B c Rs 70 END Displayed current pen position and id...

Page 189: ...haracteristic of an individual device sdesign and may vary from device to device Operator the person that operates either the system or any device in the system Polling the process typically used by a controller to locate a device that needs to interact with the controller There are two types of polling 0 Serial Poll a method which obtains one byte of operational information about an individual de...

Page 190: ... ER j HP B CONTROLLER CB 0 Lu I l o 2 DIGITAL E VOLT PRINTER PLOTTER METER Message Concepts Devices which communicate along the interface bus are transferring quantities of information The transfer of information can be from one device to another device or from one device to more than one device These quantities ofinformation can easily be thought of as messages In turn the messages can be classifi...

Page 191: ...ts indicate opera tional conditions defined by the device This byte is sent from a talking device in response to a serial poll operation performed by a controller The Status Bit Message This byte represents the operational conditions of a group of devices on the bus Each device responds on a particular bit of the byte thus identifying a device dependent condition This bit is typically sent by devic...

Page 192: ...o the signal DEVICE 0 Management lines Onlyable to _ hsten The eight Data I O lines 8g_Sygna DIO1 through DIO8 are 9e e a10 reserved for the transfer of data and other messages in a byte serial bit paral1el DEVICE D manner Data and message transfer is asynchronous coordinated by the three handshake lines Data Valid DAV Not Ready For Data NRFD and Not Data Accepted NDAC The other Only able to talk ...

Page 193: ...terface system in a known quiescent state The REN remote enable line is used with the Remote Local and Clear Lockout Set Local messages to select either local or remote con trol of each device Any active device can set the SRQ service request line true via the Require Service Message This indicates to the controller that some device on the bus wants attention such as a counter that has just com pl...

Page 194: ...ary commands are multi line messages that are always used in series with an address universal command or addressed com mand to form a longer version of each Thus they extend the code space when necessary To address an instrument the controller uses seven of the eight data bus lines This allows instruments using the ASCII 7 bit code to act as controllers As shown in the following table five bits are...

Page 195: ...lker Listener Controller Remote Local The following table lists the functions including two special cases of Controller HP IB Interface Functions Mnemonic Interface Function Name SH Source Handshake AH Acceptor Handshake T Talker or TE Extended Talker L Listener or LE Extended Listener SR Service Request RL Remote Local PP Parallel Poll DC Device Clear DT Device Trigger C Any Controller CN A Speci...

Page 196: ...he 98034AInterface list the functions implemented directly on the device Functions Used by Each Bus Message Bus Message sender function receiver function s Functions Required support functions Data Trigger Clear Remote Local Local Lockout Require Service Status Byte Status Bit Pass Control Abort Clear Lockout Set Local T L SH AH C DT L SH AH C DC L SH AH CS RL SH AH C RL L SH AH C RL SH AH CS RL S...

Page 197: ...on appears in parentheses if the instruction executes without the plotter receiving the terminator TERM means the terminator sent by the plotter at the end of output It is CR LF in an HP IB or HP IL configuration and CR or as set by an ESC M command in an RS 232 Cconfiguration AA The Arc Absolute Instruction Page3 17 AA X coordinate Y coordinate arc angle chord angle Purpose Draws arc of specified nu...

Page 198: ...ngle Page 3 12 Purpose Draws a circle of specified radius centered at current pen position Parameters radius integer in plotter units unless scaling in effect then in user units Starting point at 0 degrees with positive parameter 180degrees withnegative parameter chord angle integer defines circle smoothness in de grees Default is 5 degrees The Character Plot Instruction CP spaces lines Page 5 13 Mo...

Page 199: ...tion Instruction Page5 10 DI run rise Purpose Sets the direction of labels Parameters run rise decimal values unitless At least one must be nonzero i e parameter 2 0 0004 Omitting parameters causes horizontal labels and is the same as Dl1 0 The Digitize Point Instruction Page6 2 DP Purpose Places plotter in digitize mode waiting for point to be entered from front panel The Relative Direction Instr...

Page 200: ...0 0 the default values Parameters The Initialize Instruction Page1 11 IN Purpose Sets the plotter to default conditions plus raises the pen sets the scaling points to P1 250 279 and P2 10 250 7479 clears all HP GL errors sets bit 3 of the output status byte to true 1 and reads setting of paper switch The Input P1 and P2 Instruction IP P1X P1y P2X Purpose Page 2 4 Sets scaling points Parameters Int...

Page 201: ...n drawing lines Parameters pattern number integer between 0 and 6 Omitting parameter causes solid line 0 specifies dots only at the points that are plotted One pattern length No parameter Default Value pattern length decimal 0 to 127 9999 a percentage of diagonal distance between P1 and P2 Default 4 The Output Actual Position and Pen Status Instruction Page 7 3 0A Purpose Used to output the pen s ...

Page 202: ...II X Y In plotter units within mechanical limits P 0 pen up or 1 pen down OE The Output Error Instruction Page7 5 OE Purpose Used to output the last HP GL error Response error number TERM a positive ASCII integer 0 through 8 excluding 4 OF The Output Factors Instruction Page7 6 0F Response 40 40 TERM integers in ASCII OI The Output Identification Instruction Page7 7 01 Purpose Used to output the p...

Page 203: ... scaling points P1 and P2 Response Plx Ply P2X P2y TERM four integers in ASCII Range dependent on settings of paper switch US 0 X coordinate S 10 300 0 S Y coordinate 7650 A4 0 X coordinate 10 900 0 Y c0ordinate 7650 The Output Status Instruction Page7 8 08 Purpose Used to output the p1otter sstatus Response status TERM integer in ASCII in the range 0 to 255 Power onstatus 24 The Output Window Ins...

Page 204: ...matically lowers the pen Parameters may be included as in PA or PR Purpose The Plot Relative Instruction PR X1increment Y1increment X2 increment Y2increment Xn increment Ynincrement Page 3 8 or PR Purpose Plots in order to the points indicated by the X Y incre ments relative to the previous pen position PR sets rela tive plotting for PU or PD with parameters Parameters Pairs of integers representi...

Page 205: ...mals representing centimetres 128 to 127 9999 Omitting parameters establishes size of 0 19 0 27 the same as the default SR sizing with default P1 P2 The Character Slant Instruction SL tan 0 Page 5 18 Establishes the slant for labeled characters decimal 128 to 127 9999 interpreted as the tangent of the angle from vertical Purpose Parameters Omitting parameters establishes no slant the same as the d...

Page 206: ...ting parameters results in value 0 75for width and 1 5for height The Select Standard Character Set Page5 4 Instruction SS Purpose Selects the standard character set designated by the CS instruction as the character set used for subsequent labeling The Tick Length Instruction Page4 2 TL tp tn Purpose Establishes the length of ticks drawn with the instruc tions XT and YT Parameters decimals tp perce...

Page 207: ...ion VS pen velocity Page 3 3 Sets the pen velocity decimal Oto 127 9999 Purpose Parameters pen velocity 1 through 38 1 interpreted as cm s De faults to velocity of 38 1 cm s acceleration of 2 g Any velocity parameter slows acceleration to 0 5g The X Tick Instruction Page4 2 XT Purpose Draws a vertical tick mark of the length specified by the TL instruction at the current pen position The Y Tick Ins...

Page 208: ...ff state Set Plotter Configuration Page10 25 DEC ASC Purpose Enables or disables hardwire handshake mode Parameters DEC Ignored ASC Data Terminal Ready CD line control ASCII decimal equivalent of 4 bit word 0 to 15 Output Buffer Space Page10 26 B Purpose Outputs the number of byte spaces currently available for data in the buffer Response DEC TERM Oto 255 Output Extended Error Page10 27 E Purpose ...

Page 209: ... used when response to enquiry character does not require ESC M parameters Parameters DEC Block size or Xoffthreshold level ASC Enquiry character or omitted ASC ASC Acknowledgment string of 1 to 10 characters or Xontrigger characters Abort Device Control Page10 31 J Purpose Aborts any partially decoded or executed device control instructions including outputs Abort Graphic Instruction Page10 32 K ...

Page 210: ...ASC l Purpose Establishes extended parameters for any output command Parameters DEC Delay between output characters 0 54 612 ASC ASC Immediate response string of 1 to 10 characters ASCII 0 127 0 terminates string or Xoff trigger characters Output Extended Status Page10 38 0 Purpose Outputs the decimal equivalent value of a 16 bitimmediate status word Response DEC TERM a value 40 or less Reset Hand...

Page 211: ...1 100 4 10 1 1 4 110 Binary 1 25 o 24 1 23 0 22 0 21 1 20 1 32 O 16 1 8 0 4 0 2 1 1 1 0 1 0 0 12 Binary DecimalConversions To convert from binary to decimal the positional Values of the 1 s are added up From the above example this would be 25 23 20 32 8 1 41 To convert from decimal to binary the decimal number is divided by 2 The remainder is the binary equivalent For example Remainder read up 2 7...

Page 212: ...te of the desired point in user units Ay is the Y coordinate of the desired point in user units Plx is the X coordinate of P1 in plotter units Ply is the Y coordinate of P1 in plotter units P2X is the X coordinateof P2 in plotter units P2y is the Y coordinateof P2 in plotter units Ulx is the X coordinate of P1 in user units Uly is the Y coordinate of P1 in user units U2 is the X coordinateof P2 in...

Page 213: ... 27r B Since we are to plot relative to a point that is not at the origin an offset X0 Y0must be added to the circle equations The offset in user units is X0 12 500 Yo 9000 C The desired circle equations are then Ax 2500 cos t 12 500 Ay 2500 sin t 9000 D Determine the user scale X 0 to 25 000 Y 0 to 18 000 therefore Ulx O Uly 0 U2x 25 000 U2y 18 000 REFERENCE MATERIAL C 3 ...

Page 214: ... 0 0 4 2500 cos t 12 500 250 0 1000 cos t 5250 ll P2 P1 P2 P1 Y _ y__y Ay P1y_U1y U2y _ Uly U2y _ Uly 7479 279 _ 7479 279 2500 s1nt 9000 279 0 18000 0 18000 0 0 4 2500 sin t 9000 279 0 1000 sin t 3879 G Sending the following program will plot the required circle using the default P1 and P2 H 10 PRINT IP250 2 9 lO25D T 9 SP1 20 FUR T O TU 2 PI STEP PIMEO 30 X 1OOU COStT 525O 40 r 1OOU éSIr HZT 38 8...

Page 215: ...ute PA Horizontal DR 1 0 Solid line 4 of the distance from P1 to P2 Mechanical limits of plotter SR 75 1 5 width 0 75 of P2XV Pix height 1 5 of P2y Ply Off Off 0 5 of P2x Plx or P2y Ply Set 0 Set 0 ETX ASCII decimal equivalent 3 00 223 O 0 On 38 1 cm s 15in s Set to 5 degrees for AA AR and CI P1 and P2 are changed only with the initialize command IN They are not affected by device clear and the de...

Page 216: ...s raised RS 232 CError Messages 0 10 11 12 13 14 15 16 No I O error has occurred Output instruction received while another output instruction is ex ecuting The original instruction will continue normally the one in error will be ignored Invalid byte received after first two characters in a device control instruction Invalid byte received while parsing a device control instruction The parameter con...

Page 217: ...o represent not only numbers but also alphanumeric characters such as A or or x or 2 One of the most common binary codes used is ASCII1 ASCII is an eight bit code containing seven data bits and one parity bit The plotter uses ASCII for most I O operations No parity bit is used For example ASCII ASCII Character Binary Code Decimal Code A 01000001 65 B 01000010 66 7 001 1 1111 63 A complete list of ...

Page 218: ... Feed 11 VT Inverse Line Feed 12 FF NOP 13 CR Carriage Return 14 SO Select Alternate Character Set 15 SI Select Standard Character Set 16 DLE NOP 17 DC1 NOP 18 DC2 NOP 19 DC3 NOP 20 DC4 NOP 21 NAK NOP 22 SYN NOP 23 ETB NOP 24 CAN NOP 25 EM NOP 26 SUB NOP 27 ESC NOP 28 FS NOP 29 GS NOP 30 RS NOP 31 US NOP 32 SP Space NOTE Characters offset to the left have the automatic backspace feature I O8 REFER...

Page 219: ...F__FGH l JKLMNUP S 49m 7 o W _ U12345nD78g __ nr ABCDEFCHT JKLMNUP e I S 1L Z _ U1234SB78Oq __ ABC_U_tFCHT JK _MNDP 8 S 0 M 05 x _ O12345nD789 __ n r ABCDECrn uHT JKLMNfluD S m m 3456789U12345578QO12345678OgD1234_b678QU12345B_ 890 333333344444444445555555_ D5_ 3_ D D5nDnOr0555577_ _ H 7 _ _ 78 eV D REFERENCE MATERIAL C 9 ...

Page 220: ...0 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 3 r J i C LDFUCJ T l N S C 3fl UO33 TL_ 3 LQ lDD_OU Q 9 1rfil l i C 07UD I ILTI1N XE C 1 I 1_D_UO33 7 L 3 LD 7fDCL0U Q T I v0 r 1N C 02393 N XS Cr l 1_DT O33 TL_ v LD hfDO_0U O USE l E C 1U 3UC N i Cr l 1_fl UO33 l __ 3 LD JfDQ 0U D _ r 1l I C IUJJUITD N XS C l 1 D UO3E TL_ 3 _O hfDCLf U D C 10 REFERENCE MATERIAL ...

Page 221: ...e 10 16 10 20 10 21 10 28 10 29 10 30 10 37 Break Signal 10 6 10 7 10 8 10 24 10 25 Buffer Space 10 13 10 14 10 16 thru 10 22 10 26 10 32 10 38 Bus Commands 9 4 G CA Instruction 5 4 5 5 5 7 B 2 CI Instruction 3 12 thru 3 16 B 2 CP Instruction 5 13 5 14 5 15 5 21 8 3 8 4 B 2 CS Instruction 5 3 5 4 5 7 B 3 Carriage return Point 5 8 5 10 5 11 5 14 CCITT V24 Interface 1 1 1 2 10 1 10 2 10 10 10 11 10 ...

Page 222: ...5 4 5 7 B 3 Device Clear 9 4 Device Control Instructions RS 232 C 10 1 10 2 10 3 10 14 10 22 thru 10 40 B 12 B 13 B 14 Digitize Clear Instruction DC 6 3 B 3 Digitize Point Instruction DP 6 2 thru 6 5 B 3 Digitizing 6 1 6 2 6 4 Digitizing Sight 6 2 Documentation for the 7470 1 2 9 ESC 10 7 10 10 10 24 B 12 ESC 10 24 B 12 ESC 10 8 10 22 10 25 10 40 B 12 ESC B 10 18 10 26 B 12 ESC E 10 13 10 27 B 12 ...

Page 223: ... 8 B 1 thru B 11 HP GL Syntax 1 6 1 7 1 8 B 1 thru B 11 HP GL Error Status 1 12 7 5 C 6 HP IB 7 6 A 1 thru A 8 HP IB Implementation 9 2 A 2 A 3 HP IB Interfacing 9 1 thru 9 6 A 1 thru A 8 HP IL Implementation 11 2 11 3 HP IL Interfacing 11 1 thru 11 6 HP IL Plotter Output 7 2 Half Duplex 10 10 Handshake Mode 1 10 28 10 29 10 30 Handshake Mode 2 10 28 10 29 10 30 Handshaking 10 14 thru 10 22 Hard c...

Page 224: ...6 8 6 8 7 B 5 Label Fields 1 7 5 7 Label Instruction LB 5 7 8 4 B 5 Label Terminator 5 6 5 7 Labeling with Variables 5 8 5 9 Line Graphs 1 15 8 1 thru 8 8 Line Type Instruction LT 4 6 8 6 8 7 B 5 Listener 9 6 m Mode 1 10 28 10 29 10 31 Mode 2 10 28 10 29 Modem 10 4 Monitor Mode 10 8 10 11 10 25 10 26 I1 NOP No Operation Instruction C 7 0 OA Instruction 7 3 8 11 B 5 OC Instruction 7 4 B 6 OD Instru...

Page 225: ...Status Instruction OS 6 5 7 8 B 7 Output Terminator 7 1 7 2 10 15 10 17 10 20 10 21 10 29 10 33 10 34 10 37 Output Trigger Character 10 14 10 17 10 20 10 21 10 29 10 36 Output Window Instruction OW 2 10 2 11 B 7 P PA Instruction 3 1 3 4 thru 3 8 8 7 B 8 PD Instruction 3 2 3 4 3 6 thru 3 8 8 7 B 8 PR Instruction 3 1 3 8 3 9 3 10 B 8 PU Instruction 3 2 3 4 thru 3 8 8 7 B 8 P mask 1 12 1 14 6 7 9 5 P...

Page 226: ...ta HP IL 11 5 Relative Direction Instruction DR 5 11 5 22 5 25 B 3 Relative Plotting 3 1 3 8 3 9 Relative Size Instruction SR 5 16 5 23 thru 5 26 B 10 Reset Handshake Instruction ESC R 10 40 3 SA Instruction 5 4 5 5 5 7 B 9 SC Instruction 2 6 8 2 B 9 SDC 9 4 SI Instruction 5 15 5 22 B 9 SL Instruction 5 18 B 9 SM Instruction 4 4 5 27 B 9 SP Instruction 3 2 8 2 B 10 SR Instruction 5 16 5 23 thru 5 ...

Page 227: ...out 5 4 5 5 Slant Instruction SL 5 18 B 9 Software Checking Handshake 10 14 10 17 10 25 Spacing Between Characters 5 7 5 13 Stand alone Environment 10 3 Standard Character Set 5 2 5 3 5 4 5 7 Stop Bits 10 13 Symbol Mode Instruction SM 4 4 4 5 4 6 B 9 I TL Instruction 4 2 B 10 Talker 9 6 Terminal 10 4 thru 10 10 Terminal only Environment 10 9 10 10 Terminator 1 6 thru 1 8 Tick Instructions XT and Y...

Page 228: ...ction 3 3 B 11 Velocity Select Instruction VS 3 3 B 11 W Window 2 1 8 13 Window Setting the 2 9 8 13 Outputting the 2 10 X XT Instruction 4 2 8 3 B 11 Xoff Threshold Level 10 16 10 30 10 31 Xoff Trigger Character 10 16 10 19 10 20 10 28 10 31 10 34 Xon Trigger Character 10 16 10 19 10 20 10 30 Xon Xoff Handshake 10 14 10 19 10 28 thru 10 31 10 36 YT Instruction 4 2 8 4 B 11 SI 8 SUBJECT INDEX ...

Page 229: ......

Page 230: ...ling the Pen and Plotting HP IL Interfacing Enhancing the Plot An HP IB Overview Labeling E Instruction Syntax E Digitizing Reference Material Obtaining Information from the Plotter E Puttingthe Commands to Work PART NO 0 14 10 90001 Kb HEWLETT OCTOBER 1984 MICROFICHE NO 07470 90051 W PACKARD PRINTED IN U S A ...

Reviews: