Roland CAMM-3 PNC-300 User Manual page 51

Table of Contents

Advertisement

Instruction
Format
ESC .I
[ESC].I<P1>;<P2>;
Set Xon/Xoff
<P3> ;••••••••;<P12>:
Handshake and ENQ/
ACK Handshake
Mode2
ESC .@
[ESC].@<P1>;<P2>:
Set Physical I/O Buffer
and DTR control
Status Instruction
ESC .O
[ESC].O:
Output Status Word
ESC .E
[ESC].E
Output RS-232C Error
Code
ESC .L
[ESC].L
Output I/O buffer size
Abort Instruction
ESC .J
[ESC].J
Abort Device Cotrol
Instruction
ESC .K
[ESC].K
Abort CAMM-GLI
Instruction
ESC .R
[ESC].R
Initialize Device
Control Instruction
Parameter
P1 : Limit of the remaining
0—15358(byte) [80(byte)]
buffer capacity (for Xon/Xoff)
The number of data block
bytes (for ENQ/ACK (mode2))
P2 : ENQ character
[0 (Set nothing)]
(for ENQ/ACK (mode2))
:0 (for Xon/Xoff)
P3—P12
[All 0 (Set nothing)]
: Xon character (for Xon/Xoff)
ACK character
(for ENQ/ACK (mode2))
P1 : Physical I/O buffer
0—1024 [1024]
P2 : DTR signal control
0—255 [1]
None
None
None
None
None
None
Range
([ ] is default)
Used for performing the Xon/Xoff handshake and the
ENQ/ACK handshake mode 2.
The [ESC].I instruction with no parameter performs a
dummy handshake. In a dummy handshake, always
returns the ACK character to the host computer,
regardless of the remaining buffer capacity, when
receiving the ENQ character.
<P1> sets the I/O logic buffer device. 1024 will be set
even if a larger number is designated. If <P2> is even
value, the DTR signal will always be HIGH, and
hardwire handshaking is not performed. If <P2> is odd
value, hardwire handshaking is performed.
Outputs the value that represents the status of buffer and
pause. This value is shown in the table below.
Code
16
24
Outputs an error code related to RS-232C interface (see
the table below), and clears the error simultaneously. At
the same time, the error being displayed is canceled.
Error code
Outputs the current logic size of the I/O buffer. Note
that the output is done only when the I/O buffer is
empty.
Aborts both the currently executed device control
instruction and output.
After executing only the current CAMM-GLI
instruction, clears the data buffer.
Initializes all settings established by the device control
instructions.
Explanation
Status of buffer and pause
0
Buffer contains data.
8
Buffer empty.
Buffer contains data. PNC-300 paused.
Buffer empty. PNC-300 paused.
Meaning
0
No I/O errors
During an output instruction being
executed, another output instruction is
10
sent (only the current instruction is
effective)
An error occurs in a device control
11
instruction.
Incorrect parameters are set to a device
12
control instruction (the default value is
set to the erroneous parameter)
13
Parameters are overflowing
The number of the parameters set is
14
more than specified or a colon ':' was not
used to terminate
Framing error, parity error or over-run
15
error at the time of data receipt
16
The I/O buffer overflows
41

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents