예제 #1
0
파일: Program.cs 프로젝트: ism41L/Logix.Net
 static void processor_KeySwitchChanged(LogixProcessor sender, LogixKeyChangedEventArgs e)
 {
     //This function will be called when the key switch changes position. The key switch is on the front of
     //the processor and can either be in Run, Program or Remote mode. There is an additional member of the
     //ProcessorKeySwitch enumeration called "Unknown" which is used when the value hasn't been read yet or
     //can't be obtained.
     Console.WriteLine("Processor Key Position Changed from " + e.OldPosition.ToString() + " to " + e.NewPosition.ToString());
 }
예제 #2
0
 static void processor_KeySwitchChanged(LogixProcessor sender, LogixKeyChangedEventArgs e)
 {
     //This function will be called when the key switch changes position. The key switch is on the front of
     //the processor and can either be in Run, Program or Remote mode. There is an additional member of the
     //ProcessorKeySwitch enumeration called "Unknown" which is used when the value hasn't been read yet or
     //can't be obtained.
     Console.WriteLine("Processor Key Position Changed from " + e.OldPosition.ToString() + " to " + e.NewPosition.ToString());
 }