Exemple #1
0
 public void plc_send_IO(DataIOType diot)
 {
     if (_plc != null)
     {
         Frame f = new Frame(_plc.getClient(), new Int16[] { Index, (Int16)diot });
         f.SetHeaderFlag(FrameHeaderFlag.PdataIO);
         _plc.send(f);
     }
 }
Exemple #2
0
 private void UpdateGui_tick(object sender, EventArgs e)
 {
     if (_plc.getClient() != null)
     {
         label_CpsStatus.Text = _plc.getClient().GetStatus();
     }
     label_plc_time.Text                  = _plc.clockPlc.ToString();
     label_time_difference.Text           = _plc.clockPlcJitter.ToString(@"d\T\ hh\:mm\:ss\.fff");
     label_display_reconnect_counter.Text = _plc.reconnect_counter.ToString();
 }