SmcWGetLimitMask


Function

Retrieves the setting that indicates whether to use the limit signals.

Format

Ret = SmcWGetLimitMask( Id, AxisNo, LimitMask )

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 the axis number.

LimitMask [ VB.NET: Short ] [ C, C++: short *] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short) ]
Specify the address of a variable to store the value that indicates whether to use the limit signals

[ 0 | 0 | 0 | 0 | 0 | 0 | ALM | SD ]

Meaning of signals

SD

Deceleration stop limit

ALM

Alarm/urgent stop limit

Settings

0

Limit enabled

1

Limit disabled

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.

Example

A setting of the limit signal of axis number 1 effective/invalid is acquired.

VB.NET
Dim Ret As Integer
Dim LimitMask As Short
Ret = SmcWGetLimitMask( Id , 1, LimitMask )

C, C++
long Ret;
short LimitMask;
Ret = SmcWGetLimitMask( Id , 1, &LimitMask  ) ;

C#
int Ret;
short LimitMask;
Ret = Smc.WGetLimitMask( Id , 1, out LimitMask  ) ;

Python
Ret = ctypes.c_long()
LimitMask = ctypes.c_short()
Ret.value = csmc.SmcWGetLimitMask( Id , 1, ctypes.byref(LimitMask) )

See Also

SmcWSetLimitMask