SmcWSetInitParam


Function

Reflects contents of initial setting function to the hardware.

 

Format

Ret = SmcWSetInitParam( Id, AxisNo )

 

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.

 

Return Value

Ret [ C, C++: long ] [ Python: ctypes.c_long ]

 

0

Terminated normally

Non-zero

Terminated abnormally

 

See also: Error code details

 

Remarks

After SmcWInit , the motor can not work until this function is executed.
If the initial setting contents changed, the setting contents can not be reflected to the hardware until this function is executed.
Please specify AxisNo to plural axes when you want to set same setting with plural axes.

This function cannot be executed when the device is in operation.

 

Example

The content of the initialization function of axis number 1 is reflected in hardware.

 

C, C++

long Ret;

Ret = SmcWSetInitParam( Id , 1);

 

Python

Ret = ctypes.c_long()

Ret.value = csmc.SmcWSetInitParam( Id , 1)

 

See Also

SmcWGetInitParam