User`s manual

37
Part 2
Instruction Format Parameter Range ([ ] is default) Explanation
Handshake Instructions
ESC .B [ESC].B None Outputs the current remaining buffer capacity to the
Output Remaining computer.
Buffer Capacity
ESC .M [ESC].M<P1>;<P2>; P1: Delay time 0-32767 (msec) [0 (msec)] Sets handshake output specifications.
Set Handshake <P3>;<P4>;<P5>; P2: Output trigger character [0 (Sets nothing)]
Output <P6>: P3: Echo terminator [0 (Sets nothing)]
Specifications (1) P4: Output terminator [13 ([CR])] Note: When you specify some values to <P4> and
P5: Output terminator [0 (Sets nothing)] <P5>, always set 0 to <P6>. When you specify
P6: Output initiator [0 (Sets nothing)] some value to <P6>, always set 0 to <P5>.
ESC .N [ESC].N<P1>;<P2>; P1: Intercharacter delay 0-32767 (msec) [0 (msec)] Sets an intercharacter delay, and also an Xoff
Set Handshake <P3>; ••••• ;<P11>: P2-P11 [All 0 (Sets nothing)] character for performing the Xon/Xoff handshake.
Output : Xoff character (for Xon/Xoff)
Specifications (2) Immediate response character
(for ENQ/ACK)
ESC .H [ESC].H<P1>;<P2>; P1: The number of bytes for 0-15358 (byte) [80 (byte)] When receiving the ENQ character set by <P2>,
Sets ENQ/ACK <P3>; •••••••• ;<P12>: data block [0 (Sets nothing)] compares the value set by <P1> and the remaining
Handshake Mode1 P2: ENQ character [All 0 (Sets nothing)] buffer capacity, and returns the ACK character to
P3-P12 the host computer when the remaining buffer
: ACK character (only when capacity is larger. The [ESC].H with no parameter
<P2> is set) performs a dummy handshake.
ESC .I [ESC].I<P1>;<P2>; P1: Limit of the remaining 0-15358 (byte) [80 (byte)] Used for performing the Xon/Xoff handshake and
Set Xon/Xoff <P3> ; •••••••• ;<P12>: buffer capacity (for Xon/Xoff) the ENQ/ACK handshake mode 2.
Handshake and The number of data block bytes The [ESC].I instruction with no parameter performs
ENQ/ACK (for ENQ/ACK (mode2)) a dummy handshake. In a dummy handshake,
Handshake Mode2 P2: ENQ character [0 (Sets nothing)] always returns the ACK character to the host
(for ENQ/ACK (mode2)) computer, regardless of the remaining buffer
0 (for Xon/Xoff) capacity, when receiving the ENQ character.
P3-P12 [All 0 (Sets nothing)]
: Xon character(for Xon/Xoff)
ACK character
(for ENQ/ACK (mode2))
ESC .@ [ESC].@ P1;P2: P1: Ignored Controls the DTR signal (No. 20 pin of RS-232C).
Controls DTR P2: DTR signal control 0-255 [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.
Status Instructions
ESC .O [ESC].O None Outputs the status codes of PNC-2300 shown in
Outputs the Status the table below.
of Buffer, Pause
Code Meaning
0 Data remaining in buffer.
8 Buffer empty.
16 Data remaining in buffer. PNC-2300
being paused (Pause On being displayed).
24 Buffer empty. PNC-2300 being
paused (Pause On being displayed).
Device Control Instructions
The Device Control instructions determine how communication between the PNC-2300 and the computer will be handled using the RS-
232C interface; and also are employed when relaying to the computer the status of the PNC-2300. 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.