
Side-Connect API Library Functions MVI-ADM ♦ 'C' Programmable
Developer's Guide 'C' Programmable Application Development Module
Page 314 of 342 ProSoft Technology, Inc.
February 20, 2013
11.5 Side-connect API Synchronization Functions
MVIsc_WaitForEos
Syntax
int MVIsc_WaitForEos(HANDLE handle, WORD timeout);
Parameters
returned by previous call to MVIsc_Open
Maximum number of milliseconds to wait
Description
MVIsc_WaitForEos allows an application to synchronize with the PLC-5’s ladder
scan.
This function will return when the PLC-5 reaches the end of the ladder scan.
handle must be a valid handle returned from MVIsc_Open.
Return Value
The PLC-5 has reached the end of the ladder scan.
handle does not have access
The timeout expired before an end of scan occurred.
Example
HANDLE Handle;
/* Wait here until EOS, 5 second timeout */
rc = MVIsc_WaitForEos(Handle, 5000);
Comentarios a estos manuales