Home
Downloads
Mach and LazyCam
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
Known Bugs
Resources
Contact Us
Links
CNCZone
German Forum
Italian Forum
Korean Forum
Portugese (Brazil) Forum
Russian Forum (RSK CNCROUTER)
Thai Forum
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 01:31:05 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Select from and to languages
Chinese-simp to English
Chinese-trad to English
English to Chinese-simp
English to Chinese-trad
English to Dutch
English to French
English to German
English to Greek
English to Italian
English to Japanese
English to Korean
English to Portuguese
English to Russian
English to Spanish
Dutch to English
Dutch to French
French to English
French to German
French to Greek
French to Italian
French to Portuguese
French to Dutch
French to Spanish
German to English
German to French
Greek to English
Greek to French
Italian to English
Italian to French
Japanese to English
Korean to English
Portuguese to English
Portuguese to French
Russian to English
Spanish to English
Spanish to French
Machsupport Forum
Mach Discussion
Brains Development
How to run a Brain triggered Macro.........
Pages:
1
Go Down
« previous
next »
Author
Topic: How to run a Brain triggered Macro......... (Read 2252 times)
0 Members and 1 Guest are viewing this topic.
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,690
Briceville, TN, USA
How to run a Brain triggered Macro.........
«
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
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/
fer_mayrl
Global Moderator
Offline
Posts: 450
Re: How to run a Brain triggered Macro.........
«
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
jordie1944
Active Member
Offline
Posts: 6
Re: How to run a Brain triggered Macro.........
«
Reply #2 on:
January 20, 2010, 08:13:21 PM »
Scott
Could you please explain the User Button in the Brain a bit more. I could not find any terminators for User Button.
Also how does the User Button associate with the macro? I would like to run a Zero tool macro from a brain triggered from a modbus or pokeys switch.
Mike
Logged
scottn
License Biatch
Administrator
Offline
Posts: 81
Re: How to run a Brain triggered Macro.........
«
Reply #3 on:
February 06, 2012, 11:51:07 PM »
I'm helping somebody who wants to do the same thing. I could not find any valid termination that had anything to do with a User Button, either, but here is a solution that seems to work with my test setup (your mileage may vary):
Brain:
Input X -> No Op -> OEMTrigger X
OEMTrigger X (Config -> Ports/Pins, Input Signals) was Enabled and Emulated, no actual port/pin or hotkey information configured. The action for OEMTrigger X (Config > System Hotkeys) was configured to be OEM Code 301, which runs the current trigger macro. The trigger macro was setup as Scott said, using a macro in the Init String (ie. M1000 in his example) to SetTriggerMacro() the "working" macro (ie. M1001 in his example)...
I hope that helps,
scott
«
Last Edit: February 06, 2012, 11:53:17 PM by scottn
»
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,690
Briceville, TN, USA
Re: How to run a Brain triggered Macro.........
«
Reply #4 on:
February 07, 2012, 10:57:50 PM »
Hey Guys the is a "Button" called "Execute Button Script" (1034), this is the way that the Brains pushes (fires off), a "Button" that has a macro in it......
see my first post above and follow those directions, when you build the brain, use the above "Button" Terminator called "Execute Button Script"
Scott
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/
stirling
Global Moderator
Offline
Posts: 1,108
UK
Re: How to run a Brain triggered Macro.........
«
Reply #5 on:
February 08, 2012, 07:28:53 AM »
Just a couple of thoughts guys but why would we want to run a macro as a result of an input using a brian? That's what OEM triggers do i.e. input goes active, macro runs - no brainer
. Or was that just an example?
Also - what's to stop a brain running a macro whilst another (or the same) macro is already running - we know that's uber bad for Mach's health.
Sorry - just being devil's advocate.
Ian
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,690
Briceville, TN, USA
Re: How to run a Brain triggered Macro.........
«
Reply #6 on:
February 08, 2012, 09:24:37 PM »
mostly, it was an exercise in how to do it, from a user who wanted to know how to do it using a brain......... so, there it is......
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
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Mach Discussion
-----------------------------
=> General Mach Discussion
=> Mach3 under Vista
=> Quantum
=> Mach SDK plugin questions and answers.
===> Finished Plugins for Download
=> VB and the development of wizards
=> Brains Development
=> Video P*r*o*b*i*n*g
=> Mach Screens
===> Screen designer tips and tutorials
===> Works in progress
===> Finished Screens
===> Flash Screens
===> JetCam screen designer
===> Machscreen Screen Designer
===> CVI MachStdMill (MSM)
=> Feature Requests
=> Non English Forums
===> Italian
===> French
===> Spanish
===> Chinese
===> German
===> Russian
===> Romanian
===> Japanese
===> Vietnamese
=> FAQs
-----------------------------
*****VIDEOS*****
-----------------------------
=> *****VIDEOS*****
-----------------------------
General CNC Chat
-----------------------------
=> Share Your GCode
=> Show"N"Tell ( What you have made with your CNC machine.)
=> Building or Buying a Wood routing table.. Beginnners guide..
=> Show"N"Tell ( Your Machines)
-----------------------------
G-Code, CAD, and CAM
-----------------------------
=> G-Code, CAD, and CAM discussions
=> LazyCam (Beta)
-----------------------------
Third party software and hardware support forums.
-----------------------------
=> LazyTurn
=> GearoticMotion Preliminary testing
=> Tempest Trajectory Planner
=> Contec
=> dspMC/IP motion controller
=> Third party software and hardware support forums.
=> Galil
=> Newfangled Solutions Wizards
=> Mach3 and G-Rex
=> Mesa
=> Modbus
=> NC Pod
=> PoKeys
=> SmoothStepper USB
=> Sieg Machines
=> Promote and discuss your product
-----------------------------
Tangent Corner
-----------------------------
=> Tangent Corner
=> Competitions
=> Polls
=> Bargain Basement
-----------------------------
Support
-----------------------------
=> Downloads
===> XML files
===> Post Processors
===> Macros
===> Tutorials
===> Others
===> Beta Brains
===> Screen Sets
===> Documents
===> MACH TOOL BOX
=> One on one phone support.
=> Forum suggestions and report forum problems.
Loading...