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_CardDef430_2 = new CardDef430(Slot); ProjectCards.AddCard(Slot++, CardDef430_2); m_CardDef530_1 = new CardDef530(Slot); ProjectCards.AddCard(Slot++, CardDef530_1); DOChannels.Add("PCReady", new DOChannelDef("PCReady", "A01", m_CardDef530_1, 0)); DOChannels.Add("Pass", new DOChannelDef("Pass", "A02", m_CardDef530_1, 1)); DOChannels.Add("Fail", new DOChannelDef("Fail", "A03", m_CardDef530_1, 2)); DOChannels.Add("SledgeToWP", new DOChannelDef("SledgeToWP", "A04", m_CardDef530_1, 3)); DOChannels.Add("IndexToWP", new DOChannelDef("IndexToWP", "A05", m_CardDef530_1, 4)); DOChannels.Add("CloseGripper", new DOChannelDef("CloseGripper", "A06", m_CardDef530_1, 5)); DIChannels.Add("MainPressureReady", new DIChannelDef("MainPressureReady", "E01", m_CardDef430_1, 0)); DIChannels.Add("Start", new DIChannelDef("Start", "E02", m_CardDef430_1, 1)); DIChannels.Add("Stop", new DIChannelDef("Stop", "E03", m_CardDef430_1, 2)); DIChannels.Add("SledgeInHP", new DIChannelDef("SledgeInHP", "E04", m_CardDef430_1, 3)); DIChannels.Add("SledgeInWP", new DIChannelDef("SledgeInWP", "E05", m_CardDef430_1, 4)); DIChannels.Add("IndexInHP", new DIChannelDef("IndexInHP", "E06", m_CardDef430_1, 5)); DIChannels.Add("IndexInWP", new DIChannelDef("IndexInWP", "E07", m_CardDef430_1, 6)); DIChannels.Add("GripperInHP", new DIChannelDef("GripperInHP", "E01", m_CardDef430_2, 0)); DIChannels.Add("GripperInWP", new DIChannelDef("GripperInWP", "E02", m_CardDef430_2, 1)); DIChannels.Add("PartInserted", new DIChannelDef("PartInserted", "E03", m_CardDef430_2, 2)); }
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)); }
protected override void InitChannelList() { CardDef841 Card481 = new CardDef841(0); CardDef530 Card530 = new CardDef530(1); CardDef430 Card430 = new CardDef430(2); ProjectCards.AddCard(0, Card481); ProjectCards.AddCard(1, Card530); ProjectCards.AddCard(2, Card430); //create channel collection for easier management DOChannels.Add("PCReady", new DOChannelDef("PCReady", "", Card530, 0)); DOChannels.Add("Pass", new DOChannelDef("Pass", "", Card530, 1)); DOChannels.Add("Fail", new DOChannelDef("Fail", "", Card530, 2)); DOChannels.Add("SledgeToWP", new DOChannelDef("SledgeToWP", "", Card530, 3)); DOChannels.Add("IndexToWP", new DOChannelDef("IndexToWP", "", Card530, 4)); DIChannels.Add("MainPressureReady", new DIChannelDef("MainPressureReady", "", Card430, 0)); DIChannels.Add("Start", new DIChannelDef("Start", "", Card430, 1)); DIChannels.Add("Stop", new DIChannelDef("Stop", "", Card430, 2)); DIChannels.Add("SledgeInHP", new DIChannelDef("SledgeInHP", "", Card430, 3)); DIChannels.Add("SledgeInWP", new DIChannelDef("SledgeInWP", "", Card430, 4)); DIChannels.Add("IndexInHP", new DIChannelDef("IndexInHP", "", Card430, 5)); DIChannels.Add("IndexInWP", new DIChannelDef("IndexInWP", "", Card430, 6)); }
public virtual void Configure() { // This code was generated by Measurement Studio. Changes to this // file may cause incorrect behavior and will be lost if the code // is regenerated. DIChannel ch = DIChannels.CreateChannel("Dev1/port1", "DigitalIn", ChannelLineGrouping.OneChannelForAllLines); }
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)); }