示例#1
0
            protected override void InitChannelList()
            {
                DIChannels.Add("MainPressure", new DIChannelDef("MainPressure", "E 0.0", m_CardDef430_1, 0));
                DIChannels.Add("ReducedPressure", new DIChannelDef("ReducedPressure", "E 0.1", m_CardDef430_1, 1));
                DIChannels.Add("ELOG", new DIChannelDef("ELOG", "E 0.2", m_CardDef430_1, 2));
                DIChannels.Add("ServiceDoor", new DIChannelDef("ServiceDoor", "E 0.3", m_CardDef430_1, 3));
                DIChannels.Add("PNOZOK", new DIChannelDef("PNOZOK", "E 0.4", m_CardDef430_1, 4));
                DIChannels.Add("Bereichsventil", new DIChannelDef("Bereichsventil", "E 0.5", m_CardDef430_1, 5));
                DIChannels.Add("StartIOButton", new DIChannelDef("StartIOButton", "E 0.6", m_CardDef430_1, 6));
                DIChannels.Add("StoppNIOButton", new DIChannelDef("StoppNIOButton", "E 0.7", m_CardDef430_1, 7));
                DIChannels.Add("MainPressure_2", new DIChannelDef("MainPressure_2", "E 2.0", m_CardDef430_3, 0));
                DIChannels.Add("ReducedPressure_2", new DIChannelDef("ReducedPressure_2", "E 2.1", m_CardDef430_3, 1));
                DIChannels.Add("ELOG_2", new DIChannelDef("ELOG_2", "E 2.2", m_CardDef430_3, 2));
                DIChannels.Add("ServiceDoor_2", new DIChannelDef("ServiceDoor_2", "E 2.3", m_CardDef430_3, 3));
                DIChannels.Add("PNOZOK_2", new DIChannelDef("PNOZOK_2", "E 2.4", m_CardDef430_3, 4));
                DIChannels.Add("Bereichsventil_2", new DIChannelDef("Bereichsventil_2", "E 2.5", m_CardDef430_3, 5));
                DIChannels.Add("StartIOButton_2", new DIChannelDef("StartIOButton_2", "E 2.6", m_CardDef430_3, 6));
                DIChannels.Add("StoppNIOButton_2", new DIChannelDef("StoppNIOButton_2", "E 2.7", m_CardDef430_3, 7));


                AIChannels.Add("AI30", new AIChannelDef("AI30", "E 3.0", m_CardDef479_4, 0));
                AIChannels.Add("AI31", new AIChannelDef("AI31", "E 3.1", m_CardDef479_4, 1));
                AIChannels.Add("AI40", new AIChannelDef("AI40", "E 4.0", m_CardDef468_5, 0));
                AIChannels.Add("AI41", new AIChannelDef("AI41", "E 4.1", m_CardDef468_5, 1));
                AIChannels.Add("AI42", new AIChannelDef("AI42", "E 4.2", m_CardDef468_5, 2));
                AIChannels.Add("AI43", new AIChannelDef("AI43", "E 4.3", m_CardDef468_5, 3));

                AOChannels.Add("PWM0", new AOChannelDef("PWM0", "A 1.0", m_CardDef511_2, 0));
                AOChannels.Add("PWM1", new AOChannelDef("PWM1", "A 1.1", m_CardDef511_2, 1));
                AOChannels.Add("AO0", new AOChannelDef("AO0", "A 5.0", m_CardDef550_6, 0));
                AOChannels.Add("AO1", new AOChannelDef("AO1", "A 5.1", m_CardDef550_6, 1));
            }
