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 - smurph

Docs...  yeah, well...  sore subject.  LOL  It is time consuming.  You really need a staff of technical writers to do it right.  And we are not big enough to do/afford that.

One could also use the PMC for connecting panel button inputs to these functions as well.  The PMC is ladder logic and doesn't require LUA programming knowledge.  But you do need to be familiar with ladder logic.  Damned if you do and damned if you don't, right?  :)

We won't ever say that it is 100% compatible with any Fanuc.  It has similar functionality and most Fanuc 21i stuff works.  But Mach 4 can also do things that a Fanuc 21i can't.  For example, both G76 lathe threading cycle formats are accepted in Mach 4 where only one is accepted on a 21i.  Mach 4's dwell (G04) can be HAAS style or Fanuc style, etc...

So no, the manual will never say this, officially.  But a person familiar with running a Fanuc 21i type machine will feel right at home in Mach 4. 

Peter Smid has a good book on G code programming.  And also a book on Macro B.  These two books were used during the development of Mach 4.


Mach4 General Discussion / Re: Mach4 V3468
« on: September 06, 2017, 01:44:14 AM »
This is a Fanuc compatible function.  Mach 4 pretty much emulates a Fanuc 21i.  So reading a Fanuc 21i manual will get you must of the stuff on Macro B and the more advanced stuff related to it.  However, Mach 4 is not a perfect emulation of a Fanuc 21i and will probably never be, so some things won't work.  MOST things do.  An example of the major difference between Mach 4 and a Fanuc 21i would be some system variable and parameter settings. 


SETVN ********* [name1, ...]

Where ********* is the starting #var.  #500 to #549 are assignable by default.  However, G code lines can only be a max of 80 characters long.  Hence the reason for the starting variable number.


names #500 to MYVAR1, #501 to MYVAR2, and #502 to MAYVAR3


continues the variable naming. 

Variables can now be accessed and set via their names.  The names are not case sensitive. 

#myvar1 = 1024
#myvar3 = #myvar1


It is important to note that these variable names are saved.  If you shutdown Mach, they will be preserved.  So be careful!!!!  It is common practice that SETVN is used at the beginning of a G code program to explicitly set the variable names.  Similar to the common practice of inserting a safety line at the beginning of a G code program. 


Mach4 General Discussion / Re: Mach4 build released
« on: September 05, 2017, 06:51:11 PM »
Make sure that no desktop shortcuts are setting the working directory to the plugins directory.  This is a symptom of the Mach installation directory not being the current working directory upon startup.


Mach4 General Discussion / Re: Mach4 V3468
« on: August 17, 2017, 04:20:48 PM »
SETVN: Set Variable Name.  It is a way to name G code variables.  Originally, the range was limited (#500-#549).  Now the range is definable.
Angled meter:  A new control in the screen editor.  To make angular meter type gauges like a speedometer or tachometer.
The tangential planner now has the same CV optimization capabilities that the mill/router planner enjoys. 


Mach4 General Discussion / Re: Super Simple Screen Set (Mach4 Beta)
« on: August 17, 2017, 04:10:51 PM »
Cool!  Perfect frill free screen set.  I like it. 

Mach4 General Discussion / Re: LOVING the PMC!! Thanks Steve!!!
« on: July 27, 2017, 11:08:01 PM »
I can't possibly explain all of that in a forum post.  My advice is to search this forum for PMC examples.  Then familiarize yourself with the LUA scripting API to figure out how to get the selected tool, etc..  Look at some of the M6 example scripts.  They might help.  You may not even need the PMC, depending on what you want to do. 


Mach4 General Discussion / Re: Mach4 Tangential
« on: July 27, 2017, 10:14:29 PM »
Have you tried it?  Tangential is a choice in the config dialog. 


Mach4 General Discussion / Re: LOVING the PMC!! Thanks Steve!!!
« on: July 27, 2017, 09:13:23 PM »
You don't start a PMC file from any macro script.  The PMC is running all of the time (it is a software PLC).  Regulars ways of interfacing to a hardware PLC from a macro script can be used.  Typically by using Mach registers to communicate.  For your tool change stuff, you could load the selected tool into a register that the PMC is watching, etc...