function plc_ide_list = plc_custom_ide
%   Copyright 2012-2018 The MathWorks, Inc.

% Generic codegen config customization file for keba target

    plc_ide_list(1) = get_ide_info_keba;
end

function ide_info = get_ide_info_keba
    ide_info.name = 'keba';
    ide_info.description = 'KEBA KeStudio IecEdit';
    ide_info.path = ''; % IDE path
    ide_info.format = 'generic'; % generic|xml
    ide_info.fileExtension = 'pu_iec';
    ide_info.cfg = get_ide_cfg_keba;
    ide_info.precg_callback = PLCCoder.PLCCGMgr.PLC_PLUGIN_CG_CALLBACK_EMPTY; 
    ide_info.postcg_callback = 'plc_postcg_callback_keba';
    ide_info.xmltree_callback = PLCCoder.PLCCGMgr.PLC_PLUGIN_CG_CALLBACK_EMPTY;
    ide_info.pluginVersion = 2.0;
    ide_info.compatibleBuildVersion = 1.5;
end

function cfg = get_ide_cfg_keba
    cfg.fPostCGKeepOriginalFiles = false;
    cfg.fSupportGlobalConst = true;    
end

% LocalWords:  keba Ke Iec pu iec postcg