示例#2
0
            protected override void InitChannelList()
            {
                int Slot = 0;

                m_CardDef842_0 = new CardDef842(Slot);
                ProjectCards.AddCard(Slot++, CardDef842_0);
                m_CardDef430_1 = new CardDef430(Slot);
                ProjectCards.AddCard(Slot++, CardDef430_1);
                m_CardDef511_2 = new CardDef511(Slot);
                ProjectCards.AddCard(Slot++, CardDef511_2);
                m_CardDef430_3 = new CardDef430(Slot);
                ProjectCards.AddCard(Slot++, CardDef430_3);
                m_CardDef479_4 = new CardDef479(Slot);
                ProjectCards.AddCard(Slot++, CardDef479_4);
                m_CardDef468_5 = new CardDef468(Slot);
                ProjectCards.AddCard(Slot++, CardDef468_5);
                m_CardDef550_6 = new CardDef550(Slot);
                ProjectCards.AddCard(Slot++, CardDef550_6);
                DIChannels.Add("MainPressure", new DIChannelDef("MainPressure", "E 0.0", m_CardDef430_1, 0));
                DIChannels.Add("ReducedPressure", new DIChannelDef("ReducedPressure", "E 0.1", m_CardDef430_1, 1));
                DIChannels.Add("ELOG", new DIChannelDef("ELOG", "E 0.2", m_CardDef430_1, 2));
                DIChannels.Add("ServiceDoor", new DIChannelDef("ServiceDoor", "E 0.3", m_CardDef430_1, 3));
                DIChannels.Add("PNOZOK", new DIChannelDef("PNOZOK", "E 0.4", m_CardDef430_1, 4));
                DIChannels.Add("Bereichsventil", new DIChannelDef("Bereichsventil", "E 0.5", m_CardDef430_1, 5));
                DIChannels.Add("StartIOButton", new DIChannelDef("StartIOButton", "E 0.6", m_CardDef430_1, 6));
                DIChannels.Add("StoppNIOButton", new DIChannelDef("StoppNIOButton", "E 0.7", m_CardDef430_1, 7));
                DIChannels.Add("MainPressure_2", new DIChannelDef("MainPressure_2", "E 2.0", m_CardDef430_3, 0));
                DIChannels.Add("ReducedPressure_2", new DIChannelDef("ReducedPressure_2", "E 2.1", m_CardDef430_3, 1));
                DIChannels.Add("ELOG_2", new DIChannelDef("ELOG_2", "E 2.2", m_CardDef430_3, 2));
                DIChannels.Add("ServiceDoor_2", new DIChannelDef("ServiceDoor_2", "E 2.3", m_CardDef430_3, 3));
                DIChannels.Add("PNOZOK_2", new DIChannelDef("PNOZOK_2", "E 2.4", m_CardDef430_3, 4));
                DIChannels.Add("Bereichsventil_2", new DIChannelDef("Bereichsventil_2", "E 2.5", m_CardDef430_3, 5));
                DIChannels.Add("StartIOButton_2", new DIChannelDef("StartIOButton_2", "E 2.6", m_CardDef430_3, 6));
                DIChannels.Add("StoppNIOButton_2", new DIChannelDef("StoppNIOButton_2", "E 2.7", m_CardDef430_3, 7));


                AIChannels.Add("AI30", new AIChannelDef("AI30", "E 3.0", m_CardDef479_4, 0));
                AIChannels.Add("AI31", new AIChannelDef("AI31", "E 3.1", m_CardDef479_4, 1));
                AIChannels.Add("AI40", new AIChannelDef("AI40", "E 4.0", m_CardDef468_5, 0));
                AIChannels.Add("AI41", new AIChannelDef("AI41", "E 4.1", m_CardDef468_5, 1));
                AIChannels.Add("AI42", new AIChannelDef("AI42", "E 4.2", m_CardDef468_5, 2));
                AIChannels.Add("AI43", new AIChannelDef("AI43", "E 4.3", m_CardDef468_5, 3));

                AOChannels.Add("PWM0", new AOChannelDef("PWM0", "A 1.0", m_CardDef511_2, 0));
                AOChannels.Add("PWM1", new AOChannelDef("PWM1", "A 1.1", m_CardDef511_2, 1));
                AOChannels.Add("AO0", new AOChannelDef("AO0", "A 5.0", m_CardDef550_6, 0));
                AOChannels.Add("AO1", new AOChannelDef("AO1", "A 5.1", m_CardDef550_6, 1));
            }