SmcWGetSDMode


Function

Retrieves the setting of motion when SD signal comes in.

Format

Ret = SmcWGetSDMode( Id, AxisNo, SDMode )

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.

SDMode [ 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 the operation when SD signal comes in.

0

Deceleration stop

1

Deceleration only (The carrier moving slows down to the initial speed )

2

Deceleration stop + SD signal latch

3

Deceleration + SD signal latch

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

Initial Value

0 : Deceleration stop

Remarks

This function can be executed even if the axis is in operation.

Example

The operation set up information when the SD signal of axis number 1 is input is acquired.

VB.NET
Dim Ret As Integer
Dim SDMode As Short
Ret = SmcWGetSDMode( Id , 1, SDMode )

C, C++
long Ret;
short SDMode;
Ret = SmcWGetSDMode( Id , 1, &SDMode );

C#
int Ret;
short SDMode;
Ret = Smc.WGetSDMode( Id , 1, out SDMode );

Python
Ret = ctypes.c_long()
SDMode = ctypes.c_short()
Ret.value = csmc.SmcWGetSDMode( Id , 1, ctypes.byref(SDMode) )

See Also

SmcWSetSDMode