To use the optical connection you may have to turn it on, turn the TV speaker off, and change to audio type in the TV menu.
You may also need to assign the optical connection (say optical 1) to an input (say video 1) so the receiver know you want to use it.
Manuals may be badly written but the info is usually in there somewhere.