private void button_setTime_Click(object sender, EventArgs e) { DateTime TimeNow = DateTime.Now; Frame f = new Frame(_plc.getClient(), new Int16[] { (Int16)DataMngType.SetPlcTime, (Int16)TimeNow.Year, (Int16)TimeNow.Month, (Int16)TimeNow.Day, (Int16)TimeNow.Hour, (Int16)TimeNow.Minute, (Int16)TimeNow.Second }); f.SetHeaderFlag(FrameHeaderFlag.MngData); _plc.send(f); }
public void plc_send(Frame f) { _plc.send(f); }