EasyManua.ls Logo

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI - Initialization and Configuration

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI
145 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Publication 1756-RM004B-EN-P - October 2000
5-4 Serial Port API
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
AV-MVI module are COM1 (corresponds to PRT1), COM2
(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.
Valid values for parity are PARITY_NONE, PARITY_ODD,
PARITY_EVEN, PARITY_MARK, and PARITY_SPACE
Table 5.C Valid Baud Rates
Baud Rate Value
BAUD_110 0
BAUD_150 1
BAUD_300 2
BAUD_600 3
BAUD_1200 4
BAUD_2400 5
BAUD_4800 6
BAUD_9600 7
BAUD_19200 8
BAUD_28800 9
BAUD_38400 10
BAUD_57600 11
BAUD_115200 12

Table of Contents

Other manuals for Rockwell Automation Allen-Bradley ControlLogix 1756-MVI

Related product manuals