SmcWGetDecelTime


Function

Retrieves the setting of decelerating time.

Format

Ret = SmcWGetDecelTime( Id, AxisNo, DecelTime )

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.

DecelTime [ VB.NET: Double ] [ C, C++: double * ] [ C#: out double ] [ Python: ctypes.POINTER(ctypes.c_double) ]
Specify the address of a variable to store the decelerating time. The unit is [ms].

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

The value is corrected by SmcWSetStartSpeed and SmcWSetTargetSpeed (SmcWSetSSpeed when S character operation is used).
This function can be executed even if the axis is in operation.

Example

The deceleration time of axis number 1 is acquired.

VB.NET
Dim Ret As Integer
Dim DecelTime As Double
Ret = SmcWGetDecelTime( Id , 1, DecelTime )

C, C++
long Ret;
double DecelTime;
Ret = SmcWGetDecelTime( Id , 1, &DecelTime );

C#
int Ret;
double DecelTime;
Ret = Smc.WGetDecelTime( Id , 1, out DecelTime );

Python
Ret = ctypes.c_long()
DecelTime = ctypes.c_double()
Ret.value = csmc.SmcWGetDecelTime( Id , 1, ctypes.byref(DecelTime) )

See Also

SmcWSetDecelTime