
ControlLogix Platform ♦ "C" Programmable CIP API Functions
Linux Application Development Module Developer's Manual
ProSoft Technology, Inc. Page 201 of 264
March 12, 2014
OCXcip_Sleep
Syntax
int OCXcip_Sleep (OCXHANDLE apihandle,
WORD msdelay);
Parameters
handle returned by previous call to OCXcip_Open
Time delay is milliseconds
Description
OCXcip_Sleep delays for msdelay milliseconds.
Return Value
The jumper information was read successfully
apihandle does not have access
Example
OCXHANDLE apiHandle;
int timeout = 200;
/* Simple timeout loop */
while (timeout --)
{
//Poll for data and so on
//Break if condition is met (no timeout)
//Else sleep a bit and try again
OCXcip_Sleep (apiHandle, 10);
}
Comentários a estes Manuais