Hello Guest it is October 16, 2021, 10:25:44 PM

Author Topic: Creating wizards  (Read 2417 times)

0 Members and 1 Guest are viewing this topic.

Creating wizards
« 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

Offline ger21

  • *
  •  6,293 6,293
    • View Profile
    • The CNC Woodworker
Re: Creating wizards
« Reply #1 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.

2010 Screenset

JointCAM Dovetail and Box Joint software
Re: Creating wizards
« Reply #2 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

Good luck.
Re: Creating wizards
« Reply #3 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.