SmcWSetBankAccelTime


Function

Set the acceleration time of bank/interpolation operation.

 

Format

Ret = SmcWSetBankAccelTime( Id , AxisNo , BankNo , AccelTime )

 

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.

 

AccelTime [ C, C++: double ] [ Python: ctypes.c_double ]

The acceleration time is set. The unit is ms.
When set to 0, it doesn't accelerate, and it sets it instantaneously at the speed of the target.
When set to -1, the default value is made effective.
Valid range: -1, Acceleration 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 acceleration 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

SmcWGetBankAccelTime