ordinaryus67
Newbie level 4
- Joined
- Jan 1, 2015
- Messages
- 5
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 24
Hello
I designed a 3 phase full wave thyristor rectifier in proteus but it does not work properly.
I wrote the code on C compiler and it should have acted like this:
Second and third line works perfectly but I have a problem at the first line. When voltage goes through v2 and v1 it does not give me cnt=1. That's why the circuit does not rectify the voltage
Could you tell me what the wrong point is ? Is using optocoupler the problem?
I designed a 3 phase full wave thyristor rectifier in proteus but it does not work properly.
I wrote the code on C compiler and it should have acted like this:
Code C - [expand] 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 if(input(v2)&&input(v1)) cnt=1; if(input(v2)&&input(v3)) cnt=2; if(input(v3)&&input(v1)) cnt=3; //then if(cnt==1) { output_high(t1); output_high(t4); delay_ms(6); output_low(t1); output_low(t4); } if(cnt==2) { output_high(t2); output_high(t5); delay_ms(6); output_low(t2); output_low(t5); } if(cnt==3) { output_high(t3); output_high(t6); delay_ms(6); output_low(t3); output_low(t6);
Could you tell me what the wrong point is ? Is using optocoupler the problem?
Attachments
Last edited by a moderator: