private void RisingThread() { while (true) { Thread.Sleep(1); if (bCheck) { risingQuene.Enqueue(actionInput.GetInputBit(iInputNo)); if (!risingQuene.FirstOrDefault() && risingQuene.LastOrDefault()) { bCheck = false; bRisingEdge = true; } } } }
public bool GetOn() { try { if (inputData.Ignore) { return(true); } if (bready == false) { return(false); } return(inputData.Inversion ? !actionInput.GetInputBit(inputData.Index) : actionInput.GetInputBit(inputData.Index)); } catch (Exception) { } return(false); }