Digitize Commands (Only With Serial Connection) - Roland DXY-1300 Command Reference Manual

X-y plotter
Table of Contents

Advertisement

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.
[Example 3-3] shows a simplified example.
The digitize mode is activated with the DP command (line 110). In this mode, the pen carriage is
moved w ith
with the [ PEN U/D | key.
Pressing the ENTER key will store the pen's user coordinate values and state (up or down) at
the current position in the plotter and then exit digitize mode.
The OD command (line 130) permits output to the computer. Line 140 then instructs the com­
puter to read data from the plotter.
[Example 3-3]
100 OPEN "COM1:9600
110 PRI NT #1,"DP;"
120 INPUT "READY";R
130 PRINT #1,"OD;"
140 INPUT #1,X, Y , P
150 PRINT X,Y,P
1 6 0 END
The method of using the OS command will be described next. When the ENTER key is press
ed in digitize mode, bit 2 of the internal 8-bit status byte (bit value 4 ) will be set. Here is a sample
program the reads the status byte contents with the OS command and, if the bit 2 value is "1 " ,
branches to the OD command.
In the subroutine from line 210 to line 250, the status byte is read and the bit 2 value searched. If
its value is 1, the program will return from the subprogram to the main program and read the X
and Y coordinate values and pen status from the plotter. Since the OD command clears this bit,
a single output is possible at line 150 and then another read occurs at line 160 followed by
another search of the status byte. Therefore, use of just the
digitize at many points.
[Example 3-4]
1 0 0 OPEN "C O M 1 : 9 6 0 0 , N , 8 , 1 "
1 1 0
DIM
X ( 2 0 ) , Y ( 2 0 ) , P ( 2 0 )
120 FOR I=1 TO 20
130
PRINT #1,"DP;"
140
GOSUB 210
150
PRINT #l,"OD;"
160
INPUT #1,X,Y,P
170
X(I)=X:Y(1)=Y:P(I)=P
180
PRINT "No,"; I ;"(";X(I
190 NEXT I
200 END
to a point where the digitizing is required and then raised or lowered
AS #1
AS #1
3-14
ENTER key makes it possible to
) ; " , " ; Y (I);")
";P( I )

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxy-1200Dxy-1100

Table of Contents