示例#1
0
        public void FindEdge(string axis)
        {
            //NOTE: As we are obviously hard coding the resolution, the speed calculations wouldn't work if we ever changed
            //      resolution or if the speed calculations returned a different resolution. I don't forsee doing this, but just be careful in case.
            SendStepResolution(FeedRate.StepResolutions.Half);

            _axisFindingEdgeFor = Settings.GetAxisSettings(axis);

            FeedRate.StepResolutions resolution;
            int slowSpeed = Settings.CalculateStepDelayFromFeedRate(20, out resolution);

            // Back off of the finder by 1/4 inch (maybe this should be a setting too?)
            int backoffSpeed = Settings.CalculateStepDelayFromFeedRate(30, out resolution);
            int backoffSteps = _axisFindingEdgeFor.FullStepsPerInch() * (int)_resolution / 4;

            EnableStepperDrivers(true);
            SendCommand(string.Format("FINDEDGE:{0},{1},{2},{3}", axis, slowSpeed, backoffSteps, backoffSpeed));
            EnableStepperDrivers(false);
        }
示例#2
0
        public ControllerSettings()
        {
            MachineIPAddress = "192.168.0.100";

            XAxis = new AxisSettings();
            YAxis = new AxisSettings();
            ZAxis = new AxisSettings();

            // Default settings, which will be changed in a machine settings window
            FeedRateMaximum        = 50;
            FeedRateManual         = 20;
            FeedRateCuttingDefault = 10;

            XAxis.InvertDirection = true;
            XAxis.StepsPerTurn    = 200;
            XAxis.TurnsPerInch    = 2;

            YAxis.StepsPerTurn = 200;
            YAxis.TurnsPerInch = 2;

            ZAxis.InvertDirection = true;
            ZAxis.StepsPerTurn    = 200;
            ZAxis.TurnsPerInch    = 5;

            ZServoLoadPosition   = 0;
            ZServoTopPosition    = 30;
            ZServoBottomPosition = 45;

            HomeCorner       = BedCorner.BottomRight;
            WorkspaceOffsets = new List <WorkspaceOffset>();

            ActiveWorkingCoordinateSystem = OffsetType.GCodeIdentifiers.G54;
            ActiveToolOffset       = OffsetType.GCodeIdentifiers.T1;
            ToolLengthOffsetActive = false;

            ArcLineSegmentLength = .05;

            GCodeExecSearchPath = @"C:\CreativeDepths\DazCamUI\G-Code programs";

            SectionLabels = new List <SectionLabel>();
        }
示例#3
0
        public ControllerSettings()
        {
            MachineIPAddress = "192.168.0.100";

            XAxis = new AxisSettings();
            YAxis = new AxisSettings();
            ZAxis = new AxisSettings();

            // Default settings, which will be changed in a machine settings window
            FeedRateMaximum = 50;
            FeedRateManual = 20;
            FeedRateCuttingDefault = 10;

            XAxis.InvertDirection = true;
            XAxis.StepsPerTurn = 200;
            XAxis.TurnsPerInch = 2;

            YAxis.StepsPerTurn = 200;
            YAxis.TurnsPerInch = 2;

            ZAxis.InvertDirection = true;
            ZAxis.StepsPerTurn = 200;
            ZAxis.TurnsPerInch = 5;

            ZServoLoadPosition = 0;
            ZServoTopPosition = 30;
            ZServoBottomPosition = 45;

            HomeCorner = BedCorner.BottomRight;
            WorkspaceOffsets = new List<WorkspaceOffset>();

            ActiveWorkingCoordinateSystem = OffsetType.GCodeIdentifiers.G54;
            ActiveToolOffset = OffsetType.GCodeIdentifiers.T1;
            ToolLengthOffsetActive = false;

            ArcLineSegmentLength = .05;

            GCodeExecSearchPath = @"C:\CreativeDepths\DazCamUI\G-Code programs";

            SectionLabels = new List<SectionLabel>();
        }
示例#4
0
文件: Machine.cs 项目: gflerm/DazCAM
        public void FindEdge(string axis)
        {
            //NOTE: As we are obviously hard coding the resolution, the speed calculations wouldn't work if we ever changed
            //      resolution or if the speed calculations returned a different resolution. I don't forsee doing this, but just be careful in case.
            SendStepResolution(FeedRate.StepResolutions.Half);

            _axisFindingEdgeFor = Settings.GetAxisSettings(axis);

            FeedRate.StepResolutions resolution;
            int slowSpeed = Settings.CalculateStepDelayFromFeedRate(20, out resolution);

            // Back off of the finder by 1/4 inch (maybe this should be a setting too?)
            int backoffSpeed = Settings.CalculateStepDelayFromFeedRate(30, out resolution);
            int backoffSteps = _axisFindingEdgeFor.FullStepsPerInch() * (int)_resolution / 4;

            EnableStepperDrivers(true);
            SendCommand(string.Format("FINDEDGE:{0},{1},{2},{3}", axis, slowSpeed, backoffSteps, backoffSpeed));
            EnableStepperDrivers(false);
        }