ReadAxisOutputs
Reads a value from an output of an axis.
Syntax
KsError ReadAxisOutputs(
int Index,
DWORD* Value
);
Parameters
Index: the index of an axis. Indexes are zero based. Aliases affect this parameter.
Value: pointer to the buffer to write the digital output.
Return value
If the function succeeds, it returns errNoError, otherwise an error code. For more information about the error code, see the KsError list.
Remarks
Used in the cyclic callback to check the digital outputs of an axis.
NOTE: The digital output is available only if EnableAxisOutput is enabled.
Usable EtherCAT states
ecatOP
Example
Copy
DWORD outputRead = 0;
nRet = ReadAxisOutputs(0, &outputRead);
Requirements
| RT | Win32 | |
|---|---|---|
| Minimum supported version | 4.0 | 4.0 |
| Header | ksapi.h | ksapi.h |
| Library | KsApi_Rtss.lib | KsApi.lib |
See also