DioGetNextCtrlCommandStep

Applies To

GX5280, GX5290, GX5290e, GX5295, File

Purpose

Returns the next control command step number starting at the specified step number.

Syntax

DioGetNextCtrlCommandStep (nHandle, pdwStep, pnStatus)

Parameters

Name
Type
Comments
nHandle
SHORT
Master or File board handle.
pdwSteps

PDWORD

Returned the next control command step number starting at the specified step number.
If Returned value is 0xFFFFFFFF (4294967295) then no more control commands were found.
pnStatus
PSHORT
Returned status: 0 on success, negative number on failure.

Example

The following example returns next control command step number starting from step 100:

 

SHORT nStatus;

DWORD dwStep=100;

DioGetNextCtrlCommandStep (nHandle, &dwStep, &nStatus);

 

See Also

DioWriteCtrlCommand , DioReadCtrlCommand, DioGetErrorString