WriteAxisMop
Writes a value of the Modes of Operation variable into an axis.
Syntax
KsError WriteAxisMop(
int Index,
BYTE Value
);
Parameters
Index: the index of an axis. Indexes are zero based. Aliases affect this parameter.
Value: the value to write.
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 update the Modes of Operation of an axis. This function should only be used when the CANopen state is Not Ready.
Usable EtherCAT states
ecatOP
Example
Copy
nRet = WriteAxisMop(0, 8);
Requirements
| RT | Win32 | |
|---|---|---|
| Minimum supported version | 4.0 | 4.0 |
| Header | ksapi.h | ksapi.h |
| Library | KsApi_Rtss.lib | KsApi.lib |
See also