Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Transformer on November 21, 2014, 04:25:25 PM

Title: Creating wizards
Post by: Transformer on November 21, 2014, 04:25:25 PM
I have my lathe converted and am working my way through the wizards in Mach3.  I am wondering how theses wizards are created.  I will soon try and write a G code program, say to make a pulley, but how would I create a wizard so I could just enter diameter, shaft size etc, rather than have to go through the program line by line to change a program that was created for a different size pulley?

Thanks, Dennis
Title: Re: Creating wizards
Post by: ger21 on November 21, 2014, 07:30:17 PM
Wizards are created with a screen designer and VB scripting. There's information in the Mach3 customization guide.
http://www.machsupport.com/wp-content/uploads/2013/02/Mach2_6.11_Custom.pdf
Title: Re: Creating wizards
Post by: Atlas56 on November 23, 2014, 10:08:44 PM
I'm glad to see you're starting out with an easy programming project. You have it figured out “enter diameter, shaft size, etc” as variables in stead of fixed value. Just  create the equations and functions with fixed values to  generate the code and then replace the fixed values in equations and functions with variables. The difficulty of a program can be calculated using the number of variables.
Difficulty = Number of Variables2
 4 = 22
 400=202

Good luck.
Title: Re: Creating wizards
Post by: Transformer on November 30, 2014, 05:52:17 PM
So I guess I need to know how to program in Visual Basic.  Any books or references you might suggest?  The last programming I did was back in the days of punched cards.

Dennis