Hello Guest it is April 17, 2024, 08:22:51 PM

Author Topic: Controlling Mach with Powerpoint? Is this possible?  (Read 20531 times)

0 Members and 1 Guest are viewing this topic.

andrewm

*
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #40 on: May 27, 2011, 02:55:03 PM »
Im not sure how you would do that in VB, Sorry.
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #41 on: May 27, 2011, 02:59:40 PM »
No problem, Thank goodness I don't need that now since I finally got PPT to add the fades in where I need them.
Thanks again.

andrewm

*
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #42 on: May 27, 2011, 03:11:34 PM »
NP, Glad you got it working ^_^
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #43 on: May 30, 2011, 01:46:26 PM »
Thanks again for all your help!  Here's a video I made of the macro in action.

http://www.youtube.com/watch?v=Kc0pd-WNfqI
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #44 on: May 30, 2011, 07:20:30 PM »
Andrew, I have a question:  Right now, when I run the macro, the machine moves at the start of (before) the first slide. Is there a way to start the Zmovement "after" the first slide? The first slide needs to be shown when Z is still at zero(Const ZStartPoint) then I need it to do the first move before the second slide, then continue as is. How can we edit the macro to do this?  Thanks.
Jon

Offline BR549

*
  •  6,965 6,965
    • View Profile
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #45 on: May 30, 2011, 09:57:53 PM »
Not Andrew but you may want to try it this way.



For s=1 To numSlides

 objPresentation.SlideShowWindow.View.GotoSlide (s) 'show the next slide
  sleep exposureTime

  Code "G1 Z" & ZIncrement + ZIncrement 'lift Z a couple of tads
  While IsMoving()
    sleep 10
  Wend
  Code "G1 Z-" & ZIncrement 'lower Z a tad
  While IsMoving()
    sleep 10
  Wend

NEXT

Just a thought (;-) TP
 
« Last Edit: May 30, 2011, 09:59:33 PM by BR549 »
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #46 on: May 30, 2011, 11:05:58 PM »
Thanks TP, That did the trick!
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #47 on: June 09, 2011, 05:12:18 PM »
BR549

Why the  Code "G4 P2" was omited in your last reply (#45)? That is no longer necessary?  ???
What is the final version of the macro?

Thanks for sharing, this is really amazing.

Regards,




For s=1 To numSlides

 objPresentation.SlideShowWindow.View.GotoSlide (s) 'show the next slide
  sleep exposureTime

  Code "G1 Z" & ZIncrement + ZIncrement 'lift Z a couple of tads
  While IsMoving()
    sleep 10
  Wend
  Code "G1 Z-" & ZIncrement 'lower Z a tad
Code "G4 P2"  
While IsMoving()
    sleep 10
  Wend

NEXT
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #48 on: June 10, 2011, 12:05:55 AM »
The final configuration is this:

For s=1 To numSlides
  Code "G1 Z" & ZIncrement + ZIncrement 'lift Z a couple of tads
  Code "G4 P2"
  While IsMoving()
    sleep 10
  Wend
  Code "G1 Z-" & ZIncrement 'lower Z a tad
  While IsMoving()
    sleep 10
  Wend

The G4 is not really necessary, it just gives a slight delay between the moves. I will know if it needs to be there or not once I start experimenting.
Re: Controlling Mach with Powerpoint? Is this possible?
« Reply #49 on: November 10, 2011, 01:42:11 PM »
Hello,

Would be possible edit the macro in order to activate & sync a second axis (..X or Y..) during the time when the screen is black (...machine moves up, pauses, then moves back down)...?
This is for a tilti-action system that I try to implement.

How can I edit the macro to do this?   

Any help will be greatfully appreciated.