Difference between revisions of "MC-Basic:ROBOTTYPE$"
(ROBOTTYPE$) |
|||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:ROBOTTYPE$}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 4: | Line 5: | ||
|SYNTAX= | |SYNTAX= | ||
− | <'' | + | <''string_variable''> = robottype$ (<''point_expression''>) |
|AVAILABILITY= | |AVAILABILITY= | ||
− | Version 4.9.11 | + | Since Version 4.9.11 |
|DESCRIPTION= | |DESCRIPTION= | ||
− | Returns the robot type of a point as a | + | 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= | ||
− | + | String | |
|RANGE= | |RANGE= | ||
Line 29: | Line 30: | ||
|EXAMPLE= | |EXAMPLE= | ||
<pre> | <pre> | ||
− | + | StringVar = ROBOTTYPE$(#{0.0, 10.0, 20.0}) | |
− | ? ROBOTTYPE$( | + | ? ROBOTTYPE$(JointVar) |
− | + | StringVar = ROBOTTYPE$(Robot.PCMD) | |
</pre> | </pre> | ||
|SEE ALSO= | |SEE ALSO= | ||
+ | * [[MC-Basic:ROBOTTYPE|ROBOTTYPE]] | ||
+ | * [[MC-Basic:NOOFCOORDINATES|NOOFCOORDINATES]] | ||
+ | |||
+ | * [[Point Type List|LIST OF ROBOT TYPES]] | ||
+ | |||
+ | |||
+ | [[Category:MC-Basic:Points Handling|ROBOTTYPE$]] | ||
}} | }} |
Latest revision as of 07:21, 27 April 2017
Language: | English • 中文(简体) |
---|
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
Since Version 4.9.11
Type
String
Scope
Configuration, Task, Terminal
Examples
StringVar = ROBOTTYPE$(#{0.0, 10.0, 20.0}) ? ROBOTTYPE$(JointVar) StringVar = ROBOTTYPE$(Robot.PCMD)