UKRobotics
03-31-2008, 01:51 PM
Hi All,
My CNC Mill is a Bridgeport Series 2 Interact 4 retrofit which is now
very close to completion. Bar a few loose wires here and there it is
nearly ready to run but I want to get the logic side of things tested
and working reliably before I start trying to cut parts.
One of the things I need to do is get Mach3 to control my powered draw
bar. Now I know at its simplest level I could just create a button in
screen designer and link that to the associated output but I wish to
add a bit more inteligence than that.
What I would like is a VB script which (when i press the drawbar open
button) checks if the spindle is running and if so displays a message
saying so whilst not allowing the drawbar solonoid to be fired. Then
I'd like it to check the proximity sensor input which monitors the
position of the drawbar mechanism. If the sensor input is not high
then it should display a warning about the z axis not being homed
whilst again refusing to fire the solonoid valve until the situation
changes. Finally if those conditions have been satisified then it
should allow the solonoid to be fired.
Now I hope I'm not asking too much here, but I'd be really greatful if
somone could write me a few lines of example code to do what I have
described above so I have a starting point to work from.
I have watched all the video tutorials relating to macros on the Mach3
website and read though most of the written doccumentation but I could
really do with a headstart in the right direction to get me going!
Regards,
Dom
My CNC Mill is a Bridgeport Series 2 Interact 4 retrofit which is now
very close to completion. Bar a few loose wires here and there it is
nearly ready to run but I want to get the logic side of things tested
and working reliably before I start trying to cut parts.
One of the things I need to do is get Mach3 to control my powered draw
bar. Now I know at its simplest level I could just create a button in
screen designer and link that to the associated output but I wish to
add a bit more inteligence than that.
What I would like is a VB script which (when i press the drawbar open
button) checks if the spindle is running and if so displays a message
saying so whilst not allowing the drawbar solonoid to be fired. Then
I'd like it to check the proximity sensor input which monitors the
position of the drawbar mechanism. If the sensor input is not high
then it should display a warning about the z axis not being homed
whilst again refusing to fire the solonoid valve until the situation
changes. Finally if those conditions have been satisified then it
should allow the solonoid to be fired.
Now I hope I'm not asking too much here, but I'd be really greatful if
somone could write me a few lines of example code to do what I have
described above so I have a starting point to work from.
I have watched all the video tutorials relating to macros on the Mach3
website and read though most of the written doccumentation but I could
really do with a headstart in the right direction to get me going!
Regards,
Dom