Difference between revisions of "MC-Basic:CASTPOINT"
(Created page with "{{MC-Basic |SHORT FORM= |SYNTAX= <''variable''> = arraysize (<''array_name''>, <''long_expression''>) |AVAILABILITY= All versions |DESCRIPTION= Returns the size of a array...") |
|||
(16 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Languages|MC-Basic:CASTPOINT}} | ||
{{MC-Basic | {{MC-Basic | ||
|SHORT FORM= | |SHORT FORM= | ||
Line 4: | Line 5: | ||
|SYNTAX= | |SYNTAX= | ||
− | <'' | + | <''point_variable''> = castpoint (<''list_of_coordinates''>, <''long_expression''>) |
|AVAILABILITY= | |AVAILABILITY= | ||
− | + | Since Version 4.9.11 | |
− | |||
|DESCRIPTION= | |DESCRIPTION= | ||
− | + | Creates and returns a generic point using the robot type given by the second, long-type argument, while the point type (i.e., joint or location) and coordinate values are taken from the first, list-of-coordinates argument. | |
− | |||
− | |||
|TYPE= | |TYPE= | ||
− | + | Joint or Location | |
− | |||
|RANGE= | |RANGE= | ||
Line 30: | Line 27: | ||
|LIMITATIONS= | |LIMITATIONS= | ||
+ | The robot type given in the second argument must match the number of coordinates of the list-of-coordinates argument. | ||
+ | |EXAMPLE= | ||
− | + | GenJoint = CASTPOINT({0.0, 10.0, 20.0}, TYPE_XYZ) | |
− | + | ||
− | ? | + | ? CASTPOINT(#{0.0, 0.0, 0.0, 1.0}, TYPE_XYZR) |
− | |||
− | |||
|SEE ALSO= | |SEE ALSO= | ||
+ | * [[MC-Basic:CASTJOINT|CASTJOINT]] | ||
+ | |||
+ | * [[MC-Basic:CASTLOCATION|CASTLOCATION]] | ||
+ | * [[MC-Basic:ROBOTTYPE| ROBOTTYPE]] | ||
+ | * [[Point Type List|LIST OF ROBOT TYPES]] | ||
+ | [[Category:MC-Basic:Points Handling|CASTPOINT]] | ||
}} | }} |
Latest revision as of 02:13, 26 April 2017
Language: | English • 中文(简体) |
---|
Creates and returns a generic point using the robot type given by the second, long-type argument, while the point type (i.e., joint or location) and coordinate values are taken from the first, list-of-coordinates argument.
Syntax
<point_variable> = castpoint (<list_of_coordinates>, <long_expression>)
Availability
Since Version 4.9.11
Type
Joint or Location
Scope
Configuration, Task, Terminal
Limitations
The robot type given in the second argument must match the number of coordinates of the list-of-coordinates argument.
Examples
GenJoint = CASTPOINT({0.0, 10.0, 20.0}, TYPE_XYZ)
? CASTPOINT(#{0.0, 0.0, 0.0, 1.0}, TYPE_XYZR)