Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public void plc_send(Frame f)
 {
     _plc.send(f);
 }