Termination of received data – ProSoft Technology MVI46-GSC User Manual
Page 57

Reference MVI46-GSC
♦ SLC Platform
Generic Serial Communication Module
ProSoft Technology, Inc.
Page 57 of 78
December 5, 2007
5.2.3 Termination of Received Data
When data is received on either of the application ports, you must define in the
configuration when this data will be transferred to the SLC processor. 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
4096 bytes) to the processor using the input image. This termination type is set in
the bit mapped, Type field of the module's configuration. The following illustration
shows the bit map used for this parameter.
Termination Type Field
Bit(s)
4 to 7
3
2
1
0
Bit Value
-
8
4
2
1
Definition
Reserved
Packet size
limit used
Intercharacter
delay timeout
used
Message
timeout used
Termination
character(s)
used
If none of the bits are set (Type=0), the port will be configured for stream mode.
Any characters received on the port are immediately sent to the processor. The
processor must buffer and assemble a packet of information if this mode is
selected as required by the application. If the data can be handled by the
processor in this mode and it is appropriate for your application, this is the fastest
method of communication between the device and the processor.
Any combination of bits is acceptable to the module and should be set to match
the device on the specific port. An example of each termination type is given
below.
Termination character(s) used
Settings:
Count = 1 (RTermCnt=1)
Termination on 0x0d (carriage return character) (RTermChar = 0d 00 00 00 …)
Data Received on port:
A B C 0x0d
D E
Comment:
The characters "ABC" will be sent along with the 0x0d character to the controller after the
0x0d character is received. The characters "DE" will not be sent until the 0x0d character is
received.