
B-63943EN-2/01 6.MACRO EXECUTOR FUNCTION
- 181 -
Line close G331
- Format
G331 ;
- Explanation
This code closes an open line.
When a line is closed, the completion code is always 0 (normal
termination).
1-byte reception G335
- Format
G335 Pp ;
P: Number of the macro variable in which the received data is to be
stored
- Explanation
This code reads one byte of received data and stores it in a specified
macro variable.
Received data is once stored in the receive buffer (592 bytes) then is
read one byte at a time by this control code.
When there is no received data, completion code 255 is set.
If the receive buffer is about to overflow due to a delay in reading the
buffer relative to the reception of data, one of the following
operations is performed according to the control method specified
when the line is opened.
(1) When hard flow control is used
When a receive buffer overflow is detected (when the size of
free space is 25 bytes or less), the control signal RS is set to OFF
to send a request to the remote device to stop transmission.
When the receive buffer becomes available (when the size of
free space exceeds 567 bytes) as read processing proceeds, the
signal (RS) is set to ON to request the remote device to resume
transmission.
(2) When read control (DC1/DC3 automatic control) is used
When a receive buffer overflow is detected (when the size of
free space is 25 bytes or less), a "DC3" code is automatically
output to request the remote device to stop transmission. When
the receive buffer becomes available (when the size of free space
exceeds 567 bytes) as read processing proceeds, a "DC1" code is
output to request the remote device to resume transmission.
(c) When transmission control (DC2/DC4 automatic control) is used
When the line is opened in the transmission control mode, one-
byte read control cannot be exercised. (Completion code=8)