Esempio n. 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            ushort[] Buffer = new ushort[4];
            int      Result;

            Result       = Client.CTRead(77, 4, Buffer);
            label17.Text = "C77 = " + S7.GetCounterAt(Buffer, 0).ToString();
        }
Esempio n. 2
0
 public void TestGetCounterAt(ushort[] buffer, int index, int expected)
 {
     S7.GetCounterAt(buffer, index).ShouldBe(expected);
 }