Transmit-receive mode, Configuring a port for transmit-receive mode, Termination of received data – ProSoft Technology 5201-DFNT-ASCII User Manual

Page 15: Termination, Received data

Advertising
background image

Modes of Operation

ASCII ♦ ProLinx Standalone

Generic ASCII Serial Communication Module

ProSoft Technology, Inc.

Page 15 of 40

July 7, 2008

3.1.3 Transmit-Receive

Mode

A port configured in transmit-receive mode can send and receive data from an
ASCII device such as a terminal. This mode functions the same way as transmit-
only mode or receive-only mode, but handles both the transmit and receive
functions. Data flow to and from an ASCII device is handled by the module's
transmit and receive drivers. Data received from the ASCII device is stored in the
module's internal database until ready to be sent to an external device. Data
received by an external device is also stored in the module's internal database
until ready to be transmitted to the ASCII device. The following illustration shows
the data flow when the port is configured for transmit-receive mode:

Configuring a Port for Transmit-Receive Mode

In order to set a port to both receive data and transmit data to an ASCII device,
ensure that the Rx DB Start parameter and the Tx DB Start parameter both
contain values that specify data storage starting locations. A -1 value in either
parameter will disable the particular function that the parameter serves.

3.2

Termination of Received Data

When data is received on the application port, the user must define in the
configuration when this data will be transferred to the Internal Database within
the module. this is known as the termination type for port. When the termination
condition is met, the data will be sent from the port's receive buffer (data area of
255 bytes) to the Internal Database. This termination type is set in the bit
mapped Type field of the module object. The following illustration shows the bit
map used for this parameter.

Advertising