thx for the info ...sorry for late reply ....bz lately with exam .......in the #6 post u put :

If buf(6)<>"4" then wait_for_command
if buf(6)<>"1" then wait_for_command
If buf(6)<>"7" then wait_for_command
If buf(6)<>"6" then wait_for_command

do i need to store the recieve message( Alarm arm 0AD09417658DE0685E56D
)into the buffer 1st ...?