WriteAxisTouchProbeControl
Writes the variable (#x60B8) of touch probe control.
Syntax
KsError WriteAxisTouchProbeControl(
int Index,
WORD Value
);
Parameters
Index: the index of an axis. Indexes are zero based. Aliases affect this parameter.
Value: the value to be written into the variable of touch probe control.
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
- To use this function, touch probe must be enabled using EnableTouchProbe.
-
This function can be used only in Manual mode. See the McControlMode type.
Usable EtherCAT states
ecatOP
Example
Copy
nRet = WriteAxisTouchProbeControl(0, 0x3838);
Requirements
| RT | Win32 | |
|---|---|---|
| Minimum supported version | 4.0 | 4.0 |
| Header | ksapi.h | ksapi.h |
| Library | KsApi_Rtss.lib | KsApi.lib |
See also