Dave, something like

Code:
HEXRTCHour = RTCHour & $70
if alarm & $70 = HEXRTCHour then
     alarmled=1
    endif
If so then how do I set the value for the variable alarm ?

Thanks for the offer of some assistance. If you prefer to drop me a pm with e-mail addy, it might save space on the forum server ? - there is also no rush...