Synchronization - Rockwell Automation Allen-Bradley ControlLogix 1756-MVI Programming Reference Manual

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

Advertisement

3-18
MVI Backplane API
Publication 1756-RM004B-EN-P - October 2000

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
MVI_ERR_NOACCESS
MVI_ERR_TIMEOUT
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
the input scan has occurred
handle does not have access
the timeout expired before an input scan
occurred

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents