5/7/2012 6:26 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hello all, to compare constant values (with amount smaller 19999) with an analog value are neededneeded again and again and can be carried out efficient by means of a block Of "analogous threshold trigger". In the following one my generally applicable variants for the testing of analog values Ax concerning a fixed comparative value of n (for example also n = 0): For example the block "analogous threshold trigger" with following block parameters is suitable for that... a) Ax = n, that is the digital output Q of the threshold value countercounter is supposed to be withwith appropriate relation "= ON". Set block parameters as follows: GAIN = 1,0; OFFSET = 0; Threshold values: ON = n; OFF = n + 1 B) Ax > n, that is the digital output Q of the threshold value countercounter is supposed to be withwith appropriate relation "= ON". Set block parameters as follows: GAIN = 1,0; OFFSET = 0; Threshold values: ON = OFF = n C) Ax < n, that is the digital output Q of the threshold value countercounter is supposed to be withwith appropriate relation "= ON". Set block parameters as follows: GAIN = -1,0; OFFSET = 0; Threshold values: ON = OFF = -n D) Ax >= n, that is the digital output Q of the threshold value countercounter is supposed to be withwith appropriate relation "= ON". Set block parameters as follows: GAIN = 1,0; OFFSET = 0; Threshold values: ON = n; OFF = n - 1 E) Ax =< n, that is the digital output Q of the threshold value countercounter is supposed to be withwith appropriate relation "= ON". Set block parameters as follows: GAIN = -1,0; OFFSET = 0; Threshold values: ON = -n; OFF = -n - 1 In the same way "Analog threshold trigger" can be checked with the block, whether an analog value within aconstant k of "ON" = k1 - 1 to k2 = "OFF" (with "ON" < "OFF") to contain is Ax inside this fild or not (to use inverted block output for that), "ON", to have to lie "OFF" in the range of -20000 to 20000. At values n, k1, k2 outside of the this range must be used however for the comparison a block "comparator" (or two), in analog mode to the comparison of two analog values... A comparison of two analog values with each other is under following link described:
Best regards AttachmentDEMO_Compare_analog_values.zip (569 Downloads) |
==> Meine TAG-Listen: "deut." |
|
This contribution was helpful to
2 thankful Users |
5/13/2012 7:39 PM | |
Joined: 5/4/2009 Last visit: 11/23/2024 Posts: 914 Rating:
|
Thanks Betel for your great effort... But why SIEMENS not trying todevelopa simplecomparatorlike those found inMillennium3 Crouzet for example... Regards.
|
Aim Higher |
|
This contribution was helpful to
2 thankful Users |
5/14/2012 6:20 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hello, yes, I miss some functions at the LOGO! witchhave modules from other factorys.... Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
We are working on a new user interface with better overview and more relevance.
To explore the new Forum, you can follow the textbox in the right column, which will lead you to the corresponding page in the new Forum. Alternatively, you can start from the main page by following this link:
https://sieportal.siemens.com/en-ww/support/forum
In the coming days, we will update the configuration step by step, so that you are directed to the new Forum by default. The “classic Forum” will remain available for all known functionalities alongside the new one.
We are thrilled to finally share the future of our Forum with you. Thank you for your commitment!
Kind regards,
the Forum Support Team
Follow us on