<< Prev        Next >>

CurSpeedMode

Function

Obtain the setting value of the Optimal Speed Control Function.

Syntax

CurSpeedMode

Return value

The setting value of the Optimal Speed Control Function is returned by an integer type data.

Description

This command returns the currently selected mode of the Optimal Speed Control Function by an integer type data. For details of each mode, refer to "Optimal Speed Control Function". Use this command when you want to temporarily change the setting value, as shown below.

Related Terms

SpeedMode

Attention

-

Example

Sub Main    
 Dim prevSet As Variant
 
 'Obtain currently selected value of the Optimal Speed Control Function.
 prevSet = CurSpeedMode
 
 'Set desired Optimal Speed Control Function mode.    
 SpeedMode 0 

 'Move the robot along with a spline orbit.
 Move S, 1
 
 'Set the Optimal Speed Control Function mode to the originally selected mode.
 SpeedMode prevSet
  
End Sub

<< Prev        Next >>