DioGetNumberOfSteps

Applies To

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

Purpose

Returns the specified DIO board number of steps.

Syntax

DioGetNumberOfSteps (nHandle, pdwSteps, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Master or File board handle.
pdwSteps
PDWORD
Returned number of steps.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Comments

In case of GX5150 the number of steps adjusted according to the width settings. See for details “DioSetupIOConfiguration”.

Example

The following example returns DIO board number of steps:

 

SHORT nStatus;

DWORD dwSteps;

DioGetNumberOfSteps (nHandle, &dwSteps, &nStatus);

 

See Also

DioSetupIOConfiguration, DioGetErrorString