Hello Guest it is May 06, 2021, 08:42:20 PM

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

0 Members and 1 Guest are viewing this topic.

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #90 on: May 01, 2014, 02:17:26 AM »
Well Jimminy crickets MACH4 Conditional does work (;-), Been waiting on that for about 10 years now. IS the syntax the same as Fanuc as far as operators

EQ = equal to
NE = Not equal to
etc
etc

In my testing I will just compile a single list for you when I run across them again.

Have to drag out some Fanuc MacroB macros to test(;-)

(;-) TP

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #91 on: May 01, 2014, 02:49:48 AM »
HIYA STEVE, I ran itno a problem with this macro. IN the G65 call  Instead of the Parameter "A(#1)" being used to set the starting point angle for the macro Mach4 is trying to rotate the A axis to 45 deg at a VERY slow rate.


    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)


(;-) TP
« Last Edit: May 01, 2014, 02:55:36 AM by BR549 »

Offline smurph

*
  • *
  •  1,396 1,396
  • "That there... that's an RV."
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #92 on: May 01, 2014, 03:00:26 AM »
The reason you waited 10 years is because it was not easy!

I will check it out.

Steve
« Last Edit: May 01, 2014, 03:06:25 AM by smurph »
Re: Comments about Mach4 in Demo
« Reply #93 on: May 01, 2014, 06:31:02 AM »
    #1
    #11
    #26
    #7
    #24
    #18
    #25
    #3
    #9

did I miss where these got set?
« Last Edit: May 01, 2014, 06:39:35 AM by Ya-Nvr-No »

Offline Graham Waterworth

*
  • *
  •  2,322 2,322
  • Yorkshire Dales, England
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #94 on: May 01, 2014, 07:02:11 AM »
The G65 line passes the values into the local variables in the macro so the X3.0 is passed into #24 and the Y2.5 is passed to #25 Etc.  The #1 to #26 are local to the called macro so to be able to pass them into other macros they must be copied to global variables (#100 upward) or parameter passed.  Here is the list and its # number to receive the passed value.

A = #1
B = #2
C = #3
D = #7
E =  (Mach4 RESERVED SYSTEM WORD at the moment)
F = #9
G (RESERVED SYSTEM WORD)
H = #11
I = #4
J = #5
K = #6
L  (RESERVED SYSTEM WORD)
M = #13
N  (RESERVED SYSTEM WORD)
O  (RESERVED SYSTEM WORD)
P  (RESERVED SYSTEM WORD)
Q = #17
R = #18
S = #19
T = #20
U = #21
V = #22
W = #23
X = #24
Y = #25
Z = #26

As you can see from the list the numbers are not in order so care should be taken when using them, also not all the words can be used as some are system reserved.

Graham
« Last Edit: May 01, 2014, 11:14:31 AM by Graham Waterworth »
Without engineers the world stops

Offline poppabear

*
  • *
  •  2,233 2,233
  • Briceville, TN, USA
    • View Profile
    • S S Systems, LLC
Re: Comments about Mach4 in Demo
« Reply #95 on: May 01, 2014, 07:37:27 AM »
Dag-nabbit...........

Now I have to go and learn Fanuc B......
***donning nerd hat, WITH propeller***

Scott
Commercial Mach3 & Mach 4, Design/Build/Retrofit CNC and Industrial machines.
http://www.ss-systems-llc.com/

Offline ger21

*
  • *
  •  6,289 6,289
    • View Profile
    • The CNC Woodworker
Re: Comments about Mach4 in Demo
« Reply #96 on: May 01, 2014, 08:29:23 AM »
Quote
We already have it.  Full Fanuc custom macro B with full G65 and G66 support as well.  It is a Mach 4 Industrial feature.  Not part of Mach 4 Hobby as Mach3 never had it

You guys do realize that this is going to cost $1000 or more?

Brian, any thought about a reduced price "industrial hobby" version with no phone support? Maybe at $500? There are a lot of advanced hobby users who've always wanted these features, but don't necessarily need support. Provided there's adequate documentation.

Is there a list of what features industrial will have that Hobby won't?
Gerry

2010 Screenset
http://www.thecncwoodworker.com/2010.html

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
Re: Comments about Mach4 in Demo
« Reply #97 on: May 01, 2014, 09:43:37 AM »
I wish there was a way to make the Macro B an option but we need to have a line in the sand. Now what we are going to do for you guys testing this out and helping is the following:

If you Buy Mach4 Hobby during the introduction period we will make a special offer to upgrade your version to Industrial. I want to give you all something for the great effort you are putting in to help us debug. I think that is a far solution and we all win!

Thanks
Brian
Fixing problems one post at a time ;)

www.newfangledsolutions.com
www.machsupport.com

Offline Bodini

*
  •  216 216
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #98 on: May 01, 2014, 10:21:08 AM »
I find entering numbers in the DROs rather inconvenient comparing to how it used to be in Mach3 where a single click would highlight the whole number.

I too am already annoyed by this.  1 click should highlight the whole field, IMO.

Offline BR549

*
  •  6,952 6,952
    • View Profile
Re: Comments about Mach4 in Demo
« Reply #99 on: May 01, 2014, 10:32:50 AM »
HIYA Graham, Steve told me that the E parameter was a reserved word and was not used in the Mach version SO there MAY be a difference in the G65 local parameter list. If so that throw a little KINK in directly uses the mass amount of MacroB macros out there BUT it may just be a simple conversion if all one has to do is shuffle around the parmeters a bit.

For once you programers did create something I understand, macroB , conditional and SUBs (;-).

Happy as a pig with a new slop barrel, (;-) Sad as a lost puppy because it cost so much. OOB  ( Out of Budget)


HIYA Steve thanks for staying up so late last night. Another glich in using the Gcode editor is when you exit it or for that matter any outside function it does NOT clear the Message line out. It leaves the last message stuck there. That makes you have to manually clear the history out so so can KNOW if the message you see is valid to the Gcode reloaded.

So far loading mach4 under Admin rights has cleared up the problem of the Gcode editor crashing or locking up.

Do you have a list of the Local G65 Parameters "A=#1 B=#2 C=#3 etc??

I agree with the DRO entry it IS a pain to deal with from a control panel entry.

(;-) TP

« Last Edit: May 01, 2014, 10:41:15 AM by BR549 »