Device Control Instructions - Roland EGX-300 User Manual

Desktop engraver
Hide thumbs Also See for EGX-300:
Table of Contents

Advertisement

Part 2

2-9 Device Control Instructions

The Device Control instructions determine how communication between the EGX-300 and the computer will be handled using the RS-
232C interface; and also are employed when relaying to the computer the status of the EGX-300. Some of them can be used to format
the output for CAMM-GL I instructions.
A Device Control instruction is composed of three characters: ESC (1Bh), a ".", and an uppercase letter. There are also two types of
device control instructions: one carries parameters and the other does not.
Parameters can be omitted. Semicolons, " ; " are used as separators between parameters. A semicolon without parameters means that
parameters have been omitted. Device Control instructions with parameters require a terminator to indicate the conclusion of the
instruction. A colon " : " is used as the terminator, and it must not be omitted.
No terminator is necessary for Device Control instructions without parameters.
Instruction
Format
Handshake Instructions
ESC .B
[ESC].B
Output Remaining
Buffer Capacity
ESC .M
[ESC].M<P1>;<P2>;
Set Handshake
<P3>;<P4>;<P5>;
Output
<P6>:
Specifications (1)
ESC .N
[ESC].N<P1>;<P2>;
Set Handshake
<P3>; ••••• ;<P11>:
Output
Specifications (2)
ESC .H
[ESC].H<P1>;<P2>;
Sets ENQ/ACK
<P3>; •••••••• ;<P12>:
Handshake Mode1
ESC .I
[ESC].I<P1>;<P2>;
Set Xon/Xoff
<P3> ; •••••••• ;<P12>:
Handshake and
ENQ/ACK
Handshake Mode2
ESC .@
[ESC].@ P1;P2:
Controls DTR
Status Instructions
ESC .O
[ESC].O
Outputs the Status
of Buffer, Pause
54
Parameter
None
P1: Delay time
0-32767 (msec) [0 (msec)]
P2: Output trigger character
[0 (Sets nothing)]
P3: Echo terminator
[0 (Sets nothing)]
P4: Output terminator
[13 ([CR])]
P5: Output terminator
[0 (Sets nothing)]
P6: Output initiator
[0 (Sets nothing)]
P1: Intercharacter delay
0-32767 (msec) [0 (msec)]
P2-P11
[All 0 (Sets nothing)]
: Xoff character (for Xon/Xoff)
Immediate response character
(for ENQ/ACK)
P1: The number of bytes for
0-15358 (byte) [80 (byte)]
data block
[0 (Sets nothing)]
P2: ENQ character
[All 0 (Sets nothing)]
P3-P12
: ACK character (only when
<P2> is set)
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 (Sets nothing)]
(for ENQ/ACK (mode2))
0 (for Xon/Xoff)
P3-P12
[All 0 (Sets nothing)]
: Xon character(for Xon/Xoff)
ACK character
(for ENQ/ACK (mode2))
P1: Ignored
P2: DTR signal control
0-255
None
Range
([ ] is default)
Outputs the current remaining buffer capacity to the
computer.
Sets handshake output specifications.
Note: When you specify some values to <P4> and
<P5>, always set 0 to <P6>. When you specify
some value to <P6>, always set 0 to <P5>.
Sets an intercharacter delay, and also an Xoff
character for performing the Xon/Xoff handshake.
When receiving the ENQ character set by <P2>,
compares the value set by <P1> and the remaining
buffer capacity, and returns the ACK character to
the host computer when the remaining buffer
capacity is larger. The [ESC].H with no parameter
performs a dummy handshake.
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.
Controls the DTR signal (No. 20 pin of RS-232C).
[1]
An even number parameter (e.g. 0) always sets the
DTR signal to High without performing the
hardware handshake. An odd number parameter
(e.g. 1) performs the hardware handshake and
controls the DTR signal according to the remaining
buffer capacity.
Outputs the status codes of EGX-300 shown in
the table below.
Code
0
8
16
24
Explanation
Meaning
Data remaining in buffer.
Buffer empty.
Data remaining in buffer. EGX-300
being paused (Pause On being displayed).
Buffer empty. EGX-300 being
paused (Pause On being displayed).

Advertisement

Table of Contents
loading

Table of Contents