SmcWSetResolveSpeed


Function

Sets the value of speed resolution.

Format

Ret = SmcWSetResolveSpeed( Id, AxisNo, ResolveSpeed )

Parameters

Id [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
SSpecify the Deice ID retrieved by SmcWInit function.

AxisNo [ VB.NET: Short ] [ C, C++: short ] [ C#: short ] [ Python: ctypes.c_short ]
Specify axis number.

ResolveSpeed [ VB.NET: Double ] [ C, C++: double ] [ C#: double ] [ Python: ctypes.c_double ]
Set the value of speed resolution.
The default becomes valid when -1 is specified.

Setting range of resolve speed
SMC-2/4/8DL series : -1, 0.29296875-600
SMC-4/8DF series : -1, 0.0732421875-100

Return Value

Ret [ VB.NET: Integer ] [ C, C++: long ] [ C#: int ] [ Python: ctypes.c_long ]

0

Terminated normally

Non-zero

Terminated abnormally

See also: Error code details

Remarks

The default value is resolution: It is 1 pps.

If the default value is in use, the function need not be performed.

The speed resolution cannot be changed during operation.
This is a specification of use LSI.
Therefore, even if you set the speed resolution during operation and change the motor operation with the following function,
the speed resolution will not be reflected.
- SmcWSetMotionChangeReady
- SmcWMotionChange

Example

The speed resolution of axis number 1 is set to 1.

VB.NET
Dim Ret As Integer
Dim ResolveSpeed As Double
ResolveSpeed = 1
Ret = SmcWSetResolveSpeed( Id , 1, ResolveSpeed )

C, C++
long Ret;
double ResolveSpeed;
ResolveSpeed = 1;
Ret = SmcWSetResolveSpeed( Id , 1, ResolveSpeed );

C#
int Ret;
double ResolveSpeed;
ResolveSpeed = 1;
Ret = Smc.WSetResolveSpeed( Id , 1, ResolveSpeed );

Python
Ret = ctypes.c_long()
ResolveSpeed = ctypes.c_double()
ResolveSpeed.value = 1
Ret.value = csmc.SmcWSetResolveSpeed( Id , 1, ResolveSpeed )

See Also

SmcWGetResolveSpeed