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 softw are checking handshake:
100 ' D X Y - 1000 RS- 232C
DEVICE CONTROL COMMAND
110 '
SAMPLE PROGRAM FOR SOFTWARE HANDSHAKE
120
OPEN "COMl
: 9 6 0 0 , N , 8
,1" AS
#1
130
PRINT #1, CHR$(
2
7);" .
M 1
00
;; ; 13:
"
;
140 '
MAIN PROGRAM
GOSUB 1 0 0 0
Main program for drawing
GOSUB 1000
END
1000 '
SUBROUTINE FOR BUFFER CHECK
1010
PRINT #1,CHR$(27);
"
.
B
"
;
1020
INPUT #1,B
1030
PRINT "Buffer space :";B
1040
IF B>=500 THEN RETURN
1050
GOTO 1010
Opens the RS- 232C port. Grammar varies depending on computers.
When the computer asks the DXY-1000 series to output, taking the delay
time the DXY-1000 series takes to respond to the computer as 100m/sec,
sets the terminator for data output from the DXY-1000 series to
[ESC]CHR$(13).
Commands the DXY-1000 series to output the remaining buffer capacity to
the computer.
Checks the remaining buffer capacity and commands the DXY-1000 series
to wait for data transmission.
In this sample program, the DXY-1000 series checks the remaining buffer capacity and con
trols the data transmission between Line 1000 and Line 1050. Because of this, GOSUB
1000 must be executed to check the remaining buffer capacity, as needed, in the main pro
gram. In other words, GOSUB 1000 must be executed so that incoming data do not
overflow the remaining buffer capacity before the next GOSUB 1000 is executed.
Explanation:
Line 120
Line 130
Line 1010
Line 1020
to
Line 1050
5-10
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 ...