Method Of Using Commands (Basic) - Roland DXY-1300 Command Reference Manual

X-y plotter
Table of Contents

Advertisement

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 ; "
P R IN T
#1 , " P A 5 0 0 0 , 5 0 0 0 ; ''
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
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
Line 20 can also be written in the following ways:
20
L P R I N T "PA";X;" " , Y ; " ;
2 0
L P R I N T " PA "; X,Y;";"
20
L P R I N T " P A " X ,Y " ; "
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
These formats may differ depending on the particular computer or BASIC language in use.
Please consult your computer or BASIC manual as needed.
" P A 1 0 0 0 , 2 0 0 0 ; "
" P A " ; X
;
" , " ; Y ; " ;"
" L B " ; X ; Y ; C H R $ ( 3 )
(Parallel connection)
(Parallel, serial connection)
separation with space instead of comma
separation of variables with comma
omission of semicolon between command an d
variables
A B C D a b c d
Fig. 1-1
1000
Fig. 1-2
1-2
2000

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxy-1200Dxy-1100

Table of Contents