Function
Retrieves the information whether the SmcWSetInitParam function has been executed for a specified axis.
Format
Ret = SmcWGetInitParam( Id, AxisNo, InitParam )
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.
InitParam
[ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short)
]
Specify the address of a variable to store the value that indicates whether
the SmcWSetInitParam function has been executed.
0 |
Not executed |
1 |
Executed |
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
Whether SmcSetInitParam has executed a specified axis is acquired.
Example
Whether the SmcWSetInitParam function has executed axis number 1 is acquired.
VB.NET
Dim Ret As Integer
Dim InitParam As Short
Ret = SmcWGetInitParam( Id , 1, InitParam )
C, C++
long Ret;
short InitParam;
Ret = SmcWGetInitParam( Id , 1, &InitParam );
C#
int Ret;
short InitParam;
Ret = Smc.WGetInitParam( Id , 1, out InitParam );
Python
Ret = ctypes.c_long()
InitParam = ctypes.c_short()
Ret.value = csmc.SmcWGetInitParam( Id , 1, ctypes.byref(InitParam) )
See Also