Hello Guest it is November 28, 2021, 09:31:38 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - zedodia

Pages: « 1 2
11
G-Code, CAD, and CAM discussions / Re: Conditional programming
« on: March 20, 2018, 11:09:38 PM »
Ah ok. So the subroutine is still within the same file.test.nc.

So I don’t need to put anything in the mach3/subroutine folder? Doing this works on ncplot with the looping z increment but in Mach 3 it doesn’t alter the z increment.

Code now is:

Test.nc
————
#100=10.0. (Z)
G0X0Y0Z0
F2000.0
G1X100.0 Y0 Z#100
G1X100.0 Y100.0
G1X0 Y100.0
G1X0 Y0

M98 P02 L5
M30

O02
G1X200.0Y0Z#100
G1X200.0Y200.0
G1X0Y200.0
G1X0Y0
#100=[#100+10.0]
M99

————prog finish———-

Am I missing anything else?

So what’s the subroutine folder for then?


12
G-Code, CAD, and CAM discussions / Re: Conditional programming
« on: March 20, 2018, 10:31:23 PM »
Sorry I don’t understand. Do I need to add o02 into the script?

13
G-Code, CAD, and CAM discussions / Re: Conditional programming
« on: March 20, 2018, 10:22:22 PM »
Just noticed that every gcode program hangs at ‘please wait.... generating toolpaths”

So I’ll have to sort that first I feel. Weird. Never had this drama before.

Update**** restart windows and I can load progs again. But still won’t load subs.

14
G-Code, CAD, and CAM discussions / Re: Conditional programming
« on: March 20, 2018, 10:05:34 PM »
Makes sense. Just can’t get it to call a sub. Please see if this is right or what I’m missing.

Main prog is on the desktop called test.nc and sub is called 02.tap and is in the subroutines folder in Mach 3.

Test.nc
————

G0X0Y0Z0
F2000.0
G1 X100.0 Y0
G1 X100.0 Y100.0
G1 X0 Y100.0
G1 X0 Y0

M98 P02 L1


———prog finish——-

02.tap
————

G1 X200.0 Y0
G1 X200.0 Y200.0
G1 X0 Y200.0
G1 X0 Y0
M99

———subprog finish———

It works in NCplot but will not work in Mach 3. Any clues?

15
G-Code, CAD, and CAM discussions / Conditional programming
« on: March 19, 2018, 08:14:51 PM »
I’ve heard before and read many time Mach 3 doesn’t support conditional programming. Though the posts are many years old. Has this changed at all with an update or anything? (While end if else end)

Does Mach 4 support these conditional programmes? (Ie should I attempt an upgrade from 3 to 4)

Still not sure how to do VB scripts yet and there’s no simple tutorial on them I can find either.
Quite simply (at first) all I want to do is set a program to loop while the Z height changes each loop. This would be much better than copying all the code and pasting with a new Z height.

16
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

17
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

Pages: « 1 2