SmcWGetMotionChangeReady


Function

Retrieves setting of changes the speed in the motor operation, and the stop position change.

 

Format

Ret = SmcWGetMotionChangeReady( Id , AxisNo , ChangeType )

 

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.

 

ChangeType [ C, C++: 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 [ C, C++: long ] [ 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 device is in operation.

 

Example

The setting of the motor operation change in axis number 1 is acquired.

 

C, C++

long Ret;

short ChangeType ;

Ret = SmcWGetMotionChangeReady( Id , 1, &ChangeType );

 

Python

Ret = ctypes.c_long()

ChangeType = ctypes.c_short()

Ret.value = csmc.SmcWGetMotionChangeReady( Id , 1,ctypes.byref(ChangeType) )

 

See Also

SmcWSetMotionChangeReady