public static void ExportProgramBlocksSource(this IPlcClient plc, TiaProgramBlockDirectory tiaDirectoryManager)
{
plc.GetAllCodeElements<ICodeFc>().Save(tiaDirectoryManager.FC);
plc.GetAllCodeElements<ICodeFb>().Save(tiaDirectoryManager.FB);
plc.GetAllCodeElements<ICodeIDb>().Save(tiaDirectoryManager.Idb);
plc.GetAllCodeElements<ICodeOb>().Save(tiaDirectoryManager.OB);
plc.GetAllCodeElements<ICodeDataBlock>().Save(tiaDirectoryManager.DataBlock);
}
public static void ExportTagTablesSource(this IPlcClient plc, TiaDirectoryManager tiaDirectoryManager)
{
plc.GetAllCodeElements<ICodeTagTable>().Save(tiaDirectoryManager.TagTables);
}