11/6/2007 3:21 AM | |
Posts: 191 Rating: (58) |
please post your program, so we can work on it.. ROSA sorry clicked twice... |
Last edited by: rosa at: 06.11.2007 03:22 |
|
11/6/2007 3:21 AM | |
Posts: 191 Rating: (58) |
please post your program, so we can work on it.. ROSA |
11/6/2007 10:10 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580) |
Hello FogBot, your problem is, i will say, a standard problem to count pulses per time amd convert this value into a physical unit. The First solution is to use the special function "threshold trigger" connected to a input I5 or I6. Set the Parameter "time interval" or "gate time" G_T = 1 and then you get the frequency of the input signal. In some cases you can change G_T to get a result in physical units, e.g. 2000 pulses --> 40 gpm needs a translation-factor m = 1/50 = 0,02. That means, set G_T = 0,02 and you have what you wont, but sorry the Handbook says G_T must be >= 0,05 s and the next problem is, that the result value can only displayed (not used in other LOGO-functions! The second solution ist to add a frequency divider between the input pin and the special function "threshold trigger". Put a counter block, a digital flag block and a the special function "threshold trigger" ina serial signal line and add a connect from the output of the digital flag block to the clear-pin of the counter. Then set the parameter ON of the counter ON = 1...n. Then you get a input frequency for the special function "threshold trigger" f = finput / n. Now you can define G_T in a range of values with: n / G_T = m.Example: G_T = 0,2 s and n = 10, but the result value can only displayed (not used in other LOGO-functions!
...The blocks B001 and B004 are only for the PC-simulation. You must exchange them with an input pin I5 or I6 (Signal A). ==>> Synergetic effects of the modified threshold trigger function in relation to the original LOGO-function: Ok, i hope you unterstand the sheed and this helps you to solve you proplem. AttachmentDemo_Threshold_trigger.zip (1518 Downloads) |
==> Meine TAG-Listen: "deut." |
|
This contribution was helpful to2 thankful Users |
11/10/2007 9:02 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580) |
Hello FogBot, thanks for your positive feedback! Too few new members search a lot for answers...they unfortunately in the forum contributions secure many of their questions could answer so self...
and to download the attachment direct, use: In this case the measurement period (=gate tiome) is cut into several subdivides ( 8 counters) part measurements and a memory (= 9. counter) for the display. For example a gate time to count pulses so in the time of 8 x n (n defines through TH+TL of an impulse generator), at which is n the time period to update the result of the measurement over the hole time of 8xn (and for example displayed). The 9 counters are rotate cyclic tomemory the result and every counter counts over the gate time = 8 x n !!! Sorry, the comments are only in German. You should have therefore questions, then ask here... Best regards |
==> Meine TAG-Listen: "deut." |
|
Follow us on