DioGetStepCounter

Applies To

GX5150.

Purpose

Returns the current step counter value.

Syntax

DioGetStepCounter (nMasterHandle, pdwStepCounter, pnStatus)

Parameters

Name

Type

Comments

nMasterHandle

SHORT

Master or File board handle.

pdwStepCounter

PDWORD

Step counter 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 step counter increments each time a step is executed. The counter wraps back to zero when reaching the max value (0xFFFFFFFF).

Example

The following example reurns the counter value:

 

SHORT   nStatus;

DWORD   dwCount;

DioGetStepCounter (nHandle, &dwCount, &nStatus);

 

See Also

DioSetPauseCounterMode, DioGetPauseCounterMode, DioGetPauseCount, DioSetPauseCount, DioGetErrorString