SmcWGetOutPulse


Function

Retrieves the number of feedback output pulses.

Format

Ret = SmcWGetOutPulse( Id, AxisNo, OutPulse )

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 axis number.

OutPulse [ VB.NET: Integer ] [ C, C++: long * ] [ C#: out int ] [ Python: ctypes.POINTER(ctypes.c_long) ]
Specify the address of the variable that stores the feedback output pulse number.
The pulse number is displayed with absolute coordinate.

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

This function can be executed even if the axis is in operation.

Example

The number of feedback output pulses of axis numbers 1 is acquired.

VB.NET
Dim Ret As Integer
Dim OutPulse As Integer
Ret = SmcWGetOutPulse( Id , 1, OutPulse )

C, C++
long Ret;
long OutPulse;
Ret = SmcWGetOutPulse( Id , 1, &OutPulse );

C#
int Ret;
int OutPulse;
Ret = Smc.WGetOutPulse( Id , 1, out OutPulse );

Python
Ret = ctypes.c_long()
OutPulse = ctypes.c_long()
Ret.value = csmc.SmcWGetOutPulse( Id , 1, ctypes.byref(OutPulse) )

See Also

SmcWSetOutPulse