Applies To
GX5150, File.
Purpose
Returns the Pause count value.
Syntax
DioGetPauseCount (nMasterHandle, pdwCount, pnStatus)
Parameters
Name |
Type |
Comments |
nMasterHandle |
SHORT |
Master board handle. |
pdwCount |
PDWORD |
Count value can be 0 to 4,294,967,295 (0 to 0xFFFFFFFF). |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
The board will pause after executing the specified number of steps if the pause on step mode was previously enabled by calling the “DioSetPauseCounterMode” function.
The board must be in a HALT or PAUSE mode.
Example
The following example returns the PAUSE count:
SHORT nStatus;
DWORD dwCount;
DioGetPauseCount(nMasterHandle, &dwCount,&nStatus);
See Also
DioSetPauseCount, DioSetPauseCounterMode, DioGetPauseCounterMode, DioGetStepCounter, DioGetErrorString