コード例 #1
0
        public void Clear()
        {
            _fileName       = _mdiCommand = string.Empty;
            _streamingState = StreamingState.NoFile;
            _isMPos         = _reset = _isJobRunning = false;
            _mpg            = "";

            _grblState.Error    = 0;
            _grblState.State    = GrblStates.Unknown;
            _grblState.Substate = 0;
            _grblState.MPG      = false;
            GrblState           = _grblState;
            IsMPGActive         = null; //??

            _MPos = _WPos = _wco = string.Empty;
            Position.Clear();
            MachinePosition.Clear();
            WorkPosition.Clear();
            WorkPositionOffset.Clear();
            ProgramLimits.Clear();

            Set("Pn", string.Empty);
            Set("A", string.Empty);
            Set("FS", string.Empty);
            Set("Sc", string.Empty);
            Set("T", "0");
            Set("Ov", string.Empty);
            Set("Ex", string.Empty);
            SDCardStatus = string.Empty;
            HomedState   = HomedState.Unknown;
            if (_latheMode != LatheMode.Disabled)
            {
                LatheMode = LatheMode.Radius;
            }
        }
コード例 #2
0
        public void Clear()
        {
            _fileName       = _mdiCommand = string.Empty;
            _streamingState = StreamingState.NoFile;
            _isMPos         = _reset = _isJobRunning = _isProbeSuccess = _pgmEnd = _isTloRefSet = false;
            _canReset       = true;
            _pb_avail       = _rxb_avail = string.Empty;
            _mpg            = null;
            _line           = _pwm = _scrollpos = 0;

            _grblState.Error    = 0;
            _grblState.State    = GrblStates.Unknown;
            _grblState.Substate = 0;
            _grblState.MPG      = false;
            GrblState           = _grblState;
            IsMPGActive         = null; //??

            has_wco = false;
            _MPos   = _WPos = _wco = _h = string.Empty;
            Position.Clear();
            MachinePosition.Clear();
            WorkPosition.Clear();
            WorkPositionOffset.Clear();
            ProgramLimits.Clear();

            Set("Pn", string.Empty);
            Set("A", string.Empty);
            Set("FS", string.Empty);
            Set("Sc", string.Empty);
            Set("T", "0");
            Set("Ov", string.Empty);
            Set("Ex", string.Empty);
            SDCardStatus = string.Empty;
            HomedState   = HomedState.Unknown;
            if (_latheMode != LatheMode.Disabled)
            {
                LatheMode = LatheMode.Radius;
            }

            _thcv = _thcs = string.Empty;
        }