function generatedFiles = plc_postcg_callback_omron(fileNames)
%

%   Copyright 2012-2017 The MathWorks, Inc.

    fileName = fileNames{1};
    str = fileread(fileName);

    % fix DINT_TO_TIME
    patten_txt = 'DINT_TO_TIME\(maxTime\)';
    repl_txt = 'NanoSecToTime(LINT#1000000*DINT_TO_LINT(maxTime))';
    str = regexprep(str, patten_txt, repl_txt);
    
    % fix "__" to "_z"
    str = regexprep(str, '__', '_z');
    
    % fix "p_" to "zp_"
    str = regexprep(str, '(\W)p_', '$1zp_');
    
    sfprivate ('str2file', str, fileName);
    generatedFiles = {fileName};
end

% LocalWords:  Nano
