SmcWGetBankInterpolation


Function

Retrieves the interpolation type and the axis for the interpolation.

Format

Ret = SmcWSetBankInterpolation( Id , AxisNo , BankNo , InterType , InterAxis , Reserved)

Parameters

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
SSpecify the Deice ID retrieved by SmcWInit function.

AxisNo [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify axis number.

BankNo [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify bank number.

InterType [ VB.NET: Short ] [ C, C++: short * ] [ C#: out 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 [ VB.NET: Short ] [ C, C++: short * ] [ C#: out 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 [ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Value is 0.

Return Value

Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

Remarks

This function can be executed even if the axis is in operation.

See Also

SmcWSetBankInterpolation