SmcWGetBankNo


Function

Retrieves the bank number under operation.

Format

Ret = SmcWGetBankNo( Id , AxisNo , BankNo )

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#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of the variable that stores the bank number under operation.

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.

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

Example

The bank number under operation of axis number 1 is acquired.

VB.NET
Dim Ret As Integer
Dim BankNo As Short
Ret = SmcWGetBankNo( Id , 1, BankNo )

C, C++
long Ret;
short BankNo;
Ret = SmcWGetBankNo( Id , 1, &BankNo );

C#
int Ret;
short BankNo;
Ret = Smc.WGetBankNo( Id , 1, out BankNo );

Python
Ret = ctypes.c_long()
BankNo = ctypes.c_short()
Ret.value = csmc.SmcWGetBankNo( Id , 1, ctypes.byref(BankNo) )