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

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

Advertisement

4-34
CIP Messaging API
Publication 1756-RM004B-EN-P - October 2000
MVIcip_GetConsoleMode
Syntax:
int
MVIcip_GetConsoleMode(MVIHANDLE handle, int *mode, int
*baud);
Parameters:
handle
handle returned by previous call to MVIcip_Open
mode
pointer to an integer that is set to 1 if the console is
enabled, or 0 if the console is disabled.
baud
pointer to an integer that is set to the console baud rate
index if the console is enabled.
Description:
This function is used to query the state of the console. handle must be
a valid handle returned from MVIcip_Open.
mode is a pointer to an integer. When this function returns, mode will
be set to 1 if the console is enabled, or 0 if the console is disabled.
baud is a pointer to an integer. When this function returns, baud will be
set to the console's baud index value if the console is enabled. The
baud index values are shown in table (4). baud is not set if the console
is disabled.
It may be useful for an application to detect that the console is enabled
and allow user interaction.
Note: If the Setup Jumper is installed, the console is enabled at 19200
baud.
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
Example:
MVIHANDLE
handle;
int
mode;
MVIcip_GetConsoleMode(handle, &mode);
if (mode)
// Console is enabled - allow user interaction
else
// Console is not available - normal operation
no errors were encountered
handle does not have access

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents