Example #1
0
 private void btnGetPLCStatus_Click(object sender, EventArgs e)
 {
     try
     {
         PLCMode result = objFatekCommunication.GetPLCStatus(1);
         txtResult.AppendText(string.Format("PLC MODE: {0} \r\n", result));
         txtResult.AppendText(Environment.NewLine);
         txtResult.ScrollToCaret();
     }
     catch (Exception ex)
     {
         MessageBox.Show(this, ex.Message, "ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }