Quote Originally Posted by tazntex View Post
gosub loop1
branch keydata, [rly1,rly2,rly3,rly4,rly5,rly6,rly7,rly8]
Looks like some of the program is missing...probably leaving out some important information.

Did you try it with LEDs first instead of relays?
Does it work the way you'd expect it to work?
Do you have flyback diodes across the coils of the relays?