Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual page 92

Multi-vendor interface module
Hide thumbs Also See for Allen-Bradley ControlLogix 1756-MVI:
Table of Contents

Advertisement

5-4
Serial Port API
Publication 1756-RM004B-EN-P - October 2000
Initialization
MVIsp_Open
Syntax:
int
MVIsp_Open(int comport, BYTE baudrate, BYTE parity, BYTE
wordlen, BYTE stopbits);
Parameters:
comport
communications port to open
baudrate
baud rate for this port
parity
parity setting for this port
wordlen
number of bits for each character
stopbits
number of stop bits for each character
Description:
MVIsp_Open acquires access to a communications port. This function
must be called before any of the other API functions can be used.
comport specifies which port is to be opened. The valid values for the
1756
-MVI module are COM1 (corresponds to PRT1), COM2
AV
(corresponds to PRT2), and COM3 (corresponds to PRT3).
baudrate is the desired baud rate. The allowable values for baudrate
are shown in table 5.C.
Table 5.C Valid Baud Rates
Baud Rate
BAUD_110
BAUD_150
BAUD_300
BAUD_600
BAUD_1200
BAUD_2400
BAUD_4800
BAUD_9600
BAUD_19200
BAUD_28800
BAUD_38400
BAUD_57600
BAUD_115200
Valid values for parity are PARITY_NONE, PARITY_ODD,
PARITY_EVEN, PARITY_MARK, and PARITY_SPACE
Value
0
1
2
3
4
5
6
7
8
9
10
11
12

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents