BinaryFormatter deserialize

Hi, I want to read a binary file and deserialize the stream to an object in PLCNext C# function block. But it is not possible use System.Runtime.Serialization.Formatters.Binary in PlcNext. Has anyone an idea to solve this? Thanks in advance Br Stefan

Hi Stefan, the .Formatters are unfortunately not part of the eCLR C# extension. Please check the Infocenter for a better reference - https://www.plcnext.help/te/Programming/Csharp/Csharp_Supported_functions.htm. However, even when this is properly not really what you’re looking for, you still have the following options to store your instance values: - single values might be stored via Sytem.IO BianryReader/Writer - or flush your single values into a file Hope that helps, Frank

Hi Frank, Thanks for the reply. That is good that PLCNext supports binary writer/reader I might use that to build a function. Br Stefan