Function
Sets S Rate.
Format
Ret = SmcWSetSSpeed( Id, AxisNo, SSpeed )
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 axis number.
SSpeed
[ VB.NET: Double ] [ C, C++: double ] [ C#: double ] [ Python: ctypes.c_double
]
Set S Rate. The unit is [PPS].
Performs motion without Linear (largest S
character motion) when 0 is specified.
The default becomes valid when -1 is specified.
Valid range:-1, 0, setting range of S Rate
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 default value is 400 pps.
Therefore, S Rate in StartSpeed(100pps) and TargetSpeed(1000pps) of default
parameters : It is 100-500,600-1000 pps.
The value is corrected by the resolution
set with SmcWSetResolveSpeed.
405pps in case of Resolution 15pps
This function is valid when the S acceleration
is set to "1: Used" in SmcWSetSAccelType
function.
When the S acceleration is set to "1: Used" in SmcWSetSAccelType
function and this function is not executed, the default is SSpeed = 0
(motion without Linear).
Example
S Rate of axis number 1 is set.
S Speed section is set to 100PPS.
VB.NET
Dim Ret As Integer
Dim SSpeed As Double
SSpeed = 100
Ret = SmcWSetSSpeed( Id , 1, SSpeed )
C, C++
long Ret;
double SSpeed;
SSpeed = 100;
Ret = SmcWSetSSpeed( Id , 1, SSpeed );
C#
int Ret;
double SSpeed;
SSpeed = 100;
Ret = Smc.WSetSSpeed( Id , 1, SSpeed );
Python
Ret = ctypes.c_long()
SSpeed = ctypes.c_double()
SSpeed.value = 100
Ret.value = csmc.SmcWSetSSpeed( Id , 1, SSpeed )
See Also