WriteAxisTorqueOffset
Sets the torque offset of an axis.
Syntax
KsError WriteAxisTorqueOffset(
int Index,
short Value
);
Parameters
Index: the index of an axis. Indexes are zero based. Aliases affect this parameter.
Value: the torque offset of an axis in 0.1 percent unit.
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
- Sets the axis' torque while the torque control mode is used.
- This function can be used only if the TorqueOffset feature is enabled.
Usable EtherCAT states
ecatOP
Example
Copy
nRet = WriteAxisTorqueOffset(0, (short)0.3);
Requirements
RT | Win32 | |
---|---|---|
Minimum supported version | 4.0 | 4.0 |
Header | ksapi.h | ksapi.h |
Library | KsApi_Rtss.lib | KsApi.lib |
See also