SmcWMotionStart


Function

Starts motor motion of an axis.

 

Format

Ret = SmcWMotionStart( 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 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

It can not be executed while motor is already in motion.
The motors in synchronization start wait state start at the same time when this function is performed. So it is possible to start plural motors at the same time.

The motor motion does not start until the SmcWSetInitParam function is performed to that axis.

 

Example

The motor operation of axis number 1 begins.

 

C, C++

long Ret;

Ret = SmcWMotionStart( Id , 1);

 

Python

Ret = ctypes.c_long()

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

 

See Also

SmcWSetInitParam SmcWMotionStop