Function
Retrieves the number of feedback output pulses.
Format
Ret = SmcWGetOutPulse( Id, AxisNo, OutPulse )
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.
OutPulse [ C, C++: int * ] [ Python: ctypes.POINTER(ctypes.c_int) ]
Specify the address of the
variable that stores the feedback output pulse number.
The pulse number is displayed with absolute coordinate.
Return Value
Ret [ C, C++: long ] [ Python: ctypes.c_long ]
0 |
Terminated normally |
Non-zero |
Terminated abnormally |
See also: Error code details
Remarks
This function can be executed even if the device is in operation.
Example
The number of feedback output pulses of axis numbers 1 is acquired.
C, C++
long Ret;
int OutPulse ;
Ret = SmcWGetOutPulse( Id , 1, &OutPulse );
Python
Ret = ctypes.c_long()
OutPulse = ctypes.c_int()
Ret.value = csmc.SmcWGetOutPulse( Id , 1, ctypes.byref(OutPulse) )
See Also