What would be the solution for following problem. I want to controll 2 opto SCR connected to RB1 RB2. I want one to increase light at the same time as the other Decrease light. The zero detection works perfect and also the delay for the ignition puls for scr1 but what about no 2.How do I solve it with Picbasic pro
Thanks
DELAY_1 = 8500 : us
POS_FLNK:IF ZERODETECT = 0 Then POS_FLNK
NEG_FLNK:IF ZERODETECT = 1 Then NEG_FLNK
DELAY_1 = DELAY_1 - 1
IF DELAY_1 < 7000 Then DELAY_1 = 7000
PauseUs DELAY_1
High out_1
"High out_2"
PauseUs 100
"Low out_1"
Low out_2
GoTo POS_FLNK
Bookmarks