global SurfaceSpeedCalc_BUT0 = function( current )
{
local PI=3.141592654;
local RPM_Inch=1000;
local RPM_Metric=6400;
local SFM=A.CtrlGet("SurfaceSpeedCalc_DRO0");
local SMM=A.CtrlGet("SurfaceSpeedCalc_DRO4");
local DIA_Inch=A.CtrlGet("SurfaceSpeedCalc_DRO1");
local DIA_Metric=A.CtrlGet("SurfaceSpeedCalc_DRO5");
RPM_Inch = (SFM * 12)/(DIA_Inch * PI);
RPM_Metric = (SMM * 318.057)/DIA_Metric;
SFM = (DIA_Inch * PI * RPM_Inch)/12;
SMM = (DIA_Metric * 0.00314 * RPM_Metric);
local TeethInch=A.CtrlGet("SurfaceSpeedCalc_DRO2");
local FeedToothInch=A.CtrlGet("SurfaceSpeedCalc_DRO3");
local TeethMetric=A.CtrlGet("SurfaceSpeedCalc_DRO6");
local FeedToothMetric=A.CtrlGet("SurfaceSpeedCalc_DRO7");
local FeedRateInch = TeethInch * FeedToothInch * RPM_Inch;
local FeedRateMetric = TeethMetric * FeedToothMetric * RPM_Metric;
A.CtrlSet("SurfaceSpeedCalc_DRO10",FeedRateInch);
A.CtrlSet("SurfaceSpeedCalc_DRO13",FeedRateMetric);
A.CtrlSet("SurfaceSpeedCalc_DRO9",RPM_Inch);
A.CtrlSet("SurfaceSpeedCalc_DRO12",RPM_Metric);
A.CtrlSet("SurfaceSpeedCalc_DRO8",SFM);
A.CtrlSet("SurfaceSpeedCalc_DRO11",SMM);
return;
};
You do not have the required permissions to view the files attached to this post.
Last edited by Amazon [Bot] on Fri Aug 14, 2015 11:19 am, edited 1 time in total.
Auggie Phase 2 is for wizards and scripting,
Auggie Phase 3 is for motion using a pokeys,
and if popular enough,
Auggie Phase 4 is for attachment to any other device thats interested.
Thats the plan..
There is a video tonight on my youtube channel on basic scripting, Ill repost a demo in a few days
that can script.
this does look a lot easier you can read and see where the info comes from, get info from here plus math, do this with it, output G code like this. does not mean I will pick it up in weeks it very close to arduino plus the other code type I use c type stuff.
have you found any good online stuff for this code, monkey what ever art said it was called
There is a referance document that Ill add to the distribution, the lanbguage is very C like, so its great for arduino users, and Im pretty
sure Ill add an arduino hook so you can simply get things like Arduino.GetAnalog(1) so to fill a DRO woudl be
Interface("DRO1").curr = arduino.Analog(3);
Thats the type of syntax it will use. To make Gcode in this type of wizard it is planned for the scripter to never
use a Gcode, you would call GCode.PeckDrill( x, y, depth, pass); Augie will worry about what kind of machine, coordinate
rotation and translation and the post the appropriuate Gcodes for the users machine. The idea is the scripter should
not have to worry about what kind of Gcode, just that is be produced. I want scripters to worry about functionallity,
not syntax..
I realize the difficulty in learning a scripting language, Im going to be attempting some out of the box ideas to get you
to learn with as little effort as possible. We'll see how that works out. It wont be fast, I'm trying to do this right, those of you that
can assist as we go through trials would be highly appreciated.
sounds good art, look`s like it will cover the noobs as well if I can use Arduino type stuff with it like the 32u4 boards the teenys (keyboard and mouse emulation) what I use now it would make it quite easy to make a pendent and have other useful addons.
and to get it nice and simple will be one of the hardest thing you can ever do easy is never easy to do, all the disable products I re engineer take a long time to do, to have it to a point where you can go to a hardware shop to get something that will work for a quick fix`s is quite hard and getting the cost down to make said item very low cost is not fun.
Last edited by DanL on Sun Aug 16, 2015 2:47 am, edited 1 time in total.
global DrillBoltHoleCircle = function(gcode,x,y,z,sAngle,dia,numHoles,feed)
{
//cast any value that needs to be in to a float, just in case they were passed as an integer
x = x.Float(); // the x.Float takes the x value passed in the function and casts it to a float with the same x name
y = y.Float();
z = z.Float();
sAngle = sAngle.Float();
dia = dia.Float();
local Gcode = gcode + feed;
local x_center = x;
local y_center = y;
local StartAngle = sAngle;
local dia = dia;
local numberofholes = numHoles;
local stAngle = (PI / 180) * StartAngle;
local Xangle = cos(stAngle);
local Yangle = sin(stAngle);
local x = x_center + (dia / 2) * Xangle;
local y = y_center + (dia / 2) * Yangle;
local StepAng = (2 * PI) / numberofholes;
for( i = 0; i < numberofholes; i=i+1)
{
x = x_center + (dia / 2) * cos(stAngle + (StepAng * i));
y = y_center + (dia / 2) * sin(stAngle + (StepAng * i));
Gcode = Gcode + " G1 "+ "X"+x + " Y"+y + "\r\n";
}
Gcode = Gcode + " G80";
Interface("BoltCircle_LABEL1").text = Gcode;
return;
};
//("gcode",x,y,z,sangle,dia,numHoles,"feed") ;
DrillBoltHoleCircle("G86",10,1,-1,0,7,5,"F20");
You do not have the required permissions to view the files attached to this post.
nice your leaving nothing for anyone to do well I can under stand that quite well buy the time art does put out augggie there is going to be plenty of examples