Difference between revisions of "MC-Basic:CASTPOINT"

From SoftMC-Wiki
Jump to: navigation, search
m (Miborich moved page Axystems:MC-Basic:CASTPOINT to MC-Basic:CASTPOINT: Global renaming of Axystems: namespace into (Main):)
Line 39: Line 39:
  
 
* [[MC-Basic:CASTLOCATION|CASTLOCATION]]
 
* [[MC-Basic:CASTLOCATION|CASTLOCATION]]
* [[Axystems:MC-Basic:ROBOTTYPE | ROBOTTYPE]]
+
* [[MC-Basic:ROBOTTYPE| ROBOTTYPE]]
  
 
* [[Axystems:Point_Type_List|LIST OF ROBOT TYPES]]
 
* [[Axystems:Point_Type_List|LIST OF ROBOT TYPES]]

Revision as of 08:40, 22 May 2014

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)

See Also