EasyManua.ls Logo

Rockwell Automation Allen-Bradley ControlLogix 1756-MVI - Synchronization and Miscellaneous Functions

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
3-18 MVI Backplane API
Synchronization
MVIbp_WaitForInputScan
Syntax:
int MVIbp_WaitForInputScan(MVIHANDLE handle, WORD timeout);
Parameters:
handle handle returned by previous call to MVIbp_Open
timeout maximum number of milliseconds to wait for scan
Description:
This function is not supported for the 1756-MVI and will return
MVI_ERR_NOTSUPPORTED.
Return Value:
MVI_SUCCESS the input scan has occurred
MVI_ERR_NOACCESS
handle
does not have access
MVI_ERR_TIMEOUT the timeout expired before an input scan
occurred
Example:
MVIHANDLE Handle;
/* Wait here until input scan, 50ms timeout */
rc = MVIbp_WaitForInputScan(Handle, 50);
if (rc == MVI_ERR_TIMEOUT)
printf(“Input scan did not occur within 50 milliseconds\n”);
else
printf(“Input scan has occurred\n”);
See Also:
MVIbp_WaitForOutputScan

Table of Contents

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

Related product manuals