12/21/2008 12:06 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580)
|
Hi Paolo, if i understand you right, then you want to detect the direction of the change of an analoge signal. I have given solutions (some different versions) of this problem for the LOGO! - but only in german languageunder: "Auswertung Analogwert steigend oder fallend", my answer at 07.11.2008 attachment direct: TEST_Anzeige steigende oder fallende Analogwerte.zip If you have questions about the circuits, then ask me here... Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
12/27/2008 3:41 AM | |
Posts: 9 Rating: (0) |
Betel can you post your notes in english Thanks Gazz |
1/3/2009 10:03 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580)
|
Hi Solar Element, here some comments about your and my versions: 1. Your version is nearly the same as the first version in the german forum. Both have the following disadvantage: a) They can not detect the 3. state: "signal is constant". In this case your circuit has the resut "0" OR "1" - as a function of the history of the signal! b) The digital output can be different inside the measuring time (time from memory a value to the moment of the next memory point...That means you get a result after a minimal time after a memory process and then results to (some [continously]) later times - but that results are "summery results" of the complete time from the point of memorya (new)value to the actual time value. The output pins are NOT constant at one/the hole cycle time! I think that can be correct, if you wont to know the direction of the signal, but not all the directions inside this time... But normaly, i think, it is necessary to use a constant time intervall and the end point to detect the direction of the signal. My (a little complexer solutions ...V3b solvss this problems (and some timing errors)...You can detect both direktions and the state "signal is constant" fora constanttime intervall, witch can be defined by the user. The both output pins are updated at the beginning at every cycle. And both output pins are constant at one/the hole cycle time! The version ....V4 ist optimized (some blocks deleted) and you can get the value ofthe difference every cycle from the block B009 komparator (Ax-Ay) with sign and can work with it... Ihope this notes helps you. Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
Follow us on