Home
Downloads
Mach3
Plugins
CAM Post Processors
Screensets
Purchase
Support
Forum
Tutorial Videos
Documentation
Yahoo Group
Mach Wiki
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?
May 26, 2012, 05:57:15 PM
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
General Mach Discussion
Mach3, MPG, Brains...wait...is this minus a plus ?
Pages:
1
Go Down
« previous
next »
Author
Topic: Mach3, MPG, Brains...wait...is this minus a plus ? (Read 1519 times)
0 Members and 2 Guests are viewing this topic.
asmodyne
Active Member
Offline
Posts: 3
Mach3, MPG, Brains...wait...is this minus a plus ?
«
on:
August 06, 2010, 05:27:18 PM »
Hi there.
I'm in a little predicament here. Let me be as narrative as concise :
My Mach3 demo runs fine...loading, some G-code, turning the 3-axis motors drive offline to do some tests...
I have this homemade Modbus-RTC m.p.g plugged in, calibrated, activated, and a dedicated brain in Mach3 running... Let's look at it in realtime...(attachment #1/3)
Rotating the knob clockwise : (attachment #2/3)
Then counterclockwise : (attachment #3/3)
Great ! The
MPG1 Count
internal variable is reflecting my mpg's clicks...
BUT : why does the tool/program combo always moves
FORWARD
while in
Shuttle Mode
? Shouldn't I be able to trace back on the toolpath when I turn the MPG knob backwards (and
MPG1 Count
is obviously decrementing)
What setting did I miss for my "MPG1 Count" deltas are always being seen as positive ?
Help ? Someone ? Anybody ? Pretty please ?
mpg_at_zero.gif
(1.83 KB, 826x117 - viewed 131 times.)
mpg_positive.gif
(1.76 KB, 826x122 - viewed 76 times.)
mpg_negative.gif
(2.62 KB, 822x126 - viewed 65 times.)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Mach3, MPG, Brains...wait...is this minus a plus ?
«
Reply #1 on:
August 08, 2010, 07:44:47 AM »
try clicking the Reverse run button in your program control, then turn the MPG backwards in shuttle mode.
BTW: nice job with your brain.
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/
asmodyne
Active Member
Offline
Posts: 3
Re: Mach3, MPG, Brains...wait...is this minus a plus ?
«
Reply #2 on:
August 09, 2010, 06: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.
mpg_with_rev.gif
(3.5 KB, 998x202 - viewed 79 times.)
mpg_with_rev_asserted.gif
(2.1 KB, 897x126 - viewed 54 times.)
Logged
poppabear
S S SYSTEMS, LLC
Global Moderator
Offline
Posts: 1,707
Briceville, TN, USA
Re: Mach3, MPG, Brains...wait...is this minus a plus ?
«
Reply #3 on:
August 12, 2010, 09:50:28 AM »
I had Art send me the source code for the Brains IDE, a loooonnngg while back, I was going to try and fix its interface issues........ but, it is beyond my meger ability!! it is almost completely non-documented, and Art will freely tell you it is torturous logic and programming. I am here to tell you he is NOT kidding......
I have only been programming in C++/MFC for about 2-3 years now, and that really mostly for plugins. I have done some minor apps in C++/MFC, but, I like and use C# much better for Apps!!
I would highly recommend you contact Art, and ask him for the source code, it is his, and I will not send my copy to you since it is his IP (and now Brians), unless Art/Brian specifically ask me to.
Guys like: Klaus, and Ed Bryson are the kinda guys who are at the level of skill needed to tackle something like this as well. Art has been a programmer for 30+ something years, and he can whip out stuff like this, withoug thinking to much about it..........
If you want, read the "Brians Users Guide", I wrote and put in the "Members Docs" Thread, download it, I list MOST of the "Issues" (undocumented features), of Brians and some of the work arounds I have found for it. Shortly after Art completed Brians he left Mach3 and turned it all over to Brian. Since that time, it has remained unchanged, until such time as Brian gets all the other stuff he wants to fix in M3 done........ Brians and Modbus are on the FAR back burner until that time.
So, the best workaround I have found to get around the above, if Brains and VB won't do it for you, Write your self a plugin!!!! They are FAR more stable and fast!!! Yes, the learning curve SUCKS it is worse than when I learned Flash programming, far worse. But, I suspect YOU are a programmer, so it should be nothing for you to pick up.
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/
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
=> HiCON 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.
-----------------------------
Mach4
-----------------------------
=> Mach4 pre-Alpha Testing
Loading...