Function
Retrieves the setting of decelerating time.
Format
Ret = SmcWGetDecelTime( Id, AxisNo, DecelTime )
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 the axis number.
DecelTime [ C, C++: double * ] [ Python: ctypes.POINTER(ctypes.c_double) ]
Specify the address of a variable to store the decelerating time. The unit is [ms].
Return Value
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Remarks
The value is corrected by
SmcWSetStartSpeed and SmcWSetTargetSpeed (SmcWSetSSpeed when S character
operation is used).
This function can be executed even if the device is in operation.
Example
The deceleration time of axis number 1 is acquired.
C, C++
long Ret;
double DecelTime ;
Ret = SmcWGetDecelTime( Id , 1, &DecelTime );
Python
Ret = ctypes.c_long()
DecelTime = ctypes.c_double()
Ret.value = csmc.SmcWGetDecelTime( Id , 1, ctypes.byref(DecelTime) )
See Also