@ Amoque - Also, I tried with () but no effect

@ Alain - 1000X thx for your example. I'm a begginer and I see in my eyes more fog ....but was a inspiration for me and I solved . I think that is a unusually code, but work !

Code :

init:
pulsin portc.2 , 1, varb
for i = 1 to 50
pulsin portc.2 , 1, varb
varb = varb +1
next i
if varb > 60 then
goto init2
else
goto init
endif
goto init

init2:
pulsin portc.2 , 1, varb
if varb > 160 or varb <140 then goto init
if varb > 140 and varb < 160 then goto beep
goto init2

beep:
...code...
goto beep

Thx to all for help!