Hello Guest it is March 28, 2024, 02:08:52 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.


Topics - KipKirol

Pages: 1
1
G-Code, CAD, and CAM discussions / Using a macro to "ref all home"
« on: July 11, 2018, 05:25:25 PM »
I have created a macro to "ref all home"    A quick and easy safety step I am adding since our machine has lost position in the Y and Z axis, causing catastrophic table damage (working with a 15" cutter head here)

I am using M12, and the macro rads as follows:

DoButton( 24 )
DoButton( 23 )
DoButton( 22 )
DoButton( 25 )

DoOEMButton(133)
DoOEMButton(134)
DoOEMButton(135)


The above is just a copy of the "ref all home" button script.   We only use the Y and Z axis so the extra buttons are not necessary but dont seem to have an affect.

When I go to MDI and type in M12 the machine responds as if I have pushed "ref all home" exactly as I had intended.

When I add the M12 into a program and load into Mach3, the controller stops "generating toolpath" when it arrives at the M12 line and just waits for me to click cancel.   If I run the program, the machine runs through the header to the M12, does the homing move, and starts at the top of the program.   I think if I left it, it would just repeat this forever.    Here is what my header looks like:

G21                           
G90                           
G53         Z   0               
T1 M6                           
G0 G90 G54   Y   -79                     
M12                           
G0   Y   -79                     
                     S   3250   M3
G43 H1         Z   15               
G1                F   250   



Any ideas how I can make this work?   

 

2
G-Code, CAD, and CAM discussions / Problem with M30 at end of program
« on: July 11, 2018, 02:56:16 PM »
I would like an M30 at the end of my programs to rewind the program.

Below is a simple code I wrote, the M30 rewinds to program:

G21 G0 G17 G40 G49 G80 G90                  
G0 G90 Z35                  
T1 M6                  
G54     S   3250   M3
G0 Y0
G0 Y-70
G0 Z10
G1 Z3 F 1000
G1 Y-45 Z0
G1 Y 2070 F2000
G0 Z30   
M5
G0 Z-.1                  
M30


Below is header and footer from a similar program that does not rewind.

G21                           
G90                           
G53         Z   0               
T1 M6                           
G0 G90 G54   Y   -60                     
S   3250   M3
G43 H1         Z   15               
G1                F   250   

(program)

G0    Y   1810                     
M5                           
G0          Z   99               
G0    Y   2200                     
G53          Z   0               
M30   





Any idea why the M30 does not pickup in the second program?

   

   

Pages: 1