Let's add that the motion sensor sends out M1.
You want to make sure that under Hardware Configuration, you have house code "M" set for the transceiver function.
Create a macro, M1 "on". This macro would be something like:
Turn B4 'on'
Turn A7 'on'
Delay 5 minutes
Turn B4 'off'
Turn A7 'off'
Finally, go into Tools and select Download Timers and Macros