SmcWSetBankReady


Function

Set the beginning preparation and the motor operation type of bank/interpolation operation.

 

Format

Ret = SmcWSetBankReady( Id , AxisNo , MotionType)

 

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.
 

MotionType [ C, C++: short ] [ Python: ctypes.c_short ]

Set motor motion type.

4

Bank operation(single)

5

Bank operation(loop)

8

Bank operation(single) (Correction at the target speed, Corrected without changing the acceleration and deceleration)

9

Bank operation(loop) (Correction at the target speed, Corrected without changing the acceleration and deceleration)

 

Return Value

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

 

Remarks

Bank/interpolation operation setting is fixed by this function execution.
Please do not execute the function that sets the operation parameter(exp SmcWSetBankTargetSpeed) after executing the SmcWSetBankReady function until the SmcWMotionStart function is executed. It is likely not to operate normally.

There is no influence if various basic operation parameter acquisition function is executed.
Please execute various enhancing operation parameter acquisition functions(exp SmcWGetBankTargetSpeed) according to the timing after this function is executed when you confirm the correction to the speed and the addition and subtraction velocity time.

Please specify the interpolation control axis for an axis number specified for this function at the interpolation operation.

The SMC-2/4/8DL series can set only "MotionType=4(single)".
"Loop" cannot be set.

If the device is in operation, the function cannot be performed.

 

See Also

SmcWGetBankReady