SmcWSetBankDistance


Function

Set the moved distance of bank/interpolation operation.

Format

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

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.

Distance [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]
Set Moved distance.
The specified range varies depending on the device.
For details, please refer to "Specifications based on devices section".

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

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

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

Specifications based on devices

Model No.

LSI chip for Pulse Control chip

The valid range for Distance

SMC-4DL-PE
SMC-8DL-PE
SMC-4DL-PCI
SMC-8DL-PCI

PCL6145 equivalent

-2,147,483,648 to +2,147,483,647 (32bits)

PCL6143 equivalent

-134,217,728 to +134,217,727 (28bits)

SMC-4DF2-PCI 
SMC-8DF2-PCI

PCL6045BL equivalent

-134,217,728 to +134,217,727 (28bits)

You can confirm "LSI chip" on your device with "Diagnostic Report".

See Also

SmcWGetBankDistance