Hello,
We added an option https://www.mathworks.com/help/plccoder/ug/plc-coder-interface.html#mw_1e9d7724-d4df-4702-a596-3d3f27bacf5e in R2020b where you can specify whether the generated code uses the target IDE timer implementation or Simulink timer implmmenetation (Target-Independent Counter).