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

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

Advertisement

3-22
MVI Backplane API
Publication 1756-RM004B-EN-P - October 2000
MVIbp_GetProcessorStatus
Syntax:
int
MVIbp_GetProcessorStatus(MVIHANDLE handle, WORD
*pstatus);
Parameters:
handle
handle returned by previous call to MVIbp_Open
pstatus
pointer to a word that will be updated with the current
processor status
Description:
This function is used to query the state of the processor. handle must
be a valid handle returned from MVIbp_Open.
pstatus is a pointer to an word. When this function returns, certain bits
in this word will be set to indicate the current processor status, as
shown in table 3.G.
Table 3.G - Processor Status Bits
Bit
Name
0
MVI_PROCESSOR_STATUS_RUN
1
MVI_DATA_CONNECTION_OPEN
2
MVI_STATUS_CONNECTION_OPEN
1756_MVI Note
The data connection must be established in order to receive the
processor status. Therefore, if the data connection is not established,
this function will return MVI_ERR_BADCONFIG and pstatus will be
zero.
1794-MVI Note
This function is not supported on the 1794-MVI and will always return
MVI_ERR_NOTSUPPORTED.
Return Value:
MVI_SUCCESS
MVI_ERR_NOACCESS
MVI_ERR_BADCONFIG
Description
Set if processor is in Run mode.
Set if data connection is open (1756-MVI
only).
Set if status connection is open (1756-MVI
only)
no errors were encountered
handle does not have access
the data connection is not open. (1756-MVI
only)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents