SmcWGetAccelTime


Function

Retrieves the setting of accelerating time.

 

Format

Ret = SmcWGetAccelTime( Id, AxisNo, AccelTime )

 

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.

 

AccelTime [ C, C++: double * ] [ Python: ctypes.POINTER(ctypes.c_double) ]

Specify the address of a variable to store the accelerating time. The unit is [ms].

 

Return Value

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

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

 

Remarks

The value is corrected by SmcWSetStartSpeed and SmcWSetTargetSpeed (SmcWSetSSpeed when S Rate is used).
This function can be executed even if the device is in operation.

 

Example

The acceleration time of axis number 1 is acquired.

 

C, C++

long Ret;

double AccelTime ;

Ret = SmcWGetAccelTime( Id , 1, &AccelTime );

 

Python

Ret = ctypes.c_long()

AccelTime = ctypes.c_double()

Ret.value = csmc.SmcWGetAccelTime( Id , 1, ctypes.byref(AccelTime) )

 

See Also

SmcWSetAccelTime