SmcWGetSAccelType


Function

Retrieves the setting that indicates whether use S rate.

Format

Ret = SmcWGetSAccelType( Id, AxisNo, SAccelType )

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.

SAccelType [ 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 the S-curve acceleration/deceleration function is used.

0

Unused

1

Used

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 : Unused

Remarks

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

Example

The set up information of the use existence at S Rate addition and
subtraction velocity of axis number 1 is acquired.

VB.NET
Dim Ret As Integer
Dim SAccelType As Short
Ret = SmcWGetSAccelType( Id , 1, SAccelType )

C, C++
long Ret;
short SAccelType;
Ret = SmcWGetSAccelType( Id , 1, &SAccelType );

C#
int Ret;
short SAccelType;
Ret = Smc.WGetSAccelType( Id , 1, out SAccelType );

Python
Ret = ctypes.c_long()
SAccelType = ctypes.c_short()
Ret.value = csmc.SmcWGetSAccelType( Id , 1, ctypes.byref(SAccelType) )

See Also

SmcWSetSAccelType