VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Gears

by Emilio P.G. Ficara (1 Submission)
Category: Games
Compatability: VB 6.0
Difficulty: Intermediate
Originally Published: Fri 16th September 2016
Date Added: Tue 9th February 2021
Rating: (1 Votes)

Program written in VB6 starting from a graphical example found on Gambas2 (Linux Visual Basic). The original program shows an animation of moving gears and I had the idea to make a new program to generate the G-Code for a CNC machine to create a physical gear. I made in the past a program to generate very simple gears in GFA-Basic under Win3.1 (16 bits); you can find it navigating my web site. Respect to the previous one, this VB6 program generates a different shape and a bit 'more "refined" teeth. The input boxes allows to define the number of teeth, its height, the radius of the central hole and the gear outer radius. The Z axis movements are not generated in the output file, but there is a remark in the output list (the G-Code) that indicates where to place UP and DOWN movements of Z axis. The output file is generated when you click the GO button, on the same directory where the executable is placed. The "gear-nn.cnc" file is generated, where nn is the number of teeth set for gear. The output of the program has been tested with NCPlot v1.1, software downloaded from the Internet. The measures (inches or millimeters) depend on the machine settings. In the program they are used in absolute numbers (three decimal places). The gear center always has coordinates X = 0, Y = 0; the minimum number of teeth 5 is accepted.

Rate Gears

Download Gears

Download Gears (3 KB)

Gears Comments

No comments have been posted about Gears. Why not be the first to post a comment about Gears.

Post your comment

Subject:
Message:
0/1000 characters