SmcWSetBankDistance


Function

Set the moved distance of bank/interpolation operation.

 

Format

Ret = SmcWSetBankDistance( Id , AxisNo , BankNo , Distance )

 

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.

 

Distance [ C, C++: int ] [ Python: ctypes.c_int ]

Set Moved distance.
Valid range: 0, -134,217,728 to +134,217,727

 

Return Value

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

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

 

Remarks

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

SMC-2/4/8DL series is "BankNo=1" fixation.

 

See Also

SmcWGetBankDistance