Function
Retrieves the information whether the SmcWSetInitParam function has been executed for a specified axis.
Format
Ret = SmcWGetInitParam( Id, AxisNo, InitParam )
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.
InitParam [ C, C++: 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 [ C, C++: long ] [ 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.
C, C++
long Ret;
short InitParam ;
Ret = SmcWGetInitParam( Id , 1, &InitParam );
Python
Ret = ctypes.c_long()
InitParam = ctypes.c_short()
Ret.value = csmc.SmcWGetInitParam( Id , 1, ctypes.byref(InitParam) )
See Also