5/7/2012 6:26 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580)
|
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 (521 Downloads) |
==> Meine TAG-Listen: "deut." |
|
This contribution was helpful to2 thankful Users |
5/14/2012 6:20 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating: (580)
|
Hello, yes, I miss some functions at the LOGO! witchhave modules from other factorys.... Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
Follow us on