Roland DXY-1300 Command Reference Manual

X-y plotter

Advertisement

DXY
X-Y PLOTTER
1 3 0 0
1200
-1100
-
/ -
/
Roland
DIGITAL GROUP

Advertisement

Table of Contents
loading

Summary of Contents for Roland DXY-1300

  • Page 1 X-Y PLOTTER 1 3 0 0 1200 -1100 Roland DIGITAL GROUP...
  • Page 3 X-Y PLOTTER 1300 1200 -1100 COMMAND REFERENCE MANUAL...
  • Page 5: Table Of Contents

    TABLE OF CONTENTS CHAPTER 1 SUM M ARY OF C O M M A N D S ................1-1 1.1 Type of Command ......................1-1 1.2 Method o f Using Com m ands (B A S IC )..............1-2 1.3 Coordinates ........................1-3 CHAPTER 2 DXY-GL ........................
  • Page 6 Device Control C o m m a n d ..................5-17 5.4.1 Handshake Mode Commands ................5-17 5.4.2 Status Com m ands....................5-21 5.4.3 A bort C o m m a n ds....................5-22 5 .4 .4 M onitor Mode C o m m a n d s................. 5-23 A PP E N D IX ..........................
  • Page 7: Type Of Command

    CHAPTER 1 SUMMARY OF COMMANDS 1.1 Type of Command There are two types of command in the DXY-1000 series, and they can be selected by DIP switch. •DXY-GL commands These are one-letter character commands which, because of their mutual independence, rarely influence each other and can be easily used to create drawings.
  • Page 8: Method Of Using Commands (Basic)

    1.2 Method of Using Commands (BASIC) This section will cover those features that are common to both command systems (DXY-GL and RD-GL I ). Note: •The following examples employ the BASIC language. Make any necessary modifications for your particular hardware or version of BASIC. •All character codes (ASCII codes) use decimal notation.
  • Page 9: Coordinates

    1.3 Coordinates In the coordinate system of Fig. 1-3, the longer side of the paper is the X axis the shorter side is the Y axis. A single point on a plane is designated by the values assigned to X and Y, such as 1000 2 0 0 0 approx.
  • Page 10 EXPAND (DIP SW 1-(6) ON) 0.025mm unit 0.1mm unit (17272,11880) (4318,2970) Fig. 1 - 6 Absolute Coordinates and Relative Coordinates There are two methods to specify a coordinate: (1) absolute coordinates, which represent a specified point by its distance from the origin (0,0) and (2) relative coordinates, which repre sent a specified point by its distance from the current position.
  • Page 11: Chapter 2 Dxy-Gl

    CHAPTER 2 DXY-GL 2.1 Summary of DXY-GL DXY-GL commands are mutually independent and rarely influence one another, thus making it easy to do plotting. There are 22 commands. They can also be used by calling the RD-GL I command. •The following examples employ the BASIC language. Make any necessary modifications for your particular hardware or version of BASIC.
  • Page 12: The Plotter Unit

    There are three kinds of command: (1) a command without a parameter, (2) a command that requires a parameter and (3) a command with a parameter which can be omitted. The parameter's meaning and range varies depending on the command. The + sign of a numerical value parameter, such as a coordinate value, may be omitted.
  • Page 13: Dxy-Gl Command Explanation

    2.2 DXY-GL Command Explanation Circle Center FORMAT Ax,y PARAMETER RANGE -3 2 7 6 8 .0 0 0 0 to +32767.4999 RELATED COMMANDS G, K EXPLANATION Sets the center coordinates f or circles and arcs using the x and y parameters. All coordinates are absolute coordinates, and parameters must be in the range -3 2 7 6 8 .0 0 0 0 to +32767.4999.
  • Page 14 EXPLANATION Sets pitch for dotted lines, single dot-dash Sines, and double dot-dash lines. L— 1 L— 2 L- 3 L - 4 L— 5 Fig. B-1 As l is an integer value where 0 < l = < 32767.4999, specification of a parameter larger than the line length will result in the plotter drawing a solid line.
  • Page 15 Circle FORMAT Cx,y,r,01,02 (,0d) PARAMETER RANGE x,y,r -3 2 7 6 8 .0 0 0 0 to 32767.4999 01,02 : - 32767° to +3 27 6 7° 1° to 179.9999° RELATED COMMANDS L, B, ^ LT EXPLANATION Draws circles and arcs centered on the specified coordinates (x,y). Parameter r is the radius of the circle or arc.
  • Page 16 Draw • FORMAT D x1,y1,x2,y2 . . . xn,yn PARAMETER RANGE -3 2 7 6 8 .0 0 0 0 to +32767.4999 RELATED COMMANDS L, B, ^ LT EXPLANATION Draws fines (starting at the current pen position) between points (x1, y1), (x2,y2), . . . (xn,yn).
  • Page 17 Relative Circle FORMAT Er,01,02 ( , 0 d) PARAMETER RANGE -3 2 7 6 8 .0 0 0 0 t o +32767. 4999 01,02 : - 3 2 7 6 7 ° t o +32767° 1° to 179.9999° RELATED COMMANDS L, B, ^ LT EXPLANATION As with the C and G commands, the E command draws circles and arcs.
  • Page 18 EXAMPLE ' * * * "E" C O M M A N D *** 20 L P R I N T " M l 5 0 0 , 1 5 0 0 " 30 F O R I=0 T O 3 3 0 S T E P 30 L P R I N T "...
  • Page 19 EXPLANATION This command will draw a circle or arc from a center specified by the A command. Parameter r is used to specify the radius of the circle or arc and must be in the range - 32768.0000 to +32767.4999. If a negative parameter is specified, the drawing start posi­ tion (0°) is set at the same position as when a positive parameter is specified (180°...
  • Page 20 Home FORMAT • EXPLANATION If the pen carriage has the pen, it returns the pen to the pen stock and then moves to the view position. EXAMPLE ' * * * "H" C O M M A N D *** 20 O P E N "LPT1: "...
  • Page 21 EXAMPLE 10 ' *** "I" COMMAND *** 20 LPRINT "10,1000,1000,0,0,-1000,-1000,0" 30 LPRINT "H" Relative coordinate (1000,0) 1000 1000.1000) Relative coordiante (0,1000) Relative coordinate (0 ,-1 0 0 0 ) 1000 Relative coordinate (-1 0 0 0 ,0 ) F i g . I - 1 Pen Change PARAMETER RANGE 0 to 8...
  • Page 22 EXAMPLE ' * ** "J" C O M M A N D FOR I=1 TO LPRINT "J";I LPRINT "M0,";I*100 LPRINT "I1000,0":LPRINT "P PEN No.";I 60 NEXT I 70 LPRINT "J0" PEN No. 8 PEN No. PEN No. 6 PEN No. 5 PEN No.
  • Page 23 F ig . K-1 l 2 specifies the distance from the center of the circle at which the segmentation or indication line begins, l 1 specifies the distance from the center of the circle to the end of the line. These lines are drawn in accordance with the value ( l 1 —...
  • Page 24 Fig. K 4 A line of length 1000 ( l 1 — 2 ) is drawn from the 0% drawing start position. By setting l 1 > the radius of the circle, 0 < l 2 and p 2 < radius of the circle, a segment line can be drawn from the center to the circumference of the circle.
  • Page 25 100% *Be careful of the position at 0 ° to 360° degrees. F ig . K - 6 | Line Type FORMAT PARAMETER RANGE - 5 to + 5 DEFAULT VALUE " L 0 " RELATED COMMANDS D, I, C, E. G, K, T, B, ^ LT EXPLANATION This command specifies the type of line.
  • Page 26 Lins type Fig. L-1 The start and end positions Of the line will differ depending on whether a positive or negative value is specified. Start and end position when parameter is a negative value Start position when parameter is positive value Fig.
  • Page 27 If a parameter outside the range - 5 to 5 is specified, it is ignored and the previous value re­ mains valid. The initial value of p = 0 produces a solid line. The “ B” command (dotted line pitch specification) may be specified anywhere in the program. When a line type is set with this command, it is valid until power is switched OFF or the L or ^ L T command is used to set new parameter.
  • Page 28 Move • FORMAT Mx,y PARAMETER RANGE - 3 2 7 6 8 .0000 to +32767.4999 EXPLANATION Moves the pen in the pen-up status to the point specified by the coordinate (x,y) All coordinates are absolute coordinates and any number of coordinates may be specified in the form (x coor dinate, y coordinate).
  • Page 29 Mark FORMAT • PARAMETER RANGE 1 to 15 RELATED COMMANDS S, ^ SI, ^ SR EXPLANATION The parameters n — 1 to 15 are used to draw the special symbols in the table below centered on the current pen position. After drawing is completed, the pen carriage does not move to the next poisition as is the case when ordinary characters are drawn.
  • Page 30 Print FORMAT Pc1 c2 RELATED COMMANDS Character size : S, ^ SI, ^ SR Character slant : ^ SL Character type : U, ^ SA, ^ SS, ^ CS, ^ CA Direction : Q, ^ DR, ^ DI ©EXPLANATION Draws the content of the parameters (characters, symbols, or variables) following “ P" . The size of the characters and symbols drawn may be altered with the S command.
  • Page 31 LPRINT "Ml500,1500" L P R IN T " Q " ; I Sets the drawing angle for characters. LPRINT Roland" " P 60 NEXT I 7 0 L P R IN T " Q 0 " Returns to the default value.
  • Page 32 Relative M ove FORMAT Rdx,dy • PARAMETER RANGE -3 2 7 6 8 .0 0 0 0 to + 32767.4899 EXPLANATION Moves the pen in the pen-up status from the current position to a point specified with the x and y increments (d x1,Ay1).
  • Page 33 Alpha Scale FORMAT PARAMETER RANGE 0 to 127 DEFAULT VALUE "S3" RELATED COMMANDS ^L B, ^ CP EXPLANATION Sets the size of characters to be drawn with the “ P" and “ N ” commands. It has no connection with the plotter units selected by the DIP switch. The parameter n must be between 0 and 127 and, as shown in the table below, both the character and symbol size as well as the character interval arc drawn with the value ( n + 1) when n = 0.
  • Page 34 The default value is n = 3. When the size is set with this command, it is valid until it is set again or power is switched OFF. EXAMPLE 10 ' * * * "S" COMMAND *** 20 LPRINT "M700,1500" 30 FOR I =5 TO 20 STEP 5 Sets the size.
  • Page 35 Drawing start position Fig. T - 1 Parameter d specifies the intervals between hatching lines and must be in the range -3 2 7 6 8 .0 0 0 0 to + 32767.4999. When only a rectangle is drawn (ie. n = 2), this parameter d cannot be omitted as a dummy. Fig.
  • Page 36 As well as hatching within a specified area, use of the hatching interval in combination with t = 1 or t = 3 permits drawing of tables as shown below. L P R IN T " T 3 , 5 0 0 , 3 0 0 , 2 5 0 , 3 " L P R IN T ”...
  • Page 37 Axis FORMAT Xp,q,r PARAMETER RANGE : 0,1 -3 2 7 6 8 .0 0 0 0 to +32767.4999 1 to 32676.4999 EXPLANATION Draws from the current pen position. The Y coordinate axis is specified with p= 0 and the X coordinate axis with p = 1. If parameters other than 0 or 1 are specified, an error occurs.
  • Page 38 EXAMPLE * * * " X " COMMAND * * * FOR N= 0 TO 1 FOR I = - 5 0 TO 5 0 STEP 1 0 0 L P R IN T " M 1 5 0 0 , 1 5 0 0 " L P R IN T "X";...
  • Page 39 Curve • FORMAT Ym,x1,y1 ,x2,y2, ••• xn,yn PARAMETER RANGE 0 to 3 xn,yn -3 2 7 6 8 .0 0 0 0 to +32767.4999 m = 0 ..Open curved line in absolute coordinates m = 1 ••••• Closed curved line in absolute coordinates m = 2 ..
  • Page 40 Please note the following when using the Y command. (1) When the m parameter is set to 0 or 1, failure to specify at least 3 pairs of coordinates will result in an error. (2) When the m parameter is set to 2 or 3, failure to specify at least 2 pairs of coordinates will result in an error.
  • Page 41 Relative Curve FORMAT m ,d x1,dy1,d x2,dy2, ••• dxn,dyn (However, at least 3 pairs of coordinates are required.) PARAMETER RANGE 0 to 1 dxn.dyn : -3 2 7 6 8 .0 0 0 0 to +32767.4999 RELATED COMMANDS L, ^ LT EXPLANATION This Command draws a smooth curve connecting a set of relative coordinates in the sequence (dx1,dy1)
  • Page 42 Note: When using the relative curve command, it is easy to overlook the specification of iden tical absolute coordinate values. Therefore, execise caution. [Reference] The difference between the “__” command and the Y2 and Y3 commands. The Y command begins drawing from the current pen position. However, the "__” command begins drawing from the first specified coordinate.
  • Page 43: Chapter 3 Rd-Gl I

    * * * " ^ " COMMAND *** 20 LPRINT " ^ 1 ; ” 30 LPRINT "S50” 40 LPRINT "P ROLAND" 50 LPRINT "^SL;" 60 LPRINT "S3" 70 LPRINT " H " 80 END Fig. ^-1 2 3 3...
  • Page 45: Summary Of Rd-Gl I

    C H A P T E R 3 R D - G L RD-GL T (Roland DG Graphic Language) is a graphic language that has been systematically designed to operate a plotter efficiently. This language possesses 56 commands and has a high degree of flexibility, allowing each command to be set in detail for the plotter's individual move­...
  • Page 46: Rd-Gl I Format

    3.1.2 RD-GL I Format T he RD-GL I command format comprises the following four elements: Command Delimiter Parameter Terminator Omission permitted Omission not permitted (Delimiter between a parameter and a parameter) Fig. 3-1 ©Command This instructs the plotter what sort of operation and setting to perform. It uses two upper or lower case characters.
  • Page 47 The delimiter may be written in the various ways shown above, but this manual uses the following standard format: PA5000,5000; Terminator This marks the end of a command. If another command follows in succession, the ter minator may he omitted, but not on any other occasion. A semicolon is used.
  • Page 48: Initialization Command

    3.2 Initialization Commands The “ DF” and “ IN" commands return a changed set value (filling interval, character size and the like) to the default value. Setting the “ IN” command has the same result as turning the power off and then back on again.
  • Page 49: Coordinate Control Commands

    3.3 Coordinate Control Commands Coordinate commands handle such tasks as setting the coordinate units and origin, setting the plotting area, rotating the coordinate axes and the like. They are used as needed. 3.3.1 Scaling The coordinate system can be divided into two classes: (th e plotter coordinate system and the user coordinate system.
  • Page 50 If only P1 is set, P2 will move the same distance as P1 and then automatically be set to that point. In setting by IP command, an error will result if P1 is set to a point that would place P2 outside the plotting area. In setting by the operation panel, however, it is per­ missible to set P1 to a position that will place P2 outside the plotting area, Pressing the P1 or P2 key on the panel will move the pen to the respective posi­...
  • Page 51: W In D O W S

    is seat, plotter coordinate P1 (1000,2000) will become user coordinate (0,0) and plotter coordinate P2(4000,2500) will become user coordinate (1,1). (The SC command differs from the IP command in the parameter order.) Of course, a user coordinate can also be set outside P1 and P2 as shown in Fig.
  • Page 52: Coordinate Axis Rotation

    When attempting to draw completely outside the win clow, nothing will be drawn Fig. 3-6 Command for inputting window 3.3.3 Coordinate Axis Rotation The coordinate axes can be rotated 90 degrees counterclockwise around center at the origin (0,0). The RO command is used. Command for rotating coordinates 3 -8...
  • Page 53: Pen Control C Om M And................................................................................................. 3.4.1 Selection And M Ovem Ent Of P E N

    3.4 Pen Contorl Commands 3.4.1 Selection and Movement of Pen If the drawing is simple enough, it can be done completely with pen control commands. [Ex­ ample 3-1 ] shows a simple drawing statement. In this example, a straight line will be drawn from coordinate (1000,2000) to (4000,8000).
  • Page 54: Enhancement Drawing Com M And

    3.5 Enhancement Drawing Commands 3.5.1 Drawing and Setting Complex drawings are also possible by using only pen control commands, but RD-GL I possesses a variety of drawing commands. For example, it is easier to draw a rectangle by the “ EA” command for drawing rectangles than by transmitting four separate commands to draw each side of the rectangle.
  • Page 55: Drawing And Selecting Character Sets

    3.6 Labelling Commands 3.6.1 Drawing and Selecting Character Sets The drawing of characters is done with the LB command. When the LB command is transmitted, the plotter enters labelling made and draws the string of characters that follow the LB command. For example, if LPRINT "LBABCDabcd";CHR$(3) is sent, the plotter will draw "ABCDabcd"...
  • Page 56: Character Set

    3.6.2 Character Sets The DXY-1000 series provides 19 kinds of character sets. These are capable of drawing other character fonts besides English. Symbols and characters differ according to the character set. Please refer to Appendix C “ Character Set Table” for the characters in each character set. Selection of character set Any two character sets you wish may be specified from the 19 character sets available to the plotter: the standard character set and the alternate character set.
  • Page 57 3.7 Output Commands (Only with Serial Connection) When the output command is sent to the plotter, the plotter will be ready to output the data re­ quested by the command to the computer. This includes the current coordinate values, the pen condition at those positions (up/down), error codes and the like.
  • Page 58: Digitize Commands (Only With Serial Connection)

    3.8 Digitize Commands (Only with Serial Connection) The DXY-1000 series can function not only as plotters but also as digitizers. The digitize com mand, like the output command, can only be used with a serial connection. It cannot be used with a parallel connection.
  • Page 59 ' * * * S T A T U S B Y T E C H E C K *** 220 P R I N T # 1 , " O S ;" 2 3 0 IN P U T # 1 , S 2 4 0 ( S AND 4 ) = 0 THEN 2 1 0...
  • Page 60: Rd-Gl I Command Explanation

    3.9 RD-GL I Command Explanation Arc Absolute FORMAT AA X,Y,0c (, [terminator] PARAMETER RANGE Center coordinates -3 2 7 6 8 .0 0 0 0 to +32767.4999 Center angle -3 2 7 6 8 .0 0 0 0 ° to +3 27 6 7.4 99 9 ° Resolution -3 2 7 6 8 .0 0 0 0 °...
  • Page 61 Arc Relative FORMAT AR dX,dY,0c (,0d) [terminator] PARAMETER RANGE dX,dY : Center coordinates -3 2 7 6 8 .0 0 0 0 to +32767.4999 Center angle — 32768.0000° to +32767.4999° Resolution — 32768.0000° to + 32767.4999° (default value: 5°) EXPLANATION The AR command draws an arc, centered on the specified AX and AY relative coordinates, star­...
  • Page 62 Designate Alternate Character Set • FORMAT CA character set number [terminator] CA [terminator] DEFAULT VALUE Designated by the DIP switch EXPLANATION Designates an alternate character set in the same manner as the CS command. Character set numbers can be from 0 to 4, 6 to 9, or 30 to 39. The CA command with a parameter out of the specified range will cause an error and the command will be ignored.
  • Page 63 Circle FORMAT Clr ( , 0 d) [terminator] PARAMETER RANGE Radius -3 2 7 6 8 .0 0 0 0 to +32767.4999 Resolution -3 2 7 6 8 .0 0 0 0 ° to +32767 4999° (default value: 5° ) EXPLANATION The CI command draws a circle of radius r centered on the current pen position.
  • Page 64 Character Plot FORMAT CP number of character-space fields in X direction, number of character-space fields in Y direc tion [terminator] CP [terminator] • PARAMETER RANGE -1 2 8 .0 0 0 0 to + 127.9999 EXPLANATION The area of one character, including the spacing between characters, is called the character cell.
  • Page 65 The CP command with no parameters provides a carriage return [CR]CHR$(13) and line feed [LF]CHR$(10). Since the CP command designates the moving distance of the pen by the number of character-space fields, it can be more conveniently used in printing than the PA or PR command.
  • Page 66 ® EXAMPLE 10 ' *** CS c o m m a n d OPEN "LPTl:" AS #1 30 PRINT #1,”IN;SP1;PA1000,1000;" 40 PRINT #1,"CS1;" PRINT #1,"SS; " 60 PRINT #1,"LBtan({/3) =\3";CHR$(3) PRINT #1,"SP0;" t a n (PI/ 3 ) = V 3 Fig.
  • Page 67 Default • FORMAT DF [terminator] • EXPLANATION Sets the character size and slant to the default status (see Table DF-1) but the position of scaling points of P1 and P2 remain unchanged. • Function Equivalent command Default status Plotting mode Absolute corrdinates Printing direction Right horizontal...
  • Page 68 Absolute Direction FORMAT Dl run, rise [terminator] Dl [terminator] PARAMETER RANGE -1 2 8 .0 0 0 0 to +127.9999 DEFAULT VALUE "Dl 1,0;" Fig. DI-1 EXPLANATION The Dl command designates an absolute direction, independent of the positions of P1 and P2. The relationship between the two parameters, run and rise, designates a direction as shown in Fig.
  • Page 69 140 LPRINT "DI-1,1;LB -- 135deg-- 150 LPRINT "DI -1,0;LB -- 180deg-- 160 LPRINT "DI-1,-1;LB -- 225deg- 170 LPRINT "DI0,-1;LB -- 270deg-- 180 LPRINT "DI1,-1;LB --315deg--" 190 LPRINT "DI;LB --DI COMMAND-- — D I COMMAND— Fig. DI-3 Digitize Point (For serial connection only) •...
  • Page 70 Relative Direction FORMAT DR run, rise [terminator] DI [terminator] PARAMETER RANGE -1 2 8 .0 0 0 0 to +1 27 .99 9 9 DEFAULT VALUE "DR 1,0;" Fig. DR 1 EXPLANATION The DR command parameter “ run” is specified by a percentage (%) of (P2x - P1 x) and parameter “...
  • Page 71 60 PRINT #1 ,"SI;DR1,1;LBDR1,1(1)";CHR$(3) 70 PRINT #1 ,”CP;IP0,0,10000,5000;” 80 PRINT #1 ,"SI;DR1,1;LBDR1,1(2)";CHR$(3) 90 PRINT #1 ,”SP0;" Fig. DR-3 Defined Terminator • FORMAT DT character [terminator] • EXPLANATION The DT command is used to change the label term inator when the standard setting label ter­ minator, [ETX]CHR$(3), cannot be used.
  • Page 72 Edge Rectangle Absolute FORMAT EA X,Y [terminator] PARAMETER RANGE -3 2 7 6 8 .0 0 0 0 to +32767.4999 EXPLANATION An EA command without parameters is ignored. Draws a rectangle specified with the X and Y coordinate values. Drawing begins from the cur rent pen position.
  • Page 73 EXAMPLE * * * " E A " COMMAND * * * 1 10 L P R IN T " S P 1 ; P A ; P U 1 0 0 0 , 1 0 0 0 ; " 1 2 0 L P R IN T "...
  • Page 74 The drawing direction and the position of the rectangle will change depending on the parameter values for the pen position, as shown in Fig. ER-2. EXAMPLE 100 ' *** "ER" COMMAND *** 110 LPRINT "SP1;PA;PU2000,2000;" 120 LPRINT "ER1000,1000;" Fig. ER-3 Edge Wedge FORMAT EW r...
  • Page 75 EXPLANATION This command is ignored unless the parameters are specified. When drawing is completed, the pen returns to the start position. Since the base point varies with the sign of the radius parameter, care is required with its specification. The angle relative to the base point varies according to the sign of the start and center angle parameters.
  • Page 76 Fill Type FORMAT FT n (,d ( , 0) ) [terminator] FT [terminator] PARAMETER RANGE : Type 1 to 5 0 to 32767.4999 Spacing Angle - 3 2 7 6 0 ° to + 3 2 7 6 0 ° DEFAULT VALUE n = 1 d = (P1 - P2) x 0.01...
  • Page 77 example ' * * * F T C O M M A N D *** 20 O P E N " L P T 1 :" AS #1 20 P R I N T # 1 , " S P 1 ; P T 0 . 3 ; " 40 PRINT #1 ,"PA500,1000;"...
  • Page 78 The OE command can be used to learn the error contents when the POWER/ERROR LED of the plotter is flashed. The error mask value is set to 223 by the standard or initial setting. The IM command with no parameter or with a parameter out of the range sets the error mask value to the standard setting value, 223.
  • Page 79 Paper size 0 ~ 16158 ~ 11040 A 3(ISO) A 4 (ISO) ~ 11040 0 ~ 7721 B(ANSI) 0 ~ 16640 0 ~ 10365 A(ANSI) 0 ~ 10365 0 ~ 7962 EXPAND 0 ~ 17272 0 ~ 11880 Table IP-1 M axim um plotting area Default values vary with drawing size.
  • Page 80 Input Window • FORMAT IW X 1 lower left, Y1 lower left, X2 upper right, Y2 upper right [terminator] IW [terminator] PARAMETER RANGE AND DEFAULT VALUE The default values and range of the parameters are the maximum plotting areas as shown in Table IW -1, and can be changed by DIP switches 1-(6), 1 - ( 7) and 1-(8).
  • Page 81 • EXAMPLE 10 ' *** IW COMMAND *** 20 OPEN "LPT1:" AS #1 30 PRINT # 1 , " I N;IW1000,1000,2000,2000;" 40 PRINT #1,"SPl;PA1500,1500;" 50 PRINT #1,"CI550;" 60 PRINT #1,"SP0;" Label FORMAT LB character string [label terminator] • RELATED COMMANDS DT, CS, SS, CA, SA, Dl.
  • Page 82 L A B E L COMMAND Fig. LB- Line Type FORMAT LT pattern number (, 1 pilch length) [terminator] LT [terminator] PARAMETER r a n g e Pattern number - 1 2 8 to +127 Pitch length : 0 to +127.9999 (%) DEFAULT VALUE Solid line EXPLANATION...
  • Page 83 EXAMPLE 10 ' *** LT COMMAND PRINT , "LT5 ;" 30 PR INT # 1 , " S P l ;P R ; P D 2 0 0 0 , 0 , 0 , 1 0 0 0 , - 2 0 0 0 ,0 , 0 , - 1 0 0 0 ; PU;" Fig.
  • Page 84 Output Commanded Position (For serial connection only) FORMAT OC [terminator] EXPLANATION When the OC command is received, the plotter is ready to output the following three values in ASCII code. X,Y,P [TERM] X and Y are the coordinate values of plotter coordinates or user coordinates. P indicates the pen condition, 0 for a pen up and 1 for pen down condition.
  • Page 85 EXAMPLE ' *** "OD" C O M M A N D *** 20 O P EN " C O M 1 : 9 6 0 0 , N ,8 ,1 " AS #1 30 PRINT # 1 , " D P ; " 40 PRINT "Press ENTER key, then press RETU R N key.
  • Page 86 The OE command is useful lor debugging. Before using the command in an actual program, execute the OPEN statement by direct com­ mand from the computer to open a file. EXAMPLE ' *** "OE" C O M M A N D *** 20 OP EN "CO M 1 :9600,N , 8 , 1 "...
  • Page 87 DXY-1100 DXY-1100 DXY-1200 DXY-1200 DXY-1300 DXY- 1300 Table OI-1 This command is designed to give the model name of an our brand of plotter, and therefore these results will differ from those of the OI command in other HP-GL™ plotters.
  • Page 88 Output Options (For serial connection only) •F O R M A T OO [terminator] EXPLANATION In this command, the following 8 integers, separated by commas, are output to the computer ,0,0,0 [TERM] ,0 ,0 , Arc and Circle Instruction Pen Change Enable [TERM] is the output terminator for the RS-232C interface.
  • Page 89 will assign the values of P1x, P 1y, P2x and P2y to variables A, B, C and D respectively. When the output is completed, bit 1 of the output status byte is cleared. This command gives you the coordinates of P1 and P2, which were set by the panel keys, and is therefore useful when setting the window within the P1, P2 area or converting between user coordinates and plotter coordinates.
  • Page 90 EXAMPLE 10 ' *** "OS" COMMAND *** 20 OPEN "COM1:9600,N,8,1" AS #1 30 PRINT #l,"OS;" 40 INPUT #1,S 50 PRINT "The value of status byte =";S Output Window (For serial connection only) FORMAT OW [terminator] EXPLANATION This command is used with no parameter. When the plotter receives the command, it outputs the plotter coordinates of the lower left corner and upper right corner of the window in ASCII code.
  • Page 91 EXPLANATION The PA command with no parameters sets the absolute coordinate system. This causes the parameters of subsequent PD and/or PU commands to be expressed as absolute coordinates. The PA command with parameters sots absolute coordinates and, at the same time, moves the pen to the point designated by the X, Y coordinates.
  • Page 92 (65,35) (0,35)) (30,35) (35,35) (3 ) Fig. PA-2 Pen UP/Down PU and PD FORMAT PU [terminator] PD [terminator] PU X1.Y1 (,X2,Y2, •••) [terminator] PD X 1 ,Y1 (,X2,Y2, •••) [terminator] PARAMETER RANGE - 32768.0000 to +32767.4999 EXPLANATION Without parameters, the PU, PD commands perform only pen-up or pen-down movement. With parameters, they move the pen to the position specified by the parameters.
  • Page 93 Fig. PUPD-1 Plot Relative FORMAT PR dX1, dV1 (, dX2, dY 2, ---) [terminator] PR [terminator] PARAMETER RANGE -3 2 7 6 8 .0 0 0 0 to +32767.4999 EXPLANATION The PR command without parameters is used to set a relative coordinate system. This specifies the parameters of subsequent PD and/or PU commands in relative coordinates.
  • Page 94 (1000,3500) (3000,3500) (3500,3500) (3500,3500) 2 0 0 0 2000 ( 3) ) (8) 2000 2000 (500,0) 2000 2000 ) (1) (6 ) (1000,1500) (3000,1500) (3500,1500) (5500,1500) F ig . PR-1 Paper Size FORMAT PS paper size [terminator] • PARAMETER RANGE 0 to 127 DEFAULT VALUE Designated by the DIP switch...
  • Page 95 DEFAULT VALUE "PT 0.3;" EXPLANATION Parameters are specified in mm. If the pen thickness is not specified, a value of 0.3mm is set. The PT command is valid only for the pen in use. When the SP command is executed, the set value is ignored and the pen thickness is set at the default value of 0.3mm until it is set by the next PT command.
  • Page 96 When hatching is completed, the pen returns to the start position. Hatching is performed in accordance with the current FT and PT command settings (hatching type, shading space, angle). EXAMPLE 100 ' • * *** HATCHING SAMPLE *** 1 . 1 0 LPRINT "SP1;FT3,130,45;" 120 LPRINT "PA;PU1000,1000;"...
  • Page 97 (1) Default status (1 ) Default status LL(0.0) LL(0.0) ” R090;" "RO90" LL(0.0) (2)"RO90;" is executed (2) RO09;" is executed LL(0,0) “ IP;IW;" LL(0.0) (3 ) " IP;IW;" are (3) "IP;IW;" are executed executed LL(0.0 ) Fig. RO-1 A 3 /B size Fig.
  • Page 98 ROTATE O Fig. RO-3 Rectangle Relative FORMAT RR dX,dY [terminator] PARAMETER RANGE - 32768.0000 to +32767.4999 EXPLANATION Hatches a rectangle starting from the current pen position is on angle to the position determined by the relative distance in the X-axis direction and the relative distance in the Y-axis direction. Fig.
  • Page 99 Select Alternate FORMAT SA [terminator] EXPLANATION After execution of the SA command, a character set designated by the CA command is used for printing. This is effective until the standard character set is selected by the SS command or by [SI]CHR$(15), or by using the DF or IN command to reset the plotter In print mode, the alter nate character set can be selected by [SO]CHR$( 14).
  • Page 100 PARAMETER RANGE -3 2 7 6 8 .0 0 0 0 to + 32767.4999 DEFAULT VALUE Depends on the DIP switch setting of the paper size mode. • EXPLANATION The SC command with parameters sets the user coordinates of P1 to Xmin and Ymin and P2 to Xmax and Ymax.
  • Page 101 DEFAULT VALUE "SI 0.29,0.38;" (B/A3) "SI 0.19,0.27;" (A/A4) EXPLANATION The SI command specifies the absolute character size by two parameters, character width and height. A character size specified by the SI command is unchanged by reduction or enlargement using the IP, SC, or IW command or by manual control. The SI command without parameters sets the default status.
  • Page 102 0< Fig. SL-1 EXAMPLE 10 ' *** "SL" COMMAND *** OPEN "LPTl:" AS #1 30 PRINT #1 , "IN;SPl; PA1000,1000;" PRINT #1,"SL0; " 50 PRINT #1,"LBSL0"; CHR$ (3) 60 PRINT #1,"SL0.4;" 70 PRINT #1,"LBSL0.4";CHR$(3) 80 PRINT #1,"SL0.8;" 90 PRINT #1,"LBSL0.8";CHR$(3) 100 PRINT #1,"SP0;"...
  • Page 103 EXAM PLE 100 ' *** "SM" COMMAND ** ** 110 LPRINT "IN; SPl;PA0,0;" 120 LPRINT "PD0 ,3000,3000, 3000,3000,0,0,0;PU; " 130 FOR I=1 TO 3 140 READ S$ 150 LPRINT "SM" 160 X=500 170 FOR L=1 TO 160 READ Y ;X ;" ,";Y ;" ;P D ;" 190 LPRINT "PA"...
  • Page 104 Select Pen FORMAT SP pen number [terminator] SP [terminator] ©PARAMETER RANGE 0 to 8 DEFAULT VALUE "SP 0;'' EXPLANATION Selects one of No.1 to No.8 pens according to the parameter. The SP command with no parameter or 0 returns the pen to the pen stock and moves to the view position. After a pen is taken up, the system returns to the position is occupied before executing the SP command.
  • Page 105 Relative Character Size FORMAT SR character width, height [terminator] SR [terminator] PARAMETER RANGE -1 2 8 .0 0 0 0 to + 127.9999 (%) DEFAULT VALUE "SR 0.7 5 .1.5 ;" RELATED COMMANDS IP, SC, IW EXPLANATION The SR command specifies a relative character size that can vary with the distance between P1 and P2.
  • Page 106 Select Standard FORMAT SS [terminator] EXPLANATION After execution of the SS command, a character set designated by the CS command is used for printing. This is effective until an alternate character set is selected by the SA command or [SO]CHR$(14), or by resetting the plotter with the DF or IN command. In print mode, the standard character set can be selected by [SI]CHR$(15) This allows a text composed of English and German to be printed using only a single LB command, eliminating the need of dividing the LB command to execute the SS command.
  • Page 107 EXPLANATION Positive tick refers to the up direction on the X axis and the right direction on the Y axis, and negative tick refers to the down direction on the X axis and the left direction on the Y axis. Positive direction Negative direction Fig.
  • Page 108 User Defined Character ©FORMAT UC (pen control value,) dX1, dY1, (pen control value,) ••• (dXn, dYn) [terminator] UC [terminator] PARAMETER RANGE -1 2 8 .0 0 0 0 to +127.9999 EXPLANATION The UC command uses three types or parameters: pen control value, X differential, and Y dif ferential.
  • Page 109 3 , - 4 Origin point (6,0) after executing UC command "UC0,2,99,0,4,6,0,0,2,3,-4,- 3, - 4 , 0 ,2 , - 6 ,0;" Fig. UC-2 EXAMPLE *** ”UC COMMAND *** " 2 0 OPEN "LPT1:" AS #1 30 PRINT "IN;SP1;PA3000,2600;" 4 0 PRINT #1, "LBABC ";CHR$(3 ) PRINT #1, "UC0,2 ,99,0,4,6,0,0,2,3 0 ;"...
  • Page 110 Pen speed Pen type 42cm/sec. Water based fiber tipped pen 42cm/sec. Thick water based fiber tipped pen for POP art 10cm /sec. Oil based fiber tipped pen for OHP film cm/sec. Ceramic pen 20cm/sec. Ink pen Table VS-1 EXAMPLE 10 ' *** "VS" COMMAND *** 20 OPEN "LPT1:"...
  • Page 111 WG 2000,90,45 WG 2000,90, - 4 5 WG -2 0 0 0 , -9 0 .4 5 WG - 2 0 0 0 , - 9 0 ,- 4 5 Center position WG -2 0 0 0 ,9 0 ,-4 5 WG -2000,90,45 WG 2000 ,-9 0 ,4 5 WG 2 0 0 0 ,-9 0 .-4 5...
  • Page 112 T ick •F O R M A T XT [termintor] YT [terminator] • EXPLANATION No parameter is required. This command prints a tick based on the current pen position, regardless of pen u p/d ow n condition. The tick length can be changed by the TL command. The default value of X axis tick is 0.5% of ( P 2 y - P 1 y ) in both positive and negative direc­...
  • Page 113: Chapter 4 Errors

    CHAPTER 4 ERRORS The DXY-1000 series indicates errors if it cannot continue to operate properly, if the communica­ tion protocol for a Serial Interface has not been properly set, etc. In such case, the DXY-1000 series lights up or blinks the [POWER/ERROR] LED quicklly to show something wrong. Depen­ ding on errors, the DXY-1000 series keeps executing incoming commands, but it cannot ex­...
  • Page 114 60 PRINT #1,CHR$(27);".E" 70 INPUT #1,IE 80 PRINT "I/O E R R O R --- IE 90 END COMMAND ERROR MEANING No error Unrecognizable command issued Wrong number of parameters Parameter out of range Unused Unusable character designated Coordinate overflow Unused MEANING I/O ERROR...
  • Page 115: Parallel (Centronics) Connection

    CHAPTER 5 INFORMATION ABOUT INTERFACES 5.1 Parallel (Centronics) Connection I he parallel input connector of the DXY-1000 series complies with the specifications for a Cen tronics interface and may be used with almost any printer cable or computer, For more informa tion about how to connect the DXY-1000 series to each computer, see the cable list of 5.1 "Parallel Connection (Centronics)'’...
  • Page 116 I/O signal cable The w a y e ach c o n n e c to r in p u ts and o u tp u ts data is s h o w n in Fig. 5 -2 . + 5 V INPUT STROBE P in 2 D 0...
  • Page 117: Serial (Rs-232C) Connection

    5.2 Serial (RS-232C) Connection When you select a serial (RS-232C) interface for connecting the DXY-1000 series to a com puter, follow the cable list of “ Serial Connection (RS-232C)". If you use your computer and inter face under different conditions than those described in Chapter 5, refer to the explanation below.
  • Page 118 S ig n a l lin e s a re s h o w n in T a b le 5 -2 . Plotter side Description Pin No. Abbrev. Security l i ne which is normally connected with the computer frame <C >...
  • Page 119: Y-Connection (Y-Drop)

    5.2.2 Y-Connection (Y-DROP) When a host computer and a terminal are connected with an RS-232C, the DXY-1000 series can be connected between them. This is called a Y-connection and performs the following functions: it can transmit data from the host computer to the terminal, it can transmit data to the plotter for drawing and it can permit the terminal to monitor the data while drawing is under way.
  • Page 120 • Y-connection setting To use the Y-connection, turn ON DIP Switch 2-(4) of the DXY-1000 series first and then turn ON the power switch next. In this condition, all the data is transmitted from the host computer to the terminal or vice versa without passing through the I/O buffer. At this time, the DXY-1000 series only transmits the data but does no drawing.
  • Page 121 Plotter Table 5- 3 If, after receiving an ESC.Y or ESC.( command, a break signal that lowers the RXD terminal (No.3 pin) of the plotter below 150m/sec. Comes from the terminal, the plotter will send this break signal to the computer and then return to the same condition as if it had received an ESC.Z or ESC.) command.
  • Page 122: Information About Handshake

    5.3 Information about Handshake This section explains the handshaking system for a serial (RS-232C) interface. If the DXY-1000 series has a processing speed lower than the speed of data transmission, it may miss some data if preventive action is not taken. To receive all the data perfectly, the DXY-1000 series deter­ mines whether data transmission is acceptable according to the remaining capacity of the I/O buffer.
  • Page 123 How the hardwire handshake changes the remaining buffer capacity is shown in Fig. 5-7. Remaining buffer capacity (1)If data is transmitted to the DXY-1000 series with the DTR pin “ High" when a full buf­ fer capacity (empty now) is available, the remaining buffer capacity gradually decreases because the data transmission speed is faster than the drawing speed.
  • Page 124: Software Checking Handshake

    5.3.2 Software Checking Handshake The DXY-1000 series has a function to output the remaining buffer capacity to a computer. By means of this function, the DXY-1000 sends data while checking the remaining buffer capacity. Example o f the software checking handshake: ' D X Y - 1000 RS- 232C DEVICE CONTROL COMMAND...
  • Page 125: On/Xoff Handshake

    5.3.3. X on/Xoff Handshake In this handshake mode, the DXY-1000 outputs the character specified as an Xoff character to the computer when the remaining buffer capacity is below a certain value. And it also outputs the character specified as an Xon character to the computer when the re­ maining buffer capacity is above a certain value.
  • Page 126: Enq/Ack Handshake

    Line 1 6 0 S ots X o ff c h a ra c te r to [D C 3 ]C H R $ (1 9 ) . Line 170 Sets the DTR pin to “ High". In other words, does not allow the hardwire handshake to operate.
  • Page 127 The difference between mode 1 and mode 2 is shown in Fig. 5-9. If handshake outputs (such as output trigger character, echo terminator character and output terminator) have been set in mode 1, they are sent with the procedure shown in Fig. 5-9. Even if these hand shake outputs have been set in mode 2, they are ignored.
  • Page 128 Example 2: 100 ' DXY-1000 RS-232C DEVICE CONTROL COMMAND 110 ' SAMPLE PROGRAM FOR ENQ/ACK HANDSHAKE 130 OPEN "COM1:9600,N ,8,1" FOR OUTPUT AS #1 : OPEN "DATA1" FOR INPUT AS #2 140 ON COM GOSUB 1000 150 COM ON 160 '<<< SET HANDSHAKE MODE ENQ/ACK >>>...
  • Page 129: Handshake Output Specifications

    Explanation: Line 130 Opens two files Modify the command, to open file depending on the in dividual computer. Line 140 Sets interrupt processing. Line 150 Line 170 Clears buffer data of the DXY-1000 series Line 180 Initializes settings for handshake. Line 190 Sets both monitor mode and hardwire handshake mode to OFF.
  • Page 130 Delay time: This is the delay time (m/sec) before the DXY-1000 series starts outputting when the com puter asks it to do so, thereby preventing any date transmission from the DXY-1000 series before the computer is ready to receive data. Output trigger character: The computer sends this character at the end of an output command sent to the DXY- 1000 series.
  • Page 131: Device Control C O M M A N D

    5,4 Device Control Commands The device control command is used to determine the communication protocol between a com puter with an RS-232C interface and the DXY-1000 series and let the computer know the cur rent status of the DXY-1000 series. There are also device control commands to set the specifica tions for output by RD-GL I commands.
  • Page 132 Parameter P2 sets an output trigger charcter. For more information about the out­ put trigger character, see “ 5.3.5 Handshake Output Specifications” . This character is also applicable to the output of RD-GL I output commands. (Default value: 13[CR]) );" :";...
  • Page 133 Set handshake output specification (2) ESC.N FORMAT [ESC] .N P1;P2;__;P11: EXPLANATION This command sets an intercharacter delay and also sots an Xoff character for the Xon/ X off handshake. This parameter sets an intercharacter delay. The parameter range is from 0 to 32767.4999, and the unit is m/sec.
  • Page 134 This parameter sets the byte number of a data block sent from the com puter to the DXY-1000 series. When receiving an ENQ character, the DXY-1000 series out­ puts an ACK character if the remaining buffer capacity is above the values set by the P1.
  • Page 135: Status Commands

    For the ENQ/ACK handshake mode 2, parameter P2 sets an ENQ character. If you specify 0 for this parameter, nothing can be sent. For the Xon/Xoff handshake, set 0 for the parameter. (Default value: 0 ) EXAMPLE: PRINT #1,C H R $ (27);" . I ; 0 ;17:"; PRINT # 1 , C H R $ (27);"...
  • Page 136: Abort Commands

    ESC.E Output error code FORMAT [ESC] .E EXPLANATION When this command is received, the DXY-1000 series outputs error codes about the RS- 232C interface, as shown in Table F5-6. At the same time, errors are cleared. Error codes Error contents An I/O error has not occurred.
  • Page 137: Monitor Mode Commands

    Abort command ESC.K FORMAT [ESC].K EXPLANATION This command executes one vector of the currently-active DXY-GL or RD-GL I com mand, aborts all other subsequent commands and clears the data buffer. ESC.R Reset device control FORMAT [ESC].R EXPLANATION This command sets all the settings of the device control commands to their default values.
  • Page 138 ESC.Z Plotter OFF ESC.) •F O R M A T [ESC] .Z or [ESC].) • EXPLANATION When receiving this com m and, the D X Y -1000 series ignores further data. When receiving the ESC.Y or ESC.( com m ands, this plotter will execute a drawing with the data that follow .
  • Page 139 EXAMPLE 1 PR INT #1,CHR$(27) ;". @ ;0:" ; This command sets the monitor mode to OFF and DTR signals to ON. At this time, any data after the ESC.Y command are taken into the DXY-1000 series and so are not output to a terminal.
  • Page 141: Appendix

    APPENDIX App.A DIP Switch Setting Table SW1-(6) M a x im u m D IP S w it c h S e ttin g Paper Paper S ize Set the maximum plotting area, which will ac Plo ttin g A re a S W 1 -6 SW 1-7 SW 1-8 comodate both ISO A3 and ANSI B sizes...
  • Page 143: App.b Control Code Table

    App.B Control Code Table Decimal A S C II Character Function NULL End Label Command E O T RS-232C E N Q Backspace (Moves left one space) Horizontal tab (Moves left half a space) Line Feed (Feeds one line down) Inverse Line Feed (Feeds one line up) Carriage Return (Moves to head of line) Select Alternate Character Set...
  • Page 145: App.c Character Set Table

    App.C Character Set Table H exdecim al Decimal Character set code code 30 3 1 32 33 34 35 36 37 38 39 " " " " " " " " " " " " " " " " " £...
  • Page 146 Hexdecimal Decimal Character set code code 30 31 32 33 34 35 36 37 38 39 A A A A A A ê A A A A A A A A A A A B B B B B B B B B B B B B B B B B ô...
  • Page 147 Hexdecimal Decimal Character set code code 30 31 32 33 34 35 36 37 38 39 a a a a a a a a a e e e e e e e e e Ì h Ò i Õ õ 3 3 3 3 3 m m m m m m m m m m m m m m m m m...
  • Page 149: App.d Command Table

    App.D Command Table DXY-GL Commands P a r a m e t e r ra n g e P a r a m e t e r C o m m a n d F o r m a t P a g e (D e f a u lt v a lu e ) x y : X a n d Y c e n t e r c o o r...
  • Page 150 P a r a m e te r ra n g e C o m m a n d F o r m a t P a r a m e te r P age ( D e f a u lt v a lu e ) C u rv e Y m ,x 1 ,y 1 , x 2 , y 2 , •••...
  • Page 151 RD-GL I Commands P a ra m e te r ra n g e C o m m a n d F o r m a t P a ra m e te r P age ( D e fa u lt v a lu e ) A rc A b s o lu te A A x ,y ,0 c ( ,0 d );...
  • Page 152 P a r a m e te r ra n g e C o m m a n d F o r m a t P a ra m e te r P age ( D e f a u lt v a lu e ) In p u t W in d o w IW x 1 ,y1 , x 2 , y 2 ;...
  • Page 153 P a ra m e te r ra n g e F o r m a t P age C o m m e n d P a ra m e te r (D e fa u lt v a lu e ) S e le c t S ta n d a rd S S ;...
  • Page 156 Roland ■ DIGITAL GROUP...

This manual is also suitable for:

Dxy-1200Dxy-1100

Table of Contents