Function
Retrieves the setting of start speed of pulse output.
Format
Ret = SmcWGetStartSpeed( Id, AxisNo, StartSpeed )
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.
StartSpeed
[ 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 start 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 to the multiple of
the resolution set with SmcWSetResolve Speed.
Example: 105pps in case of resolution 15pps
This function cannot be executed when the device is in operation.
Example
The pulse output beginning speed of axis number 1 is acquired.
VB.NET
Dim Ret As Integer
Dim StartSpeed As Double
Ret = SmcWGetStartSpeed( Id , 1, StartSpeed )
C, C++
long Ret;
double StartSpeed;
Ret = SmcWGetStartSpeed( Id , 1, &StartSpeed );
C#
int Ret;
double StartSpeed;
Ret = Smc.WGetStartSpeed( Id , 1, out StartSpeed );
Python
Ret = ctypes.c_long()
StartSpeed = ctypes.c_double()
Ret.value = csmc.SmcWGetStartSpeed( Id , 1, ctypes.byref(StartSpeed) )
See Also