SmcWSetStartSpeed


Function

Sets start speed for pulse output.
When the default value is used, this function need not be executed.

 

Format

Ret = SmcWSetStartSpeed( Id, AxisNo, StartSpeed )

 

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.

 

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

Set start speed. The unit is [PPS].
The default value becomes valid when -1 is specified.
Valid range: -1, Setting range of motion speed

Setting range of motion speed
SMC-2/4/8DL series : 0.29296875-9829800
SMC-4/8DF series : 0.0732421875-6553500

 

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 100 pps.

The value that can be the setting by the default resolution (1pps) it is from 1 to 16383 for SMC-2/4/8DL series.
Please change the speed resolution by the SmcWSetResolveSpeed function when you set the speed of 16383[pps] or more.

The value that can be the setting by the default resolution (1pps) it is from 1 to 65535 for SMC-4/8DF series.
Please change the speed resolution by the SmcWSetResolveSpeed function when you set the speed of 65535[pps] or more.

The value is corrected by the resolution set with SmcWSetResolveSpeed.

Example: 105pps in case of 15pps Resolution.

 

Example

The pulse output beginning speed of axis number 1 is set.

 

C, C++

long Ret;

double StartSpeed ;

StartSpeed = 200;

Ret = SmcWSetStartSpeed( Id , 1, StartSpeed );

 

Python

Ret = ctypes.c_long()

StartSpeed = ctypes.c_double()

StartSpeed.value = 200

Ret.value = csmc.SmcWSetStartSpeed( Id , 1, StartSpeed )

 

See Also

SmcWGetStartSpeed