Hello Guest it is April 19, 2024, 01:59:13 AM

Author Topic: My first Script - 6 Axis Teach fine tune help  (Read 3426 times)

0 Members and 1 Guest are viewing this topic.

My first Script - 6 Axis Teach fine tune help
« 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 »

Offline zealous

*
  •  489 489
  • HI!
    • View Profile
    • Artsoft Solutions
Re: My first Script - 6 Axis Teach fine tune help
« 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 »