Difference between revisions of "MC-Basic:ROBOTTYPE$"

From SoftMC-Wiki
Jump to: navigation, search
(ROBOTTYPE$)
 
(ROBOTTYPE$)
Line 4: Line 4:
  
 
|SYNTAX=
 
|SYNTAX=
<''long_variable''> = robottype$ (<''string_expression''>)
+
<''string_variable''> = robottype$ (<''point_expression''>)
  
 
|AVAILABILITY=
 
|AVAILABILITY=
 
Version 4.9.11 and up.
 
Version 4.9.11 and up.
 
|DESCRIPTION=
 
|DESCRIPTION=
Returns the robot type of a point as a long-type numeric value. The function will return zero for point inputs without robot types (i.e., list-of-coordinates and uninitialized generic points).   
+
Returns the name of the robot type of a point as a string. The function will return "NONE" for point inputs without robot types (i.e., list-of-coordinates and uninitialized generic points).   
  
 
|TYPE=
 
|TYPE=
Long
+
String
 
|RANGE=
 
|RANGE=
  
Line 29: Line 29:
 
|EXAMPLE=
 
|EXAMPLE=
 
<pre>
 
<pre>
LongVar = ROBOTTYPE$("#{0.0, 10.0, 20.0}")
+
StringVar = ROBOTTYPE$(#{0.0, 10.0, 20.0})
  
? ROBOTTYPE$("JointVar")
+
? ROBOTTYPE$(JointVar)
  
LongVar = ROBOTTYPE$("Robot.PCMD")
+
StringVar = ROBOTTYPE$(Robot.PCMD)
 
   
 
   
 
</pre>
 
</pre>

Revision as of 09:53, 7 November 2012

Returns the name of the robot type of a point as a string. The function will return "NONE" for point inputs without robot types (i.e., list-of-coordinates and uninitialized generic points).

Syntax

<string_variable> = robottype$ (<point_expression>)

Availability

Version 4.9.11 and up.

Type

String

Scope

Configuration, Task, Terminal

Examples

StringVar = ROBOTTYPE$(#{0.0, 10.0, 20.0})

? ROBOTTYPE$(JointVar)

StringVar = ROBOTTYPE$(Robot.PCMD)