Welcome, Guest. Please login or register.
Did you miss your activation email?
May 24, 2012, 08:27:06 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  marco or userbutton from brain
Pages: 1   Go Down
Print
Author Topic: marco or userbutton from brain  (Read 1057 times)
0 Members and 1 Guest are viewing this topic.
spunk
Active Member

Offline Offline

Posts: 56


View Profile
« on: July 16, 2009, 05:20:27 AM »

found this but don't really understand...

Set Trigger Macro using “Push User Button” in Brians:

First, you dont put the code in a button, you put it in a macro file. For
example file: m600.m1s
SetMessage( "This is a macro call..")

Then , you have to set that macro to be the default macro call with a call to
SetTriggerMacro( 600 ) at some point in the program, an init string could do
that if the SetTriggerMacro call were in another macro file that is called on
startup.  Then the brain will execute m600 whenever that brain termination code is
called.

someone???
Logged
JHChoppers
Active Member

Offline Offline

Posts: 364



View Profile WWW
« Reply #1 on: November 24, 2010, 02:06:14 PM »

Not sure I understand this either...but I think this is close to what I need.

How do I link an external PoKeys button to Macro Code?  I know how to add buttons onto the Mach3 Screens and link these to macros (ie M1000.m1s, M1001.m1s .... )  So, what is the trick to make an external button run some Macro Code via a Brain?

Thanks,
JH
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Offline Offline

Posts: 1,707


Briceville, TN, USA


View Profile WWW
« Reply #2 on: November 25, 2010, 10:13:39 PM »

see other thread simular topic, here, it is explained in more detail
Logged

Commercial Mach3: Screens (regular and flash), Wizards, Plug-ins, Brains, PLCs, Macros, ATC's, machine build, retrofit and Prototyping
http://sites.google.com/site/volunteerfablab/
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!