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