SmcWGetSAccelType


Function

Retrieves the setting that indicates whether use S rate.

 

Format

Ret = SmcWGetSAccelType( Id, AxisNo, SAccelType )

 

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.

 

SAccelType [ C, C++: short * ] [ Python: ctypes.POINTER(ctypes.c_short) ]

Specify the address of a variable to store the value that indicates whether the S-curve acceleration/deceleration function is used.

0

Unused

1

Used

 

Return Value

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

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

 

Initial Value

0 : Unused

 

Remarks

This function can be executed even if the device is in operation.

 

Example

The set up information of the use existence at S Rate addition and

subtraction velocity of axis number 1 is acquired.

 

C, C++

long Ret;

short SAccelType ;

Ret = SmcWGetSAccelType( Id , 1, &SAccelType );

 

Python

Ret = ctypes.c_long()

SAccelType = ctypes.c_short()

Ret.value = csmc.SmcWGetSAccelType( Id , 1, ctypes.byref(SAccelType) )

 

See Also

SmcWSetSAccelType