(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.
3.8 Digitize Commands
[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
to a point where the digitizing is required and then raised or lowered
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
16 0 END
AS #1
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.
ENTER key makes it possible to
[Example 3-4]
1 0 0 OPEN "C O M 1 : 9 6 0 0 , N , 8 , 1 " AS #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
)
;
"
,
"
;
Y (I);")
190 NEXT I
200 END
";P( I )
3-14
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 ...