DioSetPauseCounterMode

Applies To

GX5150, File.

Purpose

Sets the Pause counter mode.

Syntax

DioGetPauseCounterMode (nMasterHandle, nMode, pnStatus)

Parameters

Name

Type

Comments

nMasterHandle

SHORT

Master or File board handle.

nMode

SHORT

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 enables the Pause counter mode:

 

SHORT nStatus, nMode;

DioSetPauseCounterMode (nHandle, 1, &nStatus);

 

See Also

DioGetPauseCounterMode, DioGetPauseCount, DioSetPauseCount, DioGetStepCounter, DioGetErrorString