Hello Guest it is March 29, 2024, 03:35:44 AM

Author Topic: Running macro and testing them  (Read 18146 times)

0 Members and 1 Guest are viewing this topic.

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #20 on: May 10, 2008, 09:43:08 AM »
Not at all, just been there, done that, seen the movie :D
So is your macro working now or are there still problems?
Hood

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #21 on: May 10, 2008, 09:45:23 AM »
I now tried to run the tool change and it is still not running

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #22 on: May 10, 2008, 09:55:38 AM »
Just another thought, how are you calling the toolchange? are you using the MDI line, if so what do you type?
Hood

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #23 on: May 10, 2008, 10:36:27 AM »
OK, rename your M6Start.m1s macro to OldM6Start.m1s and then put the following macro in your macro folder for your profile and rename to M6Start.m1s and see if it works.
Hood

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #24 on: May 10, 2008, 11:04:28 AM »
Hood now output  4 comes on but it does not stop rotating the turret

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #25 on: May 10, 2008, 11:07:57 AM »
OK, will have a look later on but at least OutPut 4 is now confirmed to work. Obviously your inputs are not getting seen by the macro so will have a better look to see what its expecting. In the meantime what are your inputs meant to be? are they low or high when not on tool and can you activate them manually to check that they are being seen within Mach (OEM Trigger LEDs on Diags page)

Hood

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #26 on: May 10, 2008, 11:12:21 AM »
hood I see that you have taken one line and switched it Off I presume that the probleme is there."If oldturretpos<>nexttool then"

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #27 on: May 10, 2008, 11:14:13 AM »
Hood where do I see the oemtrigger leds

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #28 on: May 10, 2008, 11:19:42 AM »
Hood if I switch the oem trigger inputs off and i switch the input 1 to4 on I can see my inputs from the turret, it will only change as it gets to the next tool.They are set at active low but i have played with it setting it active high.

Cj

Offline Hood

*
  •  25,835 25,835
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #29 on: May 10, 2008, 02:00:24 PM »
Cj
 as I said I am not the best at VB so maybe I am reading things wrong but this is how I think your turret must work;
 Toolchange is asked for so output 4 is turned on, this rotates the turret until it sees the switches for Tool you have asked for, once they are seen OutPut 4 is switched off and toolchange is complete.
 Is this how it works? Are there any unclamping/clamping mechanisms or brakes? Is the turret meant to move a certain distance after the inputs are seen?
Hood