Hello Guest it is March 28, 2024, 09:16:48 AM

Author Topic: New Wizards ??  (Read 10737 times)

0 Members and 1 Guest are viewing this topic.

(No subject)
« Reply #10 on: January 21, 2015, 11:50:35 AM »
Thanks so much  .

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: New Wizards ??
« Reply #11 on: January 21, 2015, 06:56:30 PM »
You are very welcome please let me know how it works out or IF it needs some more work.

(;-) TP
Re: New Wizards ??
« Reply #12 on: August 28, 2015, 09:35:02 AM »
How about a wizard that will let me move 6 axis to a position and record that position to a g code program.  Copy cat only does 3 axis.  Thanks Rick

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: New Wizards ??
« Reply #13 on: September 01, 2015, 12:42:27 AM »
I can have it write the 6 axis positions  to a file but writing 6 axis Gcode is extremely complicated.

(;-) TP
Re: New Wizards ??
« Reply #14 on: September 01, 2015, 10:18:03 PM »
BR549,  Actually a script that I can assign to a button would work fine for me.  I built this robot to develop interest in robots with my grandchildren.  I would like to be able to move all 6 axis into a position, press a button to record that position and append it to a g-file.  Then move to a new spot and do the same thing all over.  I have tried the following scrip with some decent results.

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 "Robot.tap"
Code "X" & X & " Y" & Y & " Z" & Z & " A" & A & " B" & B & " C" & C & "  //" & Com
call LoadTeachFile()

It is not my script and some parts didn't work properly.  It only gets the dro numbers to the left of the decimal point.  I tried a few changes but have never played with scripts before so have lots to learn.  I added a picture to flickr and linked to it but I'm not sure I did it right.  Here is the flicker address.  https://www.flickr.com/gp/134164577@N03/QP61xM   Thanks, Rick

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: New Wizards ??
« Reply #15 on: September 01, 2015, 11:59:39 PM »
You are only getting the number to the left because you are formating the values as an integer not a double. Try it this way.


X = GetDRO (0)
Y = GetDRO (1)
Z = GetDRO (2)
A = GetDRO (3)
B = GetDRO (4)
C = GetDRO (5)
Com = InputBox ("Add Comment")
AppendTeachFile "Robot.tap"
Code "G1 X" & X & " Y " & Y & " Z " & Z & " A " & A & " B " & B & " C " & C & "  ( "  & Com & " )"
call LoadTeachFile()
« Last Edit: September 02, 2015, 12:01:38 AM by BR549 »

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: New Wizards ??
« Reply #16 on: September 02, 2015, 12:16:54 AM »
THose little puppies are fun to play with . IF you work with the Formulas yo can get a simple form of kenimatics from them where you can time several joint together so when 1 joint moves another move in synce with it. With Mach3 you can turn formulas ON /off through scripting you can also write formulas with scripting so can make quite a robot with a little time and effort.

Have fun, (;-) TP
Re: New Wizards ??
« Reply #17 on: September 02, 2015, 08:58:47 PM »
Thanks TP your script worked great and does exactly what I wanted it to do.  Thanks again, Rick