beautypg.com

Status data – ProSoft Technology MVI71-GSC User Manual

Page 25

background image

Installing and Configuring the Module

MVI71-GSC ♦ PLC Platform

Generic Serial Communication Module

ProSoft Technology, Inc.

Page 25 of 82

January 31, 2008

2.1.3 Status

Data

This data is stored in the configuration file for the side-connect interface and can
be placed in any user-defined file when using the BTR/BTW interface. This data
is transferred from the module to the processor when there is no data in the
receive buffer for a port.

If the side-connect interface is utilized, the module will automatically place the
status data block into the configuration file set for the application. The data will be
placed at an offset of 200 in the file.

Within the status data block are error words that are associated with each port
(Port 1=offset 19, Port 2=offset 26). These report configuration errors and
receive overflow errors to the controller. If the module is not functioning as
expected, inspect the values presented in this object. If a configuration error
exists, the associated bit will be set. A value of zero for the bit indicates the
configuration value is valid. This does not guarantee that the module is
configured correctly for your application. The structure of the word is shown
below:

Error

Bit in
Word

Description

Cfg_type

Bit 0

The termination type configured for the port is not valid.
Values between 0 and 15 are the only ones valid. The
module will use type 0 (stream mode) for the port.

Cfg_Baud

Bit 1

The baud rate entered for the port is not valid. The module
will use 9600 baud for the port.

Cfg_Parity

Bit 2

The parity value entered is not valid. Values between 0 and
4 are accepted. The module has set the parity to a value of
none (0).

Cfg_DataBits

Bit 3

The number of data bits for the protocol is not valid. Values
between 5 and 8 are accepted. The module assumes a
value of 8 data bits.

Cfg_StopBits

Bit 4

The number of stop bits for the protocol is not valid. Values
of 1 or 2 are accepted. The module assumes a value of 1
stop bit.

Cfg_Handshake

Bit 5

The handshake code for the port is not valid. The value
entered must be in the range of 0 to 3. The module assumes
a value of 0 (no handshaking).

Cfg_Rtermcount

Bit 6

The number of termination characters is not valid. The value
must be set between 1 and 12 when using the termination
character string to end a receive buffer. The module will not
terminate a buffer when using the termination character(s)
when this bit is set.

Cfg_RPacketLen

Bit 7

The number of characters for a packet is not valid. The value
must be set between 1 and 4096 when the packet size
termination option is used. The module will not use the
packet length termination option when this bit is set.

Cfg_Rtimeout

Bit 8

The message timeout value is set to zero. The module will
not use the message timeout termination option when this bit
is set.

Cfg_Rdelay

Bit 9

The intercharacter delay value configured is set to zero. The
module will not use the intercharacter delay option when this
bit is set.