Ejemplo n.º 1
0
        /// <summary>
        /// 更新轴限位、原点状态
        /// </summary>
        private void UpdateAxisLimitHomeSts()
        {
            m_labelXPosLimit.Enabled = m_oKernel.GetAxisPosLimitSts(0, CKernel.ENUM_AXIS_TYPE.X_AXIS);
            m_labelYPosLimit.Enabled = m_oKernel.GetAxisPosLimitSts(0, CKernel.ENUM_AXIS_TYPE.Y_AXIS);
            m_labelZPosLimit.Enabled = m_oKernel.GetAxisPosLimitSts(0, CKernel.ENUM_AXIS_TYPE.Z_AXIS);

            m_labelXNegLimit.Enabled = m_oKernel.GetAxisNegLimitSts(0, CKernel.ENUM_AXIS_TYPE.X_AXIS);
            m_labelYNegLimit.Enabled = m_oKernel.GetAxisNegLimitSts(0, CKernel.ENUM_AXIS_TYPE.Y_AXIS);
            m_labelZNegLimit.Enabled = m_oKernel.GetAxisNegLimitSts(0, CKernel.ENUM_AXIS_TYPE.Z_AXIS);

            m_labelXHome.Enabled = !m_oKernel.GetAxisHomeLimitSts(0, CKernel.ENUM_AXIS_TYPE.X_AXIS);
            m_labelYHome.Enabled = !m_oKernel.GetAxisHomeLimitSts(0, CKernel.ENUM_AXIS_TYPE.Y_AXIS);
            m_labelZHome.Enabled = !m_oKernel.GetAxisHomeLimitSts(0, CKernel.ENUM_AXIS_TYPE.Z_AXIS);
        }