5/22/2008 10:31 AM | |
Posts: 6 Rating: (0) |
Hi all, I am using counter and want that the output will OFF when reset counter . But this circuit just reset counter value , can not reset output (Q1 ). Can everybody show me what is wrong ? Thank you Thu Attachmenttest.pdf (835 Downloads) |
5/22/2008 9:50 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580)
|
Hello chutthu, first, please send us in the next case your original circuit because then it is easier to help you. Second in my programm i think all goes ok. If i put on I1 the counter counts from "0" to "xxx" and if greater than 5 Q1 goes ON. If i clear I1, then the counter value goes to "0" AND Q1 goes OFF OR i understand your wanted function not correct ? Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
5/23/2008 10:03 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580)
|
Hi, please remember that a puls at the "R"-pin of the counter sets the counter to zero AND sets the Counter output-pin to "OFF" - in every case and not only if the Parameter "OFF" > 0 ! Your second question i cant understand compleatly. Please tell me what signal you have/wand at the input and whatyou wand to du with this - in words and not in "LOGO!-funktions.. Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
5/24/2008 5:02 AM | |
Posts: 6 Rating: (0) |
Hi all, Thank you for your reply. 1. I know the principle of counter setting (like you mention), but I simulated, Q can not OFF when I reset I1 (Q reset only I adjust off threshold 1: I dont know why ). 2. In my project, I want to check small alluminium (max: 3 bags) in 1 box (object). Conditions: 3 bags OK; <3bags: not OK I used 2 sensors: - 1 detect object (ON when object come, OFF no object: S1) - 1 detect small bag inside box (proximity sensor: S2): + If It is enough 3 bags: output of S2 is continous + If It is not enough (<3bags) : output of S2 is ON OFFrandomly Please attached file to see my solution and problem. Thank you and waiting yur reply Thu AttachmentDoc1.pdf (659 Downloads) |
5/25/2008 3:37 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580)
|
Hi chutthu, sorry, but i can´t see details of your circuit at the pdf-file. ... so i hope your circuit works right if your tranportation speed is every time the same one. In this case your method of extraction a flag to distinguish between numbers of bags are OK or NOT is correct, but only in this case! If you have some different speeds of transportation, then you must use an other characteristic value. This can calculate this value m with "time S1_on / time S2_on" = constant - in your application i think "6 timepulses of S1 / 4 timepulses of S2 = 1.5 = m Ok, i would use an other concept of circuit, but i will tell you a solution for your concept: 1.I think you shall use more pulses per timeunit to make your resolution higher. 2. With the 2 puls generators you can consider the factor m: (TH+TL) for S1 = m * (TH+TL) for S2. If you use definitions of the Parameters for the two puls generators with this equation, then the both counter values are equal, if you have the correct number of bags in the box. 3. To test this condition you have only to define the "ON" parameter of the counter for the"ON"-time of S1. Set the "ON" parameter of the counterfor S1as a pointer to the counter for S2. Then the output pin of the counter for S1 is equal "1", if the number of bags inside are smaler than 3 and you have an alarm signal. 4. Before you connect this alarm signal with an output you must kombine it with an AND-block with the inverted signal of S1 to give it only free in the pause between two boxes... Ihope now you can create a working circuit for your application... Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
6/2/2008 4:22 PM | |
Posts: 6 Rating: (0) |
Dear Mr. Betel, Thank you very much for your help. Best wishes, Thu |
Follow us on