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(); } }
private void button18_Click(object sender, EventArgs e) { vtab = myConn.ReadValuesWithVarTabFunctions(myValues, PLCTriggerVarTab.EndOfCycle); vtab.RequestData(); timer3.Enabled = true; }
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(); } }