DioSetPauseCount

Applies To

GX5150, File.

Purpose

Sets the Pause count value.

Syntax

DioGetPauseCount (nMasterHandle, dwCount, pnStatus)

Parameters

Name

Type

Comments

nMasterHandle

SHORT

Master or File board handle.

dwCount

DWORD

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 sets the the PAUSE count to 1024:

 

SHORT   nStatus;

DioSetPauseCount (nMasterHandle, 1024, &nStatus);

 

See Also

DioGetPauseCount, DioSetPauseCounterMode, DioGetPauseCounterMode, DioGetStepCounter, DioGetErrorString