Function
Sets whether use S rate.
Format
Ret = SmcWSetSAccelType( Id, AxisNo, SAccelType )
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.
SAccelType [ C, C++: short ] [ Python: ctypes.c_short ]
Set whether use S rate.
0 |
Unused |
1 |
Used |
Return Value
Ret [ C, C++: long ] [ 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.
C, C++
long Ret;
short SAccelType ;
SAccelType = 1;
Ret = SmcWSetSAccelType( Id , 1, SAccelType );
Python
Ret = ctypes.c_long()
SAccelType = ctypes.c_short()
SAccelType.value = 1
Ret.value = csmc.SmcWSetSAccelType( Id , 1, SAccelType )
See Also