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.
•CHR$(charaoter node) designates a character code.
•[ ESC]CHR$(27) or [ESC] designates a control character.
(1)When sending commands from the computer to the plotter using the BASIC language, two
types of connection may be used:
parallel and serial interface. The following examples show the BASIC format for each of these
two connections:
L P R IN T " P A 5 0 0 0 , 5 0 0 0 ; "
(Parallel connection)
P R IN T #1 , " P A 5 0 0 0 , 5 0 0 0 ; ’'
(Parallel, serial connection)
In case of a serial connection, it is necessary to match the communications conditions (baud
rate, data bit length, stop bit and parity) with the plotter and to open a port to the RS-232C
with the “ OPEN" command.
(2)The parameters can be changed with variables. For example, the parameter in this statement
10 L P R IN T " P A 1 0 0 0 , 2 0 0 0 ; "
may be changed with variables as follows:
10 X = 1 0 0 0 , Y = 2 0 0 0
2 0 L P R I N T ” P A " ; X
;
","; Y ; ”
;"
Line 20 can also be written in the following ways:
20 L P R I N T "P A " ;X;"
"
,
Y
;
"
;
separation with space instead of comma
2 0 L P R I N T " P A " ;X,Y;";"
separation of variables with comma
20 L P R I N T " P A " X ,Y " ; "
omission of semicolon between command and
variables
Furthermore, character parameters can be written as follows:
10 B$="ABCDabcd"
20 LPRINT "LB”;B$;CHR$(3)
10 X = 1 0 0 0 , Y = 2 0 0 0
2 0 L P R I N T " L B " ; X ; Y ; C H R $ ( 3 )
A B C D a b c d
Fig. 1-1
1000
2000
Fig. 1-2
These formats may differ depending on the particular computer or BASIC language in use.
Please consult your computer or BASIC manual as needed.
1-2
Summary of Contents for DXY-1100
Page 1: ...X Y PLOTTER DXY 1300 1200 1100 Roland DIGITAL GROUP ...
Page 2: ......
Page 3: ...X Y PLOTTER DXY 1300 1200 1100 COMMAND REFERENCE MANUAL c ...
Page 4: ......
Page 44: ......
Page 140: ......
Page 142: ......
Page 144: ......
Page 148: ......
Page 154: ......
Page 155: ......
Page 156: ...Roland DIGITAL GROUP ...