Function
Retrieves the setting of speed resolution.
Format
Ret = SmcWGetResolveSpeed( Id, AxisNo, ResolveSpeed )
Parameters
Id [ C, C++: short ] [ Python: ctypes.c_short ]
Specify the device ID retrieved by SmcWInit function.
AxisNo [ C, C++: short ] [ Python: ctypes.c_short ]
Specify axis number.
ResolveSpeed [ C, C++: double * ] [ Python: ctypes.POINTER(ctypes.c_double) ]
Specify the address of the variable that stores the value of speed resolution.
Return Value
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Remarks
This function can be executed even if the device is in operation.
Example
The set up information of the speed resolution of axis number 1 is acquired.
C, C++
long Ret;
double ResolveSpeed ;
Ret = SmcWGetResolveSpeed( Id , 1, &ResolveSpeed );
Python
Ret = ctypes.c_long()
ResolveSpeed = ctypes.c_double()
Ret.value = csmc.SmcWGetResolveSpeed( Id , 1, ctypes.byref(ResolveSpeed) )
See Also