SmcWSetSAccelType


Function

Sets whether use S rate.

Format

Ret = SmcWSetSAccelType( 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#: short ] [ Python: ctypes.c_short ]
Set whether use S rate.

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 cannot be executed when the device is in operation.

After "Initial Setting function" is executed, it is necessary to execute SmcWSetInitParam.
Refer to "About Initial Setting function".

Example

The use existence at S Rate addition and subtraction velocity of axis number 1 is set.
It sets it to the use of S Rate addition and subtraction velocity.

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

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

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

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

See Also

SmcWGetSAccelType