The codes may not work if you have an HLN507W and not an HLN507W1 model. I found a website that listed differences. It appears that the 'W' models may not support discretes. The 'W1' models may. Additionally the site reported that the HLM507W supports discretes where the HLN507W does not.
I'm on a different PC (otherwise, I'd post the link) at this point but I did a Yahoo search for "+HLN507W +discrete" and found this site as #3 I believe from the list.