Function
Sets the value of speed resolution.
Format
Ret = SmcWSetResolveSpeed( 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.c_double ]
Set the value of speed resolution.
The default becomes valid when -1 is specified.
Setting
range of resolve speed
SMC-2/4/8DL series : -1, 0.29296875-600
SMC-4/8DF series : -1, 0.0732421875-100
Return Value
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Remarks
The default value is resolution: It is 1 pps.
If the default value is in use, the function need not be performed.
The
speed resolution cannot be changed during operation.
This is the specification of the LSI used.
Therefore, even if you set the speed resolution during operation and change
the motor operation with the following functions, the speed resolution
will not be reflected.
- SmcWSetMotionChangeReady
- SmcWSetMotionChange
Example
The speed resolution of axis number 1 is set to 1.
C, C++
long Ret;
double ResolveSpeed ;
ResolveSpeed = 1;
Ret = SmcWSetResolveSpeed( Id , 1, ResolveSpeed );
Python
Ret = ctypes.c_long()
ResolveSpeed = ctypes.c_double()
ResolveSpeed.value = 1
Ret.value = csmc.SmcWSetResolveSpeed( Id , 1, ResolveSpeed )
See Also