Roland DXY-1300 Command Reference Manual page 84

X-y plotter
Table of Contents

Advertisement

O C
FORMAT
OC [terminator]
EXPLANATION
When the OC command is received, the plotter is ready to output the following three values in
ASCII code.
X,Y,P [TERM]
X and Y are the coordinate values of plotter coordinates or user coordinates. P indicates the pen
condition, 0 for a pen up and 1 for
RS-232C interface. For details, refer to ''5.4 Device Control Command ESC.M" in Chapter 5.
When being scaled by the IP and SC commands, X and Y are user coordinates between
-3 2 7 6 8 .0 0 0 0 and 32767.4999.
Unlike the OA com m and, this is the theoretical pen position. Therefore a position outside the
drawing area will be output.
Before using the command in an actual program, open a file by the OPEN statement from the
computer.
EXAMPLE
10 ' *** "OC" COMMAND ***
2 0 OPEN "COMl;9600,N,8,1" AS #1
30 PRINT #1,"OC;"
40 INPUT #1,X ,Y ,P
50 PRINT X ,Y ,P
O D
FORMAT
OD [terminator]
EXPLANATION
When the
OD
command is received, the plotter is ready to output the X and Y coordinates of the
digitized point and the pen condition in the following ASCII form.
X,Y,P [TERM]
X and Y are the integer values of plotter coordinates. P indicates the pen condition, 0 for a pen
up and 1 for a pen down condition. [TERM] is an output terminator for the RS-232C interface.
For details, refer to " 5.4 Device control command ESC.M" in Chapter 5.
When the OD command is received, bit 2 of the status byte is cleared. Before using the com
mand in an actual program, execute the OPEN statement by direct command from the computer
to open a file. For details, refer to " 3.8 Digitize Commands" in Chapter 3.
Output Commanded Position
a
pen down condition. [TERM] is an output terminator for the
Output Digitized
3-40
(For serial connection only)
(For serial connection only)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxy-1200Dxy-1100

Table of Contents