Roland DXY-1300 Command Reference Manual page 89

X-y plotter
Table of Contents

Advertisement

will assign the values of P1x, P 1y, P2x and P2y to variables A, B, C and D respectively.
When the output is completed, bit 1 of the output status byte is cleared. This command gives
you the coordinates of P1 and P2, which were set by the panel keys, and is therefore useful
when setting the window within the P1, P2 area or converting between user coordinates and
plotter coordinates.
EXAMPLE
10
' ***
"OP" C O M M A N D
20 O P E N
" C O M 1 :9600,N ,8,1" AS #1
30 P R I N T
# 1 , " O P ; "
40 INPUT # 1 , P 1 X , P 1 Y , P 2 X , P 2 Y
50 PRINT
" P 1 = ( " ;P1X;" , " ; P 1 Y;" )"
60 P RINT
"P2 = ( " ; P 2 X ; " ," ; P 2 Y ; "
OS
FORMAT
OS [terminator]
EXPLANATION
The OS command is used for debugging operations and digitizing applications. No parameter is
used with the command. When the OS command is received, the plotter converts an 8-bit status
byte value to a decimal value between 0 and 255, and is ready to output it in the following ASCII
code value. [TERM] is an output terminator for the RS-232C interface. For details, refer to " 5.4
Device Control Command ESC.M" in Chapter 5.
Decimal value of status byte [TERM]
Individual bits of the status byte are defined as follows.
Bit value
1
2
4
8
16
32
64
128
After power ON, the status byte is 24 in decimal.
This is because bit 3 and bit 4 (initialized and ready to receive data) of the status byte are set,
thus the sum of 8 and 16 is 24.
***
Output Status
Bit position
Meaning
0
Pen down
1
P1 or P2 is changed (cleared by " OP" )
2
Digitized point can be output by the OD command (cleared by " OD" )
3
Initialized (cleared by "OS" )
4
Ready to receive data (always 0)
5
There is an error (cleared by " OE"!
6
Unused (always 0)
7
Unused (always 0)
Table OS-1
3 45
(For serial connection only)

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dxy-1200Dxy-1100

Table of Contents