Hello Guest it is March 28, 2024, 04:57:41 PM

Author Topic: Mach4 V3468  (Read 2164 times)

0 Members and 1 Guest are viewing this topic.

Offline Mauri

*
  •  328 328
    • View Profile
Mach4 V3468
« on: August 04, 2017, 06:21:29 PM »
Hi,
Does anyone have any more detail on what the following changes to Mach4 V3468 do?
SETVN Range (Start-End)
New angled meter added as a screen control in Hobby and Industrial 
Tangential planner optimized for CV
Regards,
Mauri.

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Mach4 V3468
« Reply #1 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. 

Steve
Re: Mach4 V3468
« Reply #2 on: September 05, 2017, 09:02:41 PM »
can you give an example of how to use SETVN ?
i have got mach4 industrial and did not even know this was available.

is there docs for this?

thanks.

Offline smurph

*
  • *
  •  1,544 1,544
  • "That there... that's an RV."
    • View Profile
Re: Mach4 V3468
« Reply #3 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. 

Basically:

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.

SETVN 500 [MYVAR1, MYVAR2, MYVAR3]

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

SETVN 503 [MYVAR4]

continues the variable naming. 

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

#myvar1 = 1024
#myvar3 = #myvar1

Etc...

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. 

Steve