Example #1
0
 private void BtnLampRedOn_Click(object sender, EventArgs e)
 {
     m_ArmControler.SetArmControlBoardIo(Board.Controler, ARM_OutputPoint.IO_OUT_LedRed, IOValue.IOValueHigh);
 }
Example #2
0
        public static void SetSysAlarmTowerLed(AlarmLed LedType)
        {
            switch (LedType)
            {
            case AlarmLed.AlarmLed_Green:
            {
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedGreen, IOValue.IOValueHigh);
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedOriange, IOValue.IOValueLow);
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedRed, IOValue.IOValueLow);
            }
            break;

            case AlarmLed.AlarmLed_Oriange:
            {
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedGreen, IOValue.IOValueLow);
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedOriange, IOValue.IOValueHigh);
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedRed, IOValue.IOValueLow);
            }
            break;

            case AlarmLed.AlarmLed_Red:
            {
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedGreen, IOValue.IOValueLow);
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedOriange, IOValue.IOValueLow);
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedRed, IOValue.IOValueHigh);
            }
            break;

            case AlarmLed.AlarmLed_OriangeAndRed:
            {
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedGreen, IOValue.IOValueLow);
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedOriange, IOValue.IOValueHigh);
                m_ArmControler.SetArmControlBoardIo(Board.Conveyor_Empty, ARM_OutputPoint.IO_OUT_LedRed, IOValue.IOValueHigh);
            }
            break;

            default:
                break;
            }
        }