Welcome, Guest. Please login or register.
Did you miss your activation email?
December 02, 2008, 04:05:37 PM

Login with username, password and session length
Search:     Advanced search
* Home Help Search Calendar Links Login Register
+  Machsupport Forum
|-+  Mach Discussion
| |-+  Brains Development
| | |-+  How to run a Brain triggered Macro.........
Pages: 1   Go Down
Print
Author Topic: How to run a Brain triggered Macro.........  (Read 513 times)
0 Members and 1 Guest are viewing this topic.
poppabear
S S SYSTEMS, LLC
Global Moderator
*
Online Online

Posts: 770


Briceville, TN, USA



View Profile WWW
« on: June 25, 2008, 08:18:05 PM »

ok, this is a little convoluted but bear with me.

Make the Macro you want to run with some trigger in Brians.

i.e. 
'M1001.m1s
my code here that the brian triggers to run

Then
Make another Macro file that will set your default Macro trigger file.
i.e.

'M1000.m1s
SetTriggerMacro(1001) 'that is all that is in this one.

Now under config>general in the "Init box", put a M1000
As Mach3 boots up, (or on a reset if you have that ticked)
It will run the M1000 that sets the Default Brain run macro.

Then in Brians:

set up a rung that is some input, nop, Terminate "Push User Button"
i.e.

INPUT1>NOP>Push User Button

When ever that input goes HOT in the brian, it will then trigger the running of the M1001 and what ever code is in it.

Scott
Logged

All things Mach3, Screens, Wizards, Plugins, Brians, complete control solutions for complex machines, Macros, ATC's, any kind of CNC machine build, retrofit or repair.
fer_mayrl
Global Moderator
*
Offline Offline

Posts: 332


View Profile
« Reply #1 on: August 20, 2008, 06:02:18 PM »

Hello Scott,

Can this be done with multiple macros?

What about running multiple macros simultaneously, is this possible?
Regards
Fernando
Logged
Pages: 1   Go Up
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!