NEW CS: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
New page: {{Command|syntax=NEW_CS <cs number> |description=*DESCRPTION* |param1=<cs number>|param1_desc= }} ===Example=== :- NEW_CS Category:Coordinate_Systems |
No edit summary |
||
(14 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{ | [[:Category:Coordinate_Systems|{{Up}}]] | ||
| | {{Command|syntax=NEW_CS <method> <name> <data> | ||
|description=:Create a new coordinate system. There are 4 methods that you can use to create a CS. | |||
<br> | |||
:NEW_CS 3P <name> <x1> <y1> <z1> <x2> <y2> <z2> <x3> <y3> <z3> | |||
:NEW_CS XY <name> <x1> <y1> <z1> | |||
:NEW_CS YZ <name> <x1> <y1> <z1> | |||
:NEW_CS XZ <name> <x1> <y1> <z1> | |||
|param1=<method>|param1_desc=3P (3 points), XY, XZ, YZ, YX, ZX or ZY | |||
|param2=<name>|param2_desc=CS name | |||
|param3=<x1>|param3_desc=X value of point 1 | |||
|param4=<y1>|param4_desc=Y value of point 1 | |||
|param5=<z1>|param5_desc=Z value of point 1 | |||
}} | }} | ||
Only 1 point is required for XY/XZ/YZ/YX/ZX/ZY.<br> | |||
For 3P you must provide 6 more values for the XYZ positions of the second and third points. | |||
XY and YX will create a similar CS, but the horizontal and vertical axes will be swapped.<br> | |||
You would usually use XZ for mill parts and ZX for lathe parts.<br> | |||
<br> | |||
Note: The YX, ZX and ZY options are only available in GibbsCAM version 11.2.3 and later. | |||
===Example=== | ===Example=== | ||
:- | :NEW_CS XY, "NewXY", 3, 6, -1.5 | ||
<br> | |||
:This will create a new CS, parallel to the XY plane, with its origin at X 3, Y 6, Z -1.5 | |||
:For an example macro see [[Cs_List]] | |||
[[Category:Coordinate_Systems]] | [[Category:Coordinate_Systems]] |
Latest revision as of 21:25, 13 July 2015
Command
- NEW_CS <method> <name>
- Create a new coordinate system. There are 4 methods that you can use to create a CS.
- NEW_CS 3P <name> <x1> <y1> <z1> <x2> <y2> <z2> <x3> <y3> <z3>
- NEW_CS XY <name> <x1> <y1> <z1>
- NEW_CS YZ <name> <x1> <y1> <z1>
- NEW_CS XZ <name> <x1> <y1> <z1>
Parameters
- <method>
- 3P (3 points), XY, XZ, YZ, YX, ZX or ZY
- <name>
- CS name
- <x1>
- X value of point 1
- <y1>
- Y value of point 1
- <z1>
- Z value of point 1
Only 1 point is required for XY/XZ/YZ/YX/ZX/ZY.
For 3P you must provide 6 more values for the XYZ positions of the second and third points.
XY and YX will create a similar CS, but the horizontal and vertical axes will be swapped.
You would usually use XZ for mill parts and ZX for lathe parts.
Note: The YX, ZX and ZY options are only available in GibbsCAM version 11.2.3 and later.
Example
- NEW_CS XY, "NewXY", 3, 6, -1.5
- This will create a new CS, parallel to the XY plane, with its origin at X 3, Y 6, Z -1.5
- For an example macro see Cs_List