Difference between revisions of "MC-Basic:ROBOTTYPE"
(Created page with "{{MC-Basic |SHORT FORM= |SYNTAX= <''point_variable''> = castpoint (<''list_of_coordinates''>, <''long_expression''>) |AVAILABILITY= Version 4.9.11 and up |DESCRIPTION= Crea...") |
|||
(14 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= | ||
− | <'' | + | <''long_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 long-type numeric value. The function will return zero for point inputs without robot types (i.e., list-of-coordinates and uninitialized generic points). | |
|TYPE= | |TYPE= | ||
− | + | Long | |
|RANGE= | |RANGE= | ||
Line 26: | Line 27: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
− | |||
|EXAMPLE= | |EXAMPLE= | ||
<pre> | <pre> | ||
− | + | LongVar = ROBOTTYPE(#{0.0, 10.0, 20.0}) | |
− | ? | + | ? ROBOTTYPE(JointVar) |
+ | |||
+ | LongVar = ROBOTTYPE(Robot.PCMD) | ||
+ | |||
</pre> | </pre> | ||
|SEE ALSO= | |SEE ALSO= | ||
+ | * [[MC-Basic:ROBOTTYPE$|ROBOTTYPE$]] | ||
+ | |||
+ | * [[MC-Basic:NOOFCOORDINATES|NOOFCOORDINATES]] | ||
+ | * [[MC-Basic:CASTJOINT|CASTJOINT]] | ||
+ | |||
+ | * [[MC-Basic:CASTLOCATION|CASTLOCATION]] | ||
+ | |||
+ | * [[Point Type List|LIST OF ROBOT TYPES]] | ||
+ | |||
+ | [[Category:MC-Basic:Points Handling|ROBOTTYPE]] | ||
}} | }} |
Latest revision as of 06:58, 27 April 2017
Language: | English • 中文(简体) |
---|
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).
Syntax
<long_variable> = robottype (<point_expression>)
Availability
Since Version 4.9.11
Type
Long
Scope
Configuration, Task, Terminal
Examples
LongVar = ROBOTTYPE(#{0.0, 10.0, 20.0}) ? ROBOTTYPE(JointVar) LongVar = ROBOTTYPE(Robot.PCMD)