Hello Guest it is April 16, 2024, 02:51:20 PM

Author Topic: Headaches with Mach3... one of many lol (G68)  (Read 2307 times)

0 Members and 1 Guest are viewing this topic.

Headaches with Mach3... one of many lol (G68)
« on: November 27, 2015, 02:25:29 AM »
Gday everyone. how are we all this life? Me? well I'm absolutely fantastic. But thats enough about me lol.

I've had my little CNC machine for a while now and it uses Mach3. It works fine bar a few hiccups here and there. But a few things drive me crazy.
Right now I'm having dramas with G68. (Id rather use WHILE END but... yeah mach 3 doesn't like that).

I just can't figure it out. Or wonder if it even works. Im getting sick of coding everything to every point rather than using equations and algorithems to make my patterns.
Ive simplified the code to see if anyone here can assist me with a little knowledge on what I'm doing wrong. basically its just going to the centre of my workpiece and up to the top and back, then 45deg up and back 90deg up and back etc.

(code)
G1 X0 Y0

G1 X100 Y100
G1 X100 Y200
G1 X100 Y100

G68 X100 Y100 R45

G1 X100 Y100
G1 X100 Y200
G1 X100 Y100

G68 X100 Y100 R90

etc.

all i want to be able to do is write a design, and rotate it at the centre of my workpiece (100 radius) and repeat the pattern. but it just doesn't rotate on the centre point at x100 y100.
can anyone help? my codes work perfectly on NC Plot but Mach 3 they just don't go the way i want.

thankyou

Offline Tweakie.CNC

*
  • *
  •  9,197 9,197
  • Super Kitty
    • View Profile
Re: Headaches with Mach3... one of many lol (G68)
« Reply #1 on: November 27, 2015, 03:22:18 AM »
Perhaps I don't fully understand your intended plan with this but I think you should consider designing your pattern in CAD/CAM and specifying the X-Y Datum as the centre of the work.
This way X0, Y0 would be the centre of the pattern allowing correct Mach3, G68 rotations about that centre.

Tweakie.
PEACE
Re: Headaches with Mach3... one of many lol (G68)
« Reply #2 on: November 27, 2015, 03:37:42 AM »
i use mathematical equations to make geometric patterns. i prefer to code these rather than cad them so their parametric.

but ill give it a go using x0 y0 as the centre. ill post the results