Speedcontroller for brushless motor
Link: http://www.aerodesign.de/peter/2001/LRK350/Bilder_eng.html
Show:
www.sunwind.dk/flowsheet.pdf
How can I read out the number of passages of the code above?
I wish to convert the count converted to minutes.
My code :
main:
symbol timer = w1
symbol R_Phase = 0
symbol S_Phase = 1
symbol T_Phase = 2
high R_Phase 'Start
CountOut: timer = 0 'clear timer counter
start:
timer = timer + 1 'add one to the time counter
if timer > 200 then CountOut 'then time_out every 1 minuts and timer =0
debug timer
gosub INC_Command '1 Steep
high R_Phase 'windings
high S_Phase 'windings
low T_Phase 'windings
gosub INC_Command '2 Steep
low R_Phase 'windings
high S_Phase 'windings
high T_Phase 'windings
gosub INC_Command '3 Steep
high R_Phase 'windings
low S_Phase 'windings
high T_Phase 'windings
goto start
INC_Command:
readadc 0,b8 'read A0 to b8 Speedcontroller
let b7 = b8 'Expression command
label_5: let b6 = b6 + 1 'Inc command
if b7 = b6 then label_7 'Compare command
goto label_5
label_7:
let b6 = 0 'Expression command
return 'End
Can you please give me an example of such code in the PICAXE Programming Editor?
Best regards
Monie
Link: http://www.aerodesign.de/peter/2001/LRK350/Bilder_eng.html
Show:
www.sunwind.dk/flowsheet.pdf
How can I read out the number of passages of the code above?
I wish to convert the count converted to minutes.
My code :
main:
symbol timer = w1
symbol R_Phase = 0
symbol S_Phase = 1
symbol T_Phase = 2
high R_Phase 'Start
CountOut: timer = 0 'clear timer counter
start:
timer = timer + 1 'add one to the time counter
if timer > 200 then CountOut 'then time_out every 1 minuts and timer =0
debug timer
gosub INC_Command '1 Steep
high R_Phase 'windings
high S_Phase 'windings
low T_Phase 'windings
gosub INC_Command '2 Steep
low R_Phase 'windings
high S_Phase 'windings
high T_Phase 'windings
gosub INC_Command '3 Steep
high R_Phase 'windings
low S_Phase 'windings
high T_Phase 'windings
goto start
INC_Command:
readadc 0,b8 'read A0 to b8 Speedcontroller
let b7 = b8 'Expression command
label_5: let b6 = b6 + 1 'Inc command
if b7 = b6 then label_7 'Compare command
goto label_5
label_7:
let b6 = 0 'Expression command
return 'End
Can you please give me an example of such code in the PICAXE Programming Editor?
Best regards
Monie