
52
Receiving Data
Section 4-4
• Use CTS_ON with the OPEN command and monitor the CTS signal
for RTS/CTS flow control.
• Use XN_ON with the OPEN command and perform Xon/Xoff flow con-
trol.
3.
When an ON COM interrupt is used, the baud rate of all ports will be as
follows:
Port 1 + port 2
≤
38.4 Kbps
If the baud rate is set to exceed this condition, a PORT CONFIGURATION
ERROR (error code 0055) will be generated when compiling.
4-4-3
INPUT$ Function
The INPUT$(
character_length
,
port
) function is used to store a fixed number
of characters from the receive buffer in one string variable.
This function enables read communications data with terminators other than
CR, specified numbers of bar code characters, a specified number of bytes
from the receive buffer, etc. The INPUT$(
character_length
,
port
) function can
be used in conjunction with the ON COM command (communications inter-
rupt) or ON KEY command (key interrupt), so that when a communications
interrupt or key interrupt occurs, it is possible to store a specified number of
characters from the receive buffer to a variable.
Until the specified number of characters is received, the BASIC indicator on
the front panel of the Unit will flash slowly, signifying that it is awaiting input.
If the specified number of characters is not received within a certain time,
INPUT$ can be quit by using this function after the WAIT command. See
5-4
Time Processing
.
Example
A$ = INPUT$(10, #2)
Ten characters of data is stored from communications port #2 to A$.
Example
Reception of Communications Response Frame
When a terminator other than CR is used, the communication data is received
using the INPUT$ function.
A$ = INPUT$(LOC(2), #2)
All data in the communications receive buffer is stored in character variable
A$.
ASCII Unit
Variable
Receive
buffer
General-purpose
external device
A$ = INPUT$(n, #2)
Specified
character
length only
Summary of Contents for C200H-ASC11
Page 1: ...C200H ASC11 ASC21 ASC31 ASCII Units Operation Manual Revised June 2000...
Page 2: ...iv...
Page 4: ...vi...