Function
Retrieves the interpolation type and the axis for the interpolation.
Format
Ret = SmcWSetBankInterpolation( Id , AxisNo , BankNo , InterType , InterAxis , Reserved)
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.
BankNo [ C, C++: short ] [ Python: ctypes.c_short ]
Specify bank number.
InterType [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
The address of the variable that stores the interpolation operation type is
specified..
0 |
No interpolate |
1 |
Straight line interpolation 1 |
2 |
Straight line interpolation 2 |
3 |
Circular arc interpolation |
Straight line interpolation 1 : It is straight line interpolation operation of can Accel/Decel setting.
Straight line interpolation 2 : It is straight line interpolation operation of cannot Accel/Decel setting.
Circular arc interpolation : Circle move by 2 Axis.
InterAxis [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
The address of the variable that stores the axis including the axis for each interpolation is specified .
Axis No bits
[ 8 7 6 5 ][ 4 3 2 1 ]
Range (4 Axis board): from
0x3 to 0xF
Range (8 Axis board): from 0x3 to 0xFF
0 |
No interpolate |
1 |
Interpolate |
Reserved [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Value is 0.
Return Value
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Remarks
See Also