Machsupport Forum
Mach Discussion => General Mach Discussion => Topic started 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
-
RC, post your xml profile please.
Brett
-
:)
-
RC, Output 3 is not enabled in the XML you posted.
Brett
-
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
-
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.
-
Also....I can toggle the Pin 1 Active High/Low check-box and the relay operates as it should.
-
RC
Try this
Hood
ActivateSignal(OUTPUT3)
Code"G4 P2"
While IsMoving()
Wend
DeActivateSignal(OUTPUT3)
-
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
-
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