# Preview displaced when X Y rotation set

07 Oct 2024 13:15 #311487
by MaHa

*Preview displaced when X Y rotation set*was created by

*MaHa*

I have this preview problem in Axis:

There is a rotation:

In the routine:

This gives a displaced preview:

The problem only occurs, when 1 axis use current absolute position, the other axis moved to position in current ucs, and a rotation R set.

If both X and Y positions are set by

There is a rotation:

- G10 L2 P2 R20

In the routine:

- G0 G55 Y100

- #<MX> = #<_x>
- #<MY> = #<_y>

This gives a displaced preview:

```
G1 G55 X#<MX> X#<MY> F1000
X[#<MX> + 20]
Y[#<MY> + 20]
X#<MX>
Y#<MY>
M2
```

The problem only occurs, when 1 axis use current absolute position, the other axis moved to position in current ucs, and a rotation R set.

If both X and Y positions are set by

*G55 X100 Y100*or*G53 X100 Y100*or if*rotation is set to zero*, preview works perfect.
The following user(s) said Thank You: Aciera

Please Log in or Create an account to join the conversation.

Time to create page: 0.274 seconds