Esempio n. 1
0
        private void ExO_Click(object sender, EventArgs e)
        {
            if (!m_oKernel.m_bMotionCardInit)
            {
                return;
            }
            var btn = (Button)sender;

            if (btn == m_rBtnExO0)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.GREEN_LAMP, !m_lExO0.Enabled);
            }
            if (btn == m_rBtnExO1)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.RED_LAMP, !m_lExO1.Enabled);
            }
            if (btn == m_rBtnExO2)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.YELLOW_LAMP, !m_lExO2.Enabled);
            }
            if (btn == m_rBtnExO3)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.BUZZOR, !m_lExO3.Enabled);
            }
            if (btn == m_rBtnExO4)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.CLEANING_VACUUM, !m_lExO4.Enabled);
            }
            if (btn == m_rBtnExO5)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.LIFT_CYL, !m_lExO5.Enabled);
            }
            if (btn == m_rBtnExO6)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.BLOCK_CYL, !m_lExO6.Enabled);
            }
            if (btn == m_rBtnExO7)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.FRONT_BLOCK_CYL, !m_lExO7.Enabled);
            }
            if (btn == m_rBtnExO8)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.CAMERA1_LIGHT1, !m_lExO8.Enabled);
            }
            if (btn == m_rBtnExO9)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.CAMERA1_LIGHT2, !m_lExO9.Enabled);
            }
            if (btn == m_rBtnExO10)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.CAMERA2_LIGHT1, !m_lExO10.Enabled);
            }
            if (btn == m_rBtnExO11)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.CAMERA2_LIGHT2, !m_lExO11.Enabled);
            }
            if (btn == m_rBtnExO12)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.ASK_TRAY, !m_lExO12.Enabled);
            }
            if (btn == m_rBtnExO13)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.OUT_TRAY, !m_lExO13.Enabled);
            }
            if (btn == m_rBtnExO14)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.GLUE, !m_lExO14.Enabled);
            }
            if (btn == m_rBtnExO15)
            {
                m_oKernel.SetDoSts(0, (ushort)ENUM_OUTPUT_POINT.PIN_CLAMPING, !m_lExO15.Enabled);
            }
        }