SmcWGetStartSpeed


Function

Retrieves the setting of start speed of pulse output.

 

Format

Ret = SmcWGetStartSpeed( Id, AxisNo, StartSpeed )

 

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.

 

StartSpeed [ C, C++: 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 [ C, C++: long ] [ 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 SmcWSetResolveSpeed.
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.

 

C, C++

long Ret;

double StartSpeed ;

Ret = SmcWGetStartSpeed( Id , 1, &StartSpeed );

 

Python

Ret = ctypes.c_long()

StartSpeed = ctypes.c_double()

Ret.value = csmc.SmcWGetStartSpeed( Id , 1, ctypes.byref(StartSpeed) )

 

See Also

SmcWSetStartSpeed