Function
Set the deceleration time of bank/interpolation operation.
Format
Ret = SmcWSetBankDecelTime( Id , AxisNo , BankNo , 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 axis number.
When the interpolation (Or, interpolate it the bank) operates, the interpolation
control axis is specified for an axis number.
BankNo [ C, C++: short ] [ Python: ctypes.c_short ]
Specify bank number.
DecelTime [ C, C++: double ] [ Python: ctypes.c_double ]
The deceleration time is
set. The unit is ms.
If set to 0, will not attempt to decel. (Deceleration stop command : Except
deceleration SmcWMotionDecStop)
When set to -1, the default value is made effective.
Valid range: -1, 0, Deceleration time range of setting
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 deceleration
time: It is 50 ms.
SMC-2/4/8DL series is "BankNo=1" fixation
The value is corrected by SmcWSetBankStartSpeed and SmcWSetBankTargetSpeed( SmcWSetBankSSpeed when S Rate operation is used ).
When the default value is used, this function need not be executed.
If the device is in operation, the function cannot be performed.
See Also