Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: mike^3 on July 01, 2015, 04:04:56 PM

Title: Can I make a script that only allows the tool changer to move in ONE direction?
Post by: mike^3 on July 01, 2015, 04:04:56 PM
Hello, here is a sample script

 If GetSelectedTool = 1 Then
  Code "G53 G0 A0"
 Code "G53 G0 A-5"
 Code"G92 A0"   
 While IsMoving()
 Wend
 End If

However, I only want the tool changer that I have (8 station) to rotate in ONE direction, positive, not negative. Where it stands right now it will rotate to the g0 a0. I would like for it to go forward until it goes to the tool no matter where (360 degrees) it is at. Forward direction only, is this possible?

Thanks!
Title: Re: Can I make a script that only allows the tool changer to move in ONE direction?
Post by: BR549 on July 01, 2015, 05:39:22 PM
YES check your email

(;-) TP