Receiving Data; Input# Command; Transmission Control Signals - Omron C200H-ASC11 Manual

Ascii units
Hide thumbs Also See for C200H-ASC11:
Table of Contents

Advertisement

Receiving Data

4-4

Receiving Data

4-4-1

INPUT# Command

Example
Example
4-4-2

Transmission Control Signals

Data is received using the INPUT# command or the INPUT$ (<numeral
expression>[,#<port expression>])) function.
Use the INPUT# command to store data received from the receive buffer in
variables using the CR code as a terminator. This allows reception of CR-
delimited communications responses and input data from the keyboard. The
BASIC indicator on the front panel will flash slowly until the CR code is
entered. If data is not received within a certain time, INPUT# can be quit by
using this command after the WAIT command. See 5-4 Time Processing.
INPUT #2, A$
Data from communications port #2's receive buffer up until the CR code termi-
nator is stored in character variable A$.
INPUT #2, A$, B$
Data from communications port #2's receive buffer delimited by commas is
stored in character variables A$ and B$.
Note CR or LF is not received as data for the INPUT # command.
If the RTS signal is ON, received data will be stored in the receive buffer inde-
pendent of the INPUT command. When the INPUT command is executed, the
data in the receive buffer will be stored in each variable, using the CR code as
the terminator.
RTS will turn ON if the INPUT command is executed when the RTS signal is
OFF. If data is received, it will be stored in the receive buffer, and then stored
in each variable using the CR code as the terminator. (CTS and DSR are not
checked.)
If the receive buffer overflows, the allocated I/O area ports (1, 2, and terminal
port) will turn ON error flags and indicators.
Note
1. Use Xon/Xoff flow control to ensure that the ASCII Unit receive buffer does
not overflow.
2. Choose one of the following flow controls according to the external devices
to ensure that the receive buffers of the external devices do not overflow.
ASCII Unit
BASIC program
INPUT#2
Variable
CR
terminator
Receive
buffer
Section 4-4
General-purpose
external device
51

Advertisement

Table of Contents
loading

This manual is also suitable for:

C200h-asc21C200h-asc31

Table of Contents