コード例 #1
0
        private void ReadPlcTagsFromConnection(PLCConnection conn)
        {
            var values = from rw in varTabRows
                         where rw.Connection == conn && rw.LibNoDaveValue != null
                         select rw.LibNoDaveValue;

            if (ReadTagsConfig == 0)
            {
                conn.ReadValues(values);
            }
            else
            {
                var rq = conn.ReadValuesWithVarTabFunctions(values, (PLCTriggerVarTab)ReadTagsConfig + 1);
                rq.RequestData();
            }
        }
コード例 #2
0
ファイル: Form1.cs プロジェクト: pwndubey77/s7-diff-merge
 private void button18_Click(object sender, EventArgs e)
 {
     vtab = myConn.ReadValuesWithVarTabFunctions(myValues, PLCTriggerVarTab.EndOfCycle);
     vtab.RequestData();
     timer3.Enabled = true;
 }
コード例 #3
0
        private void ReadPlcTagsFromConnection(PLCConnection conn)
        {
            var values = from rw in varTabRows
                         where rw.Connection == conn && rw.LibNoDaveValue != null
                         select rw.LibNoDaveValue;

            if (ReadTagsConfig == 0)
                conn.ReadValues(values);
            else
            {
                var rq = conn.ReadValuesWithVarTabFunctions(values, (PLCTriggerVarTab) ReadTagsConfig + 1);
                rq.RequestData();
            }
        }