Author Topic: Circle move with tool pointing to the center of circle  (Read 599 times)

0 Members and 1 Guest are viewing this topic.

Offline martintursky

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 1
Circle move with tool pointing to the center of circle
« on: January 10, 2018, 03:57:09 PM »
Is it possible to rotate around user point which is shifted from base coordinates? Especially i need at the same time rotate with tool (red line (tool) have to point to the center of the circle).

Offline Kawaguy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 10
  • Posts: 43
Re: Circle move with tool pointing to the center of circle
« Reply #1 on: January 10, 2018, 06:28:12 PM »
Something like this? Teach the transformation variable p1. Make a program like this:
 
Code: [Select]
POINT p2 = SHIFT(p1 by radius, -radius)
POINT /OAT p2 = rz(90) + p1
POINT p3 = SHIFT(p1 by 0, -radius*2)
POINT /OAT p3 = rz(180) + p1
POINT p4 = SHIFT(p1 by -radius, -radius)
POINT /OAT p4 = rz(-90) + p1
;
LMOVE p1
C1MOVE p2
C1MOVE p3
C1MOVE p4
C2MOVE p1