Software Checking Handshake - Roland DXY-1300 Command Reference Manual

X-y plotter
Table of Contents

Advertisement

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 software checking handshake:
100
' D X Y - 1000 RS- 232C
110
'
SAMPLE PROGRAM FOR SOFTWARE HANDSHAKE
120
OPEN "COMl
130
PRINT #1, CHR$(
140
'
MAIN PROGRAM
GOSUB 1 0 0 0
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
1050
GOTO 1010
Explanation:
Line 120
Opens the RS- 232C port. Grammar varies depending on computers.
Line 130
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).
Line 1010
Commands the DXY-1000 series to output the remaining buffer capacity to
the computer.
Line 1020
Checks the remaining buffer capacity and commands the DXY-1000 series
to
to wait for data transmission.
Line 1050
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.
DEVICE CONTROL
: 9 6 0 0 , N , 8
,1" AS
2
7);" . M1
00
Main program for drawing
RETURN
5-10
COMMAND
#1
; ; ; 13: " ;

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxy-1200Dxy-1100

Table of Contents