Function
Retrieves setting of changes the speed in the motor operation, and the stop position change.
Format
Ret = SmcWGetMotionChangeReady( Id , AxisNo , ChangeType )
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.
ChangeType
[ VB.NET: Short ] [ C, C++: short * ] [ C#: out short ] [ Python: ctypes.POINTER(ctypes.c_short)
]
The address of the variable that stores the motor operation change type
is specified.
0 |
It changes instantaneously to the beginning speed (FL speed). |
1 |
It changes instantaneously to the speed of the target (FH speed). |
2 |
It decelerates and it changes to the beginning speed (FL speed). |
3 |
It accelerates and it changes to the speed of the target (FH speed). |
4 |
Operation speed and the addition and subtraction speed are changed. |
5 |
Motor stop position change(target positional override 1) |
6 |
Positional motor stop kooky setting according to PCS signal(target positional override 2) |
7 |
Acceleration and deceleration is not changed, only operation speed is changed. |
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
This function can be executed even if the axis is in operation.
Example
The setting of the motor operation change in axis number 1 is acquired.
VB.NET
Dim Ret As Integer
Dim ChangeType As Short
Ret = SmcWGetMotionChangeReady( Id , 1, ChangeType )
C, C++
long Ret;
short ChangeType
Ret = SmcWGetMotionChangeReady( Id , 1, &ChangeType );
C#
int Ret;
short ChangeType
Ret = Smc.WGetMotionChangeReady( Id , 1, out ChangeType );
Python
Ret = ctypes.c_long()
ChangeType = ctypes.c_short()
Ret.value = csmc.SmcWGetMotionChangeReady( Id , 1, ctypes.byref(ChangeType)
)
See Also