Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Macro looking for help #1350

Closed
MattiaConfalonieri opened this issue Jan 27, 2020 · 2 comments
Closed

Macro looking for help #1350

MattiaConfalonieri opened this issue Jan 27, 2020 · 2 comments

Comments

@MattiaConfalonieri
Copy link

Hi everybody, I am new to UGS. I am looking for help to create a macro that moves the CNC to TOP-RIGHT (opposite home) and not depend on what coordinate is the machine when I trigger the macro... is thee possible? that anyone helps me to achieve this.

@breiler
Copy link
Collaborator

breiler commented Jan 28, 2020

Hi and welcome! 😄

I haven't tested this myself, but in theory you should be able to use the following:
G53 G90 G21 G0 X100 Y100 Z100

Which means:
G53 move in machine coordinates
G90 move in absolute mode to a given coordinate
G21 move in millimeters
G0 X100 Y100 Z100 move using rapid movement (your machine's maximum speed) to the given machine coordinates

You might also want to split the movement for Z so that it will clear any material first, then move XY. In macros you can separate commands using semicolon ;:
G53 G90 G21 G0 Z100; G0 X100 Y100

@MattiaConfalonieri
Copy link
Author

Thanks i would try

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants