hallo,

sowie ich das verstehe will er auf knopf druck dass das Relai anzieht und bei erneutem drücke soll das wieder aus gehen.

Code:
do

Debounce Pind.2 , 0 , Taster1      
If Normal = 1 Then
portd.6 = 1
End If
if normal = 2 then
portd.6 = 0
end if 
loop
end 

Taster1:
Normal = Normal + 1
If Normal > 2 Then
Normal = 0
End If
Return
probier dasmal aus dies klappt.... vielleicht noch etwas unsauber aber es klappt.

musst nur die ports ändern.