S7NetPlus / s7netplus

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

Address of DatatItem back to string PLC address #511

Open AlexanderLL95 opened 10 months ago

AlexanderLL95 commented 10 months ago

Hi

Is it possible to have a method to retrieve the string PLC address of a DataItem. You can create a DataItem based on a string PLC address.

There is an internal function to transform a DataItem to object DataItemAddress to have the PLC adress. A ToString() function for the class would be great. internal static DataItemAddress GetDataItemAddress(DataItem dataItem) This is still an internal function, so implementing the ToString() function of some public method in the DataItem class can use this internal GetDatItemAddress method.