Hello Guest it is May 01, 2024, 05:43:52 PM

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Ya-Nvr-No

981
Brains Development / Re: formulas in brains
« on: May 08, 2010, 07:21:55 AM »
I did write a brain to move an axis, so I do know that it is possible. I just didn't like the lack of axis control. That is why I was looking for more information on brain variables. Which led me to move on to other alternatives to complete the task.
Ya-Nvr-No

982
Brains Development / Re: formulas in brains
« on: May 08, 2010, 12:59:58 AM »
Just finished getting my C++ plugin working in both B and C axis. Now I can swing the head and it moves the XYZ axis's around the ball tip of the cutter or the center. Now to add functions to drive along vectors. Like to beable to Mill pockets and Drill at compound angles. Cuts down on setups. Guess I'll just figure out how brains work in time.
Thanks  ;)

983
Brains Development / Re: formulas in brains
« on: May 07, 2010, 06:41:22 AM »
 Sorry, ??? I thought we we referring to Brains, were did I led you to think I was needing GCode Parametric variables? I guess maybe because I was just trying to see if there was some universal crock pot of variables that could be seen and utilized. That's why I mentioned the 500 range. I'm new to mach so be gentle. Trying to understand just what all I can do with brains, mine and mach's. ;D Is there a Holy Grail (documentation) on the Brain? I did find your fine article, among others, thank you. But still looking for something on brain variables. Sorry, I'm a resource glutton, love a good Library.
Thanks

984
Brains Development / Re: formulas in brains
« on: May 06, 2010, 04:05:24 PM »
Thanks for the reply
I'm working on a plugin now, I have C axis working, now to get B. I love a good matrix's   :-X

Could you still explain the variables, I'm at a loss for some examples of how to use more than one of them. Are they written to the 500 range?  Kind of was looking for some documentation. But pretty limited from what I found on the NET on variable usage. They speak about using A B C also as variables but can only get A to work.

Thanks again
Craig

985
Brains Development / formulas in brains
« on: May 03, 2010, 03:30:49 PM »
Attempting to write a "brain formula" that uses variables.
By swinging a rotary b & c axis head.

Something like the following:
v0=userdro(1198) 'C axis Swing Radius user inputted
v1=userdro(1199) 'B axis Swing radius tool holder face position
v2=ToolLengthOffset
v3=v0-((cos(c/180*3.1416)*v0) 'calculate the cosine of the C axis angle
v4=(sin(c/180*3.1416)*-v0 'calculate the sine of C
v5=Y Position 'get the current position
v6=X Position
v7=Z Position
v8=v3+v5 'compute for new position
v9=v4+v6
Y Position = v8 'update the dro to the new position
X position = v9
??? 'Now drive to location

I can calculate the positions and pass them the the X and Y positions. The
screen shows the computed value after I move C axis. Seems like I could do this
in all one swing move.
Could someone pass along a reference document how these variables & formulas
work.
I can create a calculated value but cant seem to add or pass them back.
And what correlation is there to Mach3 variables?
DRO(801)=v? or y?
a b c etc... not sure if they are axis's or variables.
Seems like both.
As fast as the brains run they should be able to update positions in real time.
I looked at formulas under Functions Config but they dont seem to do anymore
than let me test the calculations. I am running 3.42.40

My lack of gray matter as I get older. :'(
Thanks for any guidance.

986
General Mach Discussion / Re: Error triggered Art code: 1
« on: April 23, 2010, 07:07:39 AM »
I had read what you did to solve your problem. I too had not added any plugins, I was working on creating screen sets at the time.
Mach3 just failed to start one time, So I was explaining how I tracked down my problem. Thought it might help others. My post was not ment for you, it was just a general post to others who might see this error and freak.

987
General Mach Discussion / Re: Error triggered Art code: 1
« on: April 22, 2010, 10:33:32 PM »
I was having this same issue. Tried creating a new profile but got the same error.
Not real sure where it hung up, I got the splash screen and then the error. Art Code:1
So I started removing unneeded things.
tracked it down to a plugin issue, the ShuttlePro.dll I move it out and no more error.
I put everything else back to where they were.
So have to assume an Art Code:1 is for a plugin load error or some kind of conflict with another plugin.