beautypg.com

Termination type field – ProSoft Technology MVI71-GSC User Manual

Page 62

background image

MVI71-GSC ♦ PLC Platform

Reference

Generic Serial Communication Module

Page 62 of 82

ProSoft Technology, Inc.

January 31, 2008

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.

Message timeout used

Settings:
Message timeout = 1000 mSec (Rtimeout=1000)

Data Received on port:

TIME
0

1000 mSec

2000 mSec

A B C D E F G

Comment:

After the 'A' character is received on the port, the message timeout is started.
The characters "ABCDE" will be sent to the controller in one block. The characters
"FG" will follow in the second block one second later.