Difference between revisions of "MC-Basic:robot.GOTOLIMIT"

From SoftMC-Wiki
Jump to: navigation, search
(Added GOTOLIMIT = 2)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
{{Languages|MC-Basic:robot.GOTOLIMIT}}
 
{{MC-Basic
 
{{MC-Basic
 
|SHORT FORM=
 
|SHORT FORM=
Line 7: Line 8:
  
 
|AVAILABILITY=
 
|AVAILABILITY=
All versions
+
From 0.4.15rc8
  
 
|DESCRIPTION=
 
|DESCRIPTION=
  
Flag causing the given straight-line motion to extend till reaching one of the position limits of t the robot (PMIN/PMAX, XMIN/XMAX, ....). '''The given target (in MOVES line) point is used for direction computation only'''. The real target of the motion lies on the line between initial point of the motion and the given point either closer or further away.
+
Flag causing the given straight-line motion to extend till reaching one of the position limits of the robot (PMIN/PMAX, XMIN/XMAX, ....). When GOTOLIMIT = 1, '''the given target point (in MOVES command) is used for direction computation only'''. The real target of the motion lies on the line starting at the initial point and pointing towards the given target point, either closer or further away from the given point.
  
 +
From version 0.4.21.2r9, when GOTOLIMIT = 2, if the given target point is reachable the MOVES motion will end at the target point, and if not the motion will end at the furthest reachable point in the direction of the given target point.
  
[[File:GOTOLIMIT.PNG | 600px]]
+
If the target orientation is different from the starting orientation, the profiler will always attempt to reach the target orientation at the final point that is reached.
 +
 
 +
 
 +
[[File:GOTOLIMIT.PNG | 600px]]
  
 
|TYPE=
 
|TYPE=
Line 20: Line 25:
  
 
|RANGE=
 
|RANGE=
0 or 1
+
0 or 1  
 +
 
 +
From version 0.4.21.2r9
 +
 
 +
0 to 2
  
 
|UNITS=
 
|UNITS=
Line 36: Line 45:
 
|EXAMPLE=
 
|EXAMPLE=
  
Moves puma #{100,0,0,0,0,0} GoToLimit = 1   ' this command will move the robot in positive X direction as far as it can go.
+
Moves puma #{100,0,0,0,0,0} GoToLimit = 1 ' this command will move the robot in positive X direction as far as it can go.
  
 
|SEE ALSO=
 
|SEE ALSO=

Latest revision as of 13:08, 21 November 2023

Language: English  • 中文(简体)‎

Flag causing the given straight-line motion to extend till reaching one of the position limits of the robot (PMIN/PMAX, XMIN/XMAX, ....). When GOTOLIMIT = 1, the given target point (in MOVES command) is used for direction computation only. The real target of the motion lies on the line starting at the initial point and pointing towards the given target point, either closer or further away from the given point.

From version 0.4.21.2r9, when GOTOLIMIT = 2, if the given target point is reachable the MOVES motion will end at the target point, and if not the motion will end at the furthest reachable point in the direction of the given target point.

If the target orientation is different from the starting orientation, the profiler will always attempt to reach the target orientation at the final point that is reached.


GOTOLIMIT.PNG

Syntax

<ROBOT>.GoToLimit= <numeric expression>

Availability

From 0.4.15rc8

Type

Long

Range

0 or 1

From version 0.4.21.2r9

0 to 2

Units

none

Default

0

Scope

Task, Terminal

Limitations

Write-Only, Nodal Only, used for MOVES command only

Examples

Moves puma #{100,0,0,0,0,0} GoToLimit = 1 ' this command will move the robot in positive X direction as far as it can go.

See Also