Example #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();
     }
 }
Example #2
0
 private void chb_IndicatorLampRed_CheckedChanged(object sender, EventArgs e)
 {
     PlcCommand.DebugIndicatorRed(_master, chb_IndicatorLampRed.CheckState == CheckState.Checked ? 1 : 0);
 }
Example #3
0
 private void PLC_VisibleChanged(object sender, EventArgs e)
 {
     PlcCommand.DebugMode(_master, Visible == false ? 0 : 1);
 }
Example #4
0
 public void SetQuantityProcessable(int value)
 {
     PlcCommand.SetProcessableQty(_master, value);
 }
Example #5
0
 public void SetQuantityReject(int value)
 {
     PlcCommand.SetNgQty(_master, value);
 }
Example #6
0
 public void SetQuantityOutput(int value)
 {
     PlcCommand.SetOutputQty(_master, value);
 }
Example #7
0
 public void SetPoPcState(PopcStates states)
 {
     PlcCommand.SetPoPcState(_master, states);
 }
Example #8
0
 public void ResetSequence()
 {
     PlcCommand.ResetSequence(_master);
 }
Example #9
0
 public void ResetPoPcNewOrderNumber()
 {
     PlcCommand.ResetNewOrderNumber(_master);
 }