Hello Guest it is May 23, 2019, 01:31:32 PM

Author Topic: Creating wizards  (Read 1634 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

Online ger21

*
  • *
  •  6,233 6,233
    • 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.
http://www.machsupport.com/wp-content/uploads/2013/02/Mach2_6.11_Custom.pdf
Gerry

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

JointCAM Dovetail and Box Joint software
http://www.g-forcecnc.com/jointcam.html
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
 400=202

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.

Dennis