Applies To
GX5150, GX5280, GX5290, GX5290e, GX5295, File
Purpose
Enables or disables the Master board’s program counter overflow.
Syntax
DioSetupCounterOverflowMode (nMasterHandle, nOverflowMode, pnStatus)
Parameters
Name |
Type |
Comments |
nMasterHandle |
SHORT |
Master board handle. |
nOverflowMode |
SHORT |
Program counter overflow modes are: 0 Program counter overflow disabled. 1 Program counter overflow enabled. |
pnStatus |
PSHORT |
Returned status: 0 on success, negative number on failure. |
Comments
If the overflow mode is enabled then the DIO will not stop at the last step but instead wrap around to step zero and continue. If the overflow mode is disabled, then the sequencer will go to the HALT state at the last step.
The board must be in the HALT or PAUSE state.
Example
The following example enables the specified board’s program counter overflow mode:
SHORT nStatus;
DioSetupCounterOverflowMode (nHandle, 1, &nStatus);
See Also
DioGetCounterOverflowMode, DioGetErrorString