ReadAxisMopDisplay
Reads the value of the Modes of Operation Display variable in PDO.
Syntax
KsError ReadAxisMopDisplay(
int Index,
BYTE* Value
);
Parameters
Index: the index of an axis. Indexes are zero based. Aliases affect this parameter.
Value: pointer to the buffer to receive the value of Modes of Operation Display.
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
Checks what mode of operation is in use.
NOTE: The mode of operation is available only if EnableSynchronizedControlMode is enabled.
Usable EtherCAT states
ecatOP
Example
Copy
BYTE mopDisplay = 0;
nRet = ReadAxisMopDisplay(0, &mopDisplay);
Requirements
| RT | Win32 | |
|---|---|---|
| Minimum supported version | 4.0 | 4.0 |
| Header | ksapi.h | ksapi.h |
| Library | KsApi_Rtss.lib | KsApi.lib |
See also