1
General Mach Discussion / Re: Mach3, MPG, Brains...wait...is this minus a plus ?
« on: August 09, 2010, 07:53:52 AM »That's riiiight poppabear ! You've made me realize I can use a workaround here !! Thanks !
By making the output of my first lobe an absolute value... then adding a lobe which will make a boolean value the sign of the original MPG's count, I can turn on/off the "Reverse run" button with its OEM command code !
Lemme see ... it would be like : (attachment #1)
Problem is...this only applies while using the MPG's "Shuttle Mode"... I fear the brain shown up here may activate the Reverse Run output even in "Jog" mode. So, by simplifying the "Reverse Run" lobe and adding a boolean AND operator with LED #106 ("Shuttle Mode in use"), I can deduce this : (attachment #2)
Moreover, I'd say I SHOULD take care of the distinct MPG Jog modes (Continuous, Step, MPG) in this brain graph... This would allow me to Jog back and forth in Continuous or Step Jog Mode (the previous brain graph only applies to "MPG" Jog, with Shuttle Mode active).
But this will lead me to a horrible brain graph, with a tremendous input entropy, calculating the VERY SAME values multiple times, forcing me to use local variables in a asynchronous manner...
Darn ! I don't even KNOW if Mach3 brains are executed sequentially !!! Inputs and Outputs could be totally out-of-synch ! This could jam my machine's gantry and lead to total mayhem ! It already hear the sound of drill bits shattering !
*sob*
I wish I had a complete doc about .brn files (brain files). I need to write them by hand, I'd wanna create a brand new "Brain IDE" for Mach3 ! Mach3Lobe.exe sucks a bit... *sob*
But I don't think I can find anything in Mach3's SDK about it.