Function
Retrieves the pulse out speed under operation.
Format
Ret = SmcWGetMoveSpeed( Id , AxisNo , MoveSpeed )
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 axis number.
MoveSpeed [ C, C++: double * ] [ Python: ctypes.POINTER(ctypes.c_double) ]
Specify the address of the variable that stores the pulse out speed under operation.
Return Value
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Remarks
The speed below the decimal
point cannot be acquired in this function.
It is dropped below the decimal point.
And, there may be a inaccuracy between the retrieved speed and the actual
speed of the motor.
This is because the error of drive internal calculation. Please note that.
When the interpolation operates,
only the interpolation control axis's speed can be retrieved by this function.
This is the specification for LSI.
This function can be executed even if the device is in operation.
Example
The pulse out speed of axis number 1 is acquired.
C, C++
long Ret;
double MoveSpeed ;
Ret = SmcWGetMoveSpeed( Id , 1, &MoveSpeed );
Python
Ret = ctypes.c_long()
MoveSpeed = ctypes.c_double()
Ret.value = csmc.SmcWGetMoveSpeed( Id , 1, ctypes.byref(MoveSpeed) )
See Also