public void ReadCycleTime()
        {
            CallForFreshData();

            var rawVar = GetRawVariable("Cycle");
            var varVal = Int32.Parse(rawVar);

            CycleTimeRead?.Invoke(this, new EventArgs <int>(varVal));
        }
        public void ReadCycleTime()
        {
            EnqueueCallOnNetworkStream(nameof(ReadCycleTime), netStream =>
            {
                netStream.WriteByte(0x01);

                var data      = new byte[4];
                var len       = netStream.Read(data, 0, 4);
                var cycleTime = BitConverter.ToInt32(data, 0);
                CycleTimeRead?.Invoke(this, new EventArgs <int>(cycleTime));
            });
        }
Exemple #3
0
 public void ReadCycleTime()
 {
     CycleTimeRead?.Invoke(this, new EventArgs <int>(_cycleTime));
 }