Welcome, Guest. Please login or register.
Did you miss your activation email?
May 28, 2012, 02:41:02 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  VB and the development of wizards
| | |-+  My first Script - 6 Axis Teach fine tune help
Pages: 1   Go Down
Print
Author Topic: My first Script - 6 Axis Teach fine tune help  (Read 1033 times)
0 Members and 2 Guests are viewing this topic.
ScrappyScooter
Active Member

Offline Offline

Posts: 34


View Profile
« on: December 28, 2008, 12:46:30 PM »

Hi Ladies and Gents,

I'm putting together robot using Mach3 for control.
The robot a Ping Pong ball machine.
It is a 6 motor monster that needed a 6 axis Teach. JCode and Copy Cat are 4 axis Teachers.
It was suggested in another forum that I make my own 6 axis Teach, VB Script.
I'd never 'coded' anything before. Through research trial and error I came up with this:

X = CInt (GetDRO (0))
Y = CInt (GetDRO (1))
Z = CInt (GetDRO (2))
A = CInt (GetDRO (3))
B = CInt (GetDRO (4))
C = CInt (GetDRO (5))
Com = InputBox ("Add Comment")
AppendTeachFile "teach.tap"
Code "G0 X" & X & " Y" & Y & " Z" & Z & " A" & A & " B" & B & " C" & C & "  //" & Com
LoadTeachFile


I would like a better Comment inserter.
I would like to have a UserDRO on the screen that I can put the comment in (instead of the InputBox call).

Is there a way to have a DRO accept numbers and letters (or just letters)?

Thanks
« Last Edit: December 30, 2008, 02:02:44 PM by ScrappyScooter » Logged
zealous
Active Member

Offline Offline

Posts: 486



View Profile WWW
« Reply #1 on: January 02, 2009, 01:01:42 AM »

I don’t believe there is a way, you'll have to use the VB Input Box.

Good job with the code!
« Last Edit: January 02, 2009, 12:00:56 PM by zealous » Logged

Regards, Jason Blake

www.Fusioncnc.com
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!