SmcWSetSSpeed


Function

Sets S Rate.

 

Format

Ret = SmcWSetSSpeed( Id, AxisNo, SSpeed )

 

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 axis number.

 

SSpeed [ C, C++: double ] [ Python: ctypes.c_double ]

Set S Rate. The unit is [PPS].

Performs motion without Linear (largest S character motion) when 0 is specified.
The default becomes valid when -1 is specified.
Valid range:-1, 0, setting range of S Rate

 

Return Value

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

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

 

Remarks

The default value is 400 pps.
Therefore, S Rate in StartSpeed(100pps) and TargetSpeed(1000pps) of default parameters : It is 100-500,600-1000 pps.

The value is corrected by the resolution set with SmcWSetResolveSpeed.
405pps in case of Resolution 15pps

This function is valid when the S acceleration is set to "1: Used" in SmcWSetSAccelType function.
When the S acceleration is set to "1: Used" in SmcWSetSAccelType function and this function is not executed, the default is SSpeed = 0 (motion without Linear).

 

Example

S Rate of axis number 1 is set.
S Speed section is set to 100PPS.

 

C, C++

long Ret;

double SSpeed ;

SSpeed = 100;

Ret = SmcWSetSSpeed( Id , 1, SSpeed );

 

Python

Ret = ctypes.c_long()

SSpeed = ctypes.c_double()

SSpeed.value = 100

Ret.value = csmc.SmcWSetSSpeed( Id , 1, SSpeed )

 

See Also

SmcWGetSSpeed