S7NetPlus / s7netplus

S7.NET+ -- A .NET library to connect to Siemens Step7 devices
MIT License
1.3k stars 581 forks source link

Browse tag list, determine type #426

Closed vernturbine closed 2 years ago

vernturbine commented 2 years ago

Hello,

Is there any way to browse the PLC variables and/or to determine the data type of a variable?

Thanks, Vern

mycroes commented 2 years ago

AFAIK there isn't. I know you can list data blocks and function blocks and more, but I'm not aware of any way to read tag lists. Also, data is stored contigiously in data blocks, there's nothing there telling where a variable starts or what it's type is.

vernturbine commented 2 years ago

Thanks for the quick response!

I will carry on with importing a tag list that the user would need to first export from TIA.

yanzixiang commented 2 years ago

Hello,

Is there any way to browse the PLC variables and/or to determine the data type of a variable?

Thanks, Vern

If you are using S7 1500, There is some way.

Jason-Jelks commented 2 years ago

There may be a way to do this using TIA Openness, but I have not tried it since I believe it is a licensed package from Siemens.