2231
VB and the development of wizards / Re: How to create G-code from entries on the Mach3 screen
« on: September 21, 2015, 07:49:02 AM »
Hi Mark,
that is quite easy.
1. put two input fields on your screen with OEMDRO's, lets say OEMDRo 1300 for X-distance and OEMDRo 1301 for Y-distance
2. place a button in screen and fill it with a VB something like this
Sub Main
XPos=GetOEMDRO(1300)
YPos=GetOEMDRO(1301)
Code "G0 A90"
Code "G0 X" + XPos + "Y" + YPos
Code "G1 Z-1"
Code "G1 X" + XPos + "Y0"
Code "G1 Z1"
Code "G0 X0 Y0"
End Sub
Thomas
that is quite easy.
1. put two input fields on your screen with OEMDRO's, lets say OEMDRo 1300 for X-distance and OEMDRo 1301 for Y-distance
2. place a button in screen and fill it with a VB something like this
Sub Main
XPos=GetOEMDRO(1300)
YPos=GetOEMDRO(1301)
Code "G0 A90"
Code "G0 X" + XPos + "Y" + YPos
Code "G1 Z-1"
Code "G1 X" + XPos + "Y0"
Code "G1 Z1"
Code "G0 X0 Y0"
End Sub
Thomas