There are two different templates for S4C+ and IRC5. The overall structure and logic is the same but a few things have been changed. It will not work to use the S4C+ program for an IRC5. If you want the same functionality but with IRC5 instead of S4C+ I would recommend the following.
Compare the default template RAPID program for S4C+ with the version you are currently using. Extract the differences.
Implement the differences extracted from step 1 above to the default template RAPID program for IRC5. The changes can not be copied and pasted into the IRC5 program due changes in data structures.