Function
Retrieves the setting of S speed.
Format
Ret = SmcWGetSSpeed( 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 the axis number.
SSpeed
[ VB.NET: Double ] [ C, C++: double * ] [ C#: out double ] [ Python: ctypes.POINTER(ctypes.c_double)
]
Specify the address of a variable to store the value of S speed. The unit
is [pps].
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 the resolution
set with SmcWSetResolveSpeed.
Example: 405pps in case of resolution 15pps
This function can be executed even if the axis is in operation.
Example
The set up information in S Speed section of axis number 1 is acquired.
VB.NET
Dim Ret As Integer
Dim SSpeed As Double
Ret = SmcWGetSSpeed( Id , 1, SSpeed )
C, C++
long Ret;
double SSpeed;
Ret = SmcWGetSSpeed( Id , 1, &SSpeed );
C#
int Ret;
double SSpeed;
Ret = Smc.WGetSSpeed( Id , 1, out SSpeed );
Python
Ret = ctypes.c_long()
SSpeed = ctypes.c_double()
Ret.value = csmc.SmcWGetSSpeed( Id , 1, ctypes.byref(SSpeed) )
See Also