DioGetPauseCounterMode

Applies To

GX5150, File.

Purpose

Returns Pause counter mode.

Syntax

DioGetPauseCounterMode (nMasterHandle, pnMode, pnStatus)

Parameters

Name

Type

Comments

nMasterHandle

SHORT

Master board handle.

pnMode

PSHORT

Pause counter modes are:

0  Disabled.

1  Enabled.

2  Zero on Pause.

pnStatus

PSHORT

Returned status: 0 on success, negative number on failure.

Comments

The board must be in a HALT or PAUSE mode.

When in “Zero on Pause” mode, the Pause counter will be set to zero each time the board is paused by the Pause counter.

Example

The following example returns the Pause counter mode:

 

SHORT   nStatus, nMode;

DioGetPauseCounterMod(nHandle, &nMode &nStatus);

 

See Also

DioSetPauseCounterMode, DioGetPauseCount,DioSetPauseCount, DioGetStepCounter, DioGetErrorString