DioReset

Applies To

GC5050, GX5050, GX5055, GX5150, GX5280, GX5290, GX5290e, GX5295, File

Purpose

Changes the state of the specified Master board to HALT and restores Master and Slaves to the default setup.

Syntax

DioReset (nMasterHandle, pnStatus)

Parameters

Name

Type

Comments

nMasterHandle

SHORT

Board handle.

pnStatus

PSHORT

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

Comments

Example

The following example resets the board:

 

SHORT   nStatus;

DioReset(nHandle, &nStatus);

 

See Also

DioHalt, DioInitialize, DioGetErrorString