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

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

Advertisement

MVIbp_WaitForOutputScan
Syntax:
int
MVIbp_WaitForOutputScan(MVIHANDLE handle, WORD
timeout);
Parameters:
handle
handle returned by previous call to MVIbp_Open
timeout
maximum number of milliseconds to wait for scan
Description:
MVIbp_WaitForInputScan allows an application to synchronize with the
scan of the module's output image. This function will return
immediately after the module's output image has been written.
handle must be a valid handle returned from MVIbp_Open. timeout
specifies the number of milliseconds that the function will wait for the
output scan to occur.
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
MVI_ERR_BADCONFIG the data connection is not open. (1756-MVI
Example:
MVIHANDLE
Handle;
int
rc;
/* Wait here until output scan, 50ms timeout */
rc = MVIbp_WaitForOutputScan(Handle, 50);
if (rc == MVI_ERR_TIMEOUT)
printf("Output scan did not occur within 50ms\n");
else
printf("Output scan has occurred\n");
See Also:
MVIbp_WaitForInputScan
the output scan has occurred
handle does not have access
timeout expired before an output scan
occurred
only)
Publication 1756-RM004B-EN-P - October 2000
MVI Backplane API
3-19

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents