Hello Guest it is July 06, 2020, 11:42:23 PM

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

0 Members and 1 Guest are viewing this topic.

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #40 on: May 10, 2008, 04:28:18 PM »
Hood can it be because my inpus is not in seqence.

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #41 on: May 10, 2008, 04:31:49 PM »
When Graham emailed me the macro my inputs were wired differentto what the macro was He uses pin 10,11,12,13 I use 13,15,11,12.

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #42 on: May 10, 2008, 04:35:27 PM »
If I use the inputs like his macro my feedback is defferent to his in other words my hardwirring is different to his.That is why I use those inputs.

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #43 on: May 10, 2008, 04:41:26 PM »
Pin numbers wont make a difference as long as the macro is looking at the same OEM Triggers.
 I am messing with some VB and so far it looks promising but I will do the rest before I post it for you to try, might take me a while but you never know, I am getting better :D

Hood

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #44 on: May 10, 2008, 06:10:46 PM »
Cj
 try this, usual precautions apply as I am an idiot so things may go wrong ;)

Hood
« Last Edit: May 10, 2008, 06:55:54 PM by Hood »

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #45 on: May 10, 2008, 06:14:05 PM »
Oh meant to say I have the macro set for Inputs rather than Triggers as I could see the LEDs on the standard lathe screen. You will need to set it up as inputs, either that or let me know and I will change the macro to look at the OEM Triggers if you wish.
Hood

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #46 on: May 11, 2008, 02:21:21 AM »
Hood this macro is working fine . Thank you for it. I will now be playing with my machine.Enjoy your day

CJ

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #47 on: May 11, 2008, 04:30:25 AM »
Glad to hear that CJ.
 I had a look at the macro late last night and noticed I had it set to give an error message if the tool called for was greater than 12, you might want to change that to 8. The reason I had 12 there is I wrote one for Panaceabeachbum a while back and I copied the first few lines from his to save me typing them out, forgot however to change it from 12 to 8 :(
 Grahams macro is much more elegant in the way it does things and looking at it I just cant see why it doesnt work, hopefully Graham will see this and chime in.
Hood

Offline CJEls

*
  •  69 69
    • View Profile
Re: Running macro and testing them
« Reply #48 on: May 11, 2008, 07:17:42 AM »
Hood where can I get some info on vb programing. I think i saw someting in the mach  site.

Offline Hood

*
  •  25,846 25,846
  • Carnoustie, Scotland
    • View Profile
Re: Running macro and testing them
« Reply #49 on: May 11, 2008, 07:28:56 AM »
I dont really know, there are a few things posted in the wikis and I think I once saw something on the downloads page but I have never been able to make anything of them, just trial and error for me, thats why it takes me so long to do things :D
Hood