Beispiel #1
0
 private void tmr_Scanner_Tick(object sender, EventArgs e)
 {
     tmr_Scanner.Stop();
     try
     {
         byte[] temp = { };
         PlcCommand.GetPlcRawData(_master, 25, ref temp);
         _data = ModbusTcpHelper.ByteArrayToWordArray(temp);
         MemoryMapping(_data);
         DataUpdated?.Invoke();
     }
     finally
     {
         tmr_Scanner.Start();
     }
 }
Beispiel #2
0
 private void chb_IndicatorLampRed_CheckedChanged(object sender, EventArgs e)
 {
     PlcCommand.DebugIndicatorRed(_master, chb_IndicatorLampRed.CheckState == CheckState.Checked ? 1 : 0);
 }
Beispiel #3
0
 private void PLC_VisibleChanged(object sender, EventArgs e)
 {
     PlcCommand.DebugMode(_master, Visible == false ? 0 : 1);
 }
Beispiel #4
0
 public void SetQuantityProcessable(int value)
 {
     PlcCommand.SetProcessableQty(_master, value);
 }
Beispiel #5
0
 public void SetQuantityReject(int value)
 {
     PlcCommand.SetNgQty(_master, value);
 }
Beispiel #6
0
 public void SetQuantityOutput(int value)
 {
     PlcCommand.SetOutputQty(_master, value);
 }
Beispiel #7
0
 public void SetPoPcState(PopcStates states)
 {
     PlcCommand.SetPoPcState(_master, states);
 }
Beispiel #8
0
 public void ResetSequence()
 {
     PlcCommand.ResetSequence(_master);
 }
Beispiel #9
0
 public void ResetPoPcNewOrderNumber()
 {
     PlcCommand.ResetNewOrderNumber(_master);
 }