Function
Starts motor motion of an axis.
Format
Ret = SmcWMotionStart( Id, AxisNo )
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.
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
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.
VB.NET
Dim Ret As Integer
Ret = SmcWMotionStart( Id , 1)
C, C++
long Ret;
Ret = SmcWMotionStart( Id , 1);
C#
int Ret;
Ret = Smc.WMotionStart( Id , 1);
Python
Ret = ctypes.c_long()
Ret.value = csmc.SmcWMotionStart( Id , 1)
See Also
SmcWSetInitParam SmcWMotionStop