Machsupport Forum

Mach Discussion => General Mach Discussion => Topic started by: Overloaded on August 20, 2008, 09:46:28 AM

Title: TURN Macro Need Help
Post by: Overloaded on August 20, 2008, 09:46:28 AM
:)
Little Macro, M778

ActivateSignal(OUTPUT3)
Code"G4 P2"
DeActivateSignal(OUTPUT3)

OUTPUT3 Enabled, Port 1, Pin 1, Active High    (PMDX 122 on-board relay)

Step through in the Editor screen and it works fine,
MDI M778, get nothing except the DWELL LED comes on for the duration of the G4.

Thanks for any HELP,
RC
Title: Re: TURN Macro Need Help
Post by: Chaoticone on August 20, 2008, 10:11:38 AM
RC, post your xml profile please.

Brett
Title: Re: TURN Macro Need Help
Post by: Overloaded on August 20, 2008, 10:25:28 AM
 :)
Title: Re: TURN Macro Need Help
Post by: Chaoticone on August 20, 2008, 10:45:30 AM
RC, Output 3 is not enabled in the XML you posted.

Brett
Title: Re: TURN Macro Need Help
Post by: Overloaded on August 20, 2008, 10:48:57 AM
Hmmmm...I'll go out and check again...but I would have sworn it was.
My home PC blew up, I'm temp. on an antique laptop.
Be Right Back,
Thanks Brett
Title: Re: TURN Macro Need Help
Post by: Overloaded on August 20, 2008, 11:03:04 AM
Ahhh....Brett, I had 3 temporarily disabled while enabling the A axis dir pin to operate a relay instead.
3 is enabled now but still, MDI M778 is as mentioned before. Step through the editor ... it works..but not with MDI.
Title: Re: TURN Macro Need Help
Post by: Overloaded on August 20, 2008, 11:05:32 AM
Also....I can toggle the Pin 1 Active High/Low check-box and the relay operates as it should.
Title: Re: TURN Macro Need Help
Post by: Hood on August 20, 2008, 11:05:45 AM
RC
Try this

Hood


ActivateSignal(OUTPUT3)
Code"G4 P2"
While IsMoving()
Wend
DeActivateSignal(OUTPUT3)
Title: Re: TURN Macro Need Help
Post by: Overloaded on August 20, 2008, 12:35:05 PM
Hood, what you suggested works....but not at first.
Only after restarting Mach.  weird  Should one have to restart for a macro to work ?
Mach was also stuck as I could not open another GCode file.
After restart, all is GOOD.
Thanks a bunch guys,
RC
Title: Re: TURN Macro Need Help
Post by: Hood on August 20, 2008, 01:40:05 PM
No should work after its been written and saved but then again this is computers we are talking about ;)
 Actually sounds like your VB was caught in a loop and the restart killed it.

Hood