Hello Guest it is May 14, 2021, 10:34:00 AM

Author Topic: Comments about Mach4 in Demo  (Read 73707 times)

0 Members and 1 Guest are viewing this topic.

Offline Chaoticone

*
  • *
  •  5,626 5,626
  • Precision Chaos
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #150 on: May 02, 2014, 02:52:29 PM »


Yes, this is a nice thing. Thanks for sharing, Craig.

But, could we keep this thread strictly for Mach4 bug reports and related comments? And open new threads for other topics. Otherwise the thread is getting cluttered with all sorts of other things and the bugs are getting missed by Brian and Steve and it's not leading to anywhere.

Dan

I just started two new topics, Mach4 bug reports and Mach4 wish list. I know everyone is enjoying all the comments but Dan does have a point. Brian and Steve have a ton of things going on right now and, as much as we want to hear all they have to say and want them to listen all we have to say, it would likely help them address our wants/needs if we had a couple of really clean threads.  
;D If you could see the things I have in my head, you would be laughing too. ;D

My guard dog is not what you need to worry about!

Offline Dan13

*
  •  1,208 1,208
    • View Profile
    • DY Engineering
Re: Comments about Mach4 in Demo
« Reply #151 on: May 02, 2014, 03:28:48 PM »
Thanks Brett.

Dan

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #152 on: May 02, 2014, 07:59:52 PM »
HIYA steve, Here is a macro example. 3 problems popped up.

1. When I try to single step through the program and it gets to a GOTO call lets say GOTO5. It jumps to the line AFTER the N5 line NOT to it.

2. Every time it runs  the macro STALLS at the Tool change call  and does not proceed you have to hit STOP.

3 Sometimes at the G43 call it stalls as well.

I have not gotten to verifying IF the G65 parameters are compatible with Mach4 I had problems in single step mode.


 O0001 (Main program)

(Machine hole)

N075  (1.0 END MILL)
N080 G54 G90 S1200 M03 T05 (Start spindle)
N085 G00 X2.5 Y2.0 (Rapid to hole-center)
N090 G43 H04 Z0.1 (Rapid approach in Z)
N095 M08 (Turn on coolant)
N100 G65 P1000 X2.5 Y2.0 D3.0 R0.1 Z-1.0 A1.25 T1.0 F5.0 H1.0
(Mill circle)
N105 G91 G28 Z0 M19 (Return to tool change position)
N110 M01 (Optional stop)

(Program continues)

N200 M30 (End of main program)



o1000 (Circle milling custom macro)
(TEST FOR MISSING ARGUMENTS)
N1 IF [#24 EQ #0] GOTO 95 (X)
IF [#25 EQ #0] GOTO 95 (Y)
IF [#26 EQ #0] GOTO 95 (Z)
IF [#18 EQ #0] GOTO 95 (R)
IF [#7 EQ #0] GOTO 95 (D)
IF [#20 EQ #0] GOTO 95 (T)
IF [#9 EQ #0] GOTO 95 (F)
IF [#1 EQ #0] GOTO 95 (A)
IF[#11 EQ #0] GOTO 95 (H)
(A MUST BE BIGGER THAN HALF OF T)
IF [#1 GT [#20/2 +0.1]] GOTO 2
#3000=101(APPROACH RADIUS TOO SMALL)
(RAPID TO APPROACH POSITION)
N2 G00 X#24 Y#25]
Z#18

(TEST FOR HOLE IN CENTER)
IF[#11 EQ 1.0] GOTO 5
G01 Z#26 F#9
GOTO 6
N5 G01 Z#26 F[#9 * 5]

(MOTIONS TO MILL CIRCLE)
N6 G01 Y[#25 + #7/2 - #1] F#9
X[#24 - #1 + #20/2]
G02 X#24 Y[#25 + #7/2 - #20/2] R[#1 - #20/2]
J-[#7/2 - #20/2]
X[#24 + #1 - #20/2] Y[#25 + #7/2 -#1] R[#1 - #20/2]
G00 Z#26
X#24 Y#25
GOTO 99
N95 #3000=100 (INPUT VALUE MISSING)
N99 M99 (End of custom macro)





« Last Edit: May 02, 2014, 08:05:38 PM by BR549 »

Offline smurph

*
  • *
  •  1,402 1,402
  • "That there... that's an RV."
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #153 on: May 02, 2014, 08:21:44 PM »
What does your m6 macro look like?  Is it the one we provided?  If it is, it should be waiting on you to press cycle start.  The m6 in the build is just an example and it does things for demonstration purposes that really isn't valid.

Single block through the conditional stuff is a work in progress.

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #154 on: May 02, 2014, 08:21:56 PM »
HIYA Steve you ask for a program that shows the A axis creep. This one does here. It gets to the G65 call then stalls and the A axis SLOWLY creeps towards the "A" value in the call. If you wait until it gets there THEN the program continues. IF you set the A value to ZERO then it does not stall. IF you PRESET the A dro to the" A "value it does not stall.

(;-)TP


O0008 (Main program)
    N005 G54 G90 S800 M03 T02 F100(Select coordinate system, absolute mode, start spindle, get next tool ready)
    N010 G00 X3.0 Y2.5 (Rapid to center of bolt hole pattern)
    N015 G43 H01 Z.1 (Instate tool length compensation, rapid up to workpiece)
    N020 G65 P1008 X3.0 Y2.5 Z0 R1.75 D0.75 A45.0 H8.0 C81. F50 (Machine entire bolt hole pattern with drilling cycle)
M30


    O1008 (Custom macro to machine bolt hole circle)
    #101=1 (Initialize counter)
    #102=#1 (Initialize current angle to A)
    #103=360 / #11 (Constant for incremental angular distance between holes)
    #104=#26 + 0.1 (Constant for rapid approach plane)
    #105=#26 - #7 (Constant for Z bottom position of hole)
    N1 IF [#101 GT #11] GOTO 99 (Test if loop is finished)
    #110=#24 + COS[#102] * #18 (Calculate X position for current hole based on current angle)
    #111=#25 + SIN[#102] * #18 (Calculate Y position for current hole based on current angle)
    G#3 X#110 Y#111 R#104 Z#105 F#9 (Machine current hole)
    G80 (Cancel cycle)
    #101=#101 + 1 (Step counter)
    #102=#102 + #103 (Step current angle)
    GOTO 1 (Go back to test at loop beginning)
    N099
 M99 (End of custom macro)
 %
 

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Comments about Mach4 in Demo
« Reply #155 on: May 03, 2014, 08:42:58 AM »
I just want to say, THANKS Brian and Steve, for this AWESOME product!!!! I am blown away by the power and ease to customize/use it!! I am soooo darn pumped!!!!
Yes, there are glitches, but so what, there is always glitches, and you guys stomp them out fast!!!

I for one am VERY pleased with your work so far. Please Ignore all the Negative guys... agian, thank you for this!

Scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/
Re: Comments about Mach4 in Demo
« Reply #156 on: May 03, 2014, 09:48:03 AM »
Single block should be ripped out, I don't uses it ..FIXED!
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Comments about Mach4 in Demo
« Reply #157 on: May 03, 2014, 11:00:44 AM »
WHAT? Single blocking a program with your hand on the feed over ride is a setup mans sanity!
Re: Comments about Mach4 in Demo
« Reply #158 on: May 03, 2014, 11:15:09 AM »
I know that is what they teach people to do but I find that to be slow and cumbersome. I know many guys that never use it because we use the rapid override and the feed override. Press cycle start nothing happens, slide the sliders and you are 100% in control! We need to add shuttle mode too.. that is an acceptable way to dry run as well :)

We are not going to take it out.. I just needed to tell you that I don't agree with it.. I think it is a vestigial feature from the early CNC's

Thanks
Brian
 
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com
Re: Comments about Mach4 in Demo
« Reply #159 on: May 03, 2014, 11:31:30 AM »
There ya go calling us OLD again  ;D