SmcWGetLimitMask


Function

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

 

Format

Ret = SmcWGetLimitMask( Id, AxisNo, LimitMask )

 

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

 

LimitMask [ C, C++: 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 [ C, C++: long ] [ 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 device is in operation.

 

Example

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

 

C, C++

long Ret;

short LimitMask;

Ret = SmcWGetLimitMask( Id , 1, &LimitMask ) ;

 

Python

Ret = ctypes.c_long()

LimitMask = ctypes.c_short()

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

 

See Also

SmcWSetLimitMask