c# - Read all data from a datablock -


i'm trying read data (strings, ints, bools, etc) datablock using s7.net library.

so far got this:

if (plc.isconnected) {     //read     var ints = plc.read(datatype.datablock, 1, 0, vartype.int, 20);      //error     string error = plc.lasterrorstring;      plc.close(); } 

example: there 200 index/tags/values in datablock, call receive 200 objects within objects (index,name,values), if that's possible.

can me dynamically getting data datablock?


Comments

Popular posts from this blog

neo4j - finding mutual friends in a cypher statement starting with three or more persons -

php - How to remove letter in front of the word laravel -

minify - Minimizing css files -