8/17/2007 4:21 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hello, use an amplifier immediatebetween an analoge input (ai) and an output (ax). For the ampilfier is ax = ai * GAIN + Offset For you parameter-translation ai 1= 1 V (= 100 LOGO-internal units) --> Ax1 = 0 F and ai2 = 5 V (= 500 LOGO-internal units) --> Ax2 = 135 F
|
==> Meine TAG-Listen: "deut." |
|
8/17/2007 4:49 PM | |
Posts: 30 Rating:
|
Thanks for the response Betel! |
8/19/2007 10:54 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hello, Ax = Ai * GAIN + OFFSET
Ai,maximum * Ax,minimum and
The analog functions of the LOGO can at entrance values Ai and at output values Ax (= "current values Ax") only work with integer values, so that a roundoff is carried out where appropriate (cf. LOGO handbook). In this case the integervalue x becomes from x,0 to x,4 and from x,5 to x,9 the result is the integer VALUE x+1!!! At the example 5/4=1,25: Ai = 5; GAIN = 0,25; OFFSET = 0 shows a value of Ax = 1! In order to be able to announce also decimal values now, in the corresponding functions exclusively for the representation in message texts the number of decimal places can be defined (n = 1 to 5). From for example 12345 as current value of an analog amplifier is indicated then therefore with 2 decimal places 123,45. Every decimal place is in this case then a multiplication of the actual value by the factor 1/10 = 0,1 equally significant, something with a concrete "circuit" is to be considered (for example through preceding multiplication by n * 10 by means of n of further in series pre-connected amplifier functions). Simultaneously the absolute range of values of the advertisement keeps on being located so: 32767 --> 327,67 !!! Unfortunately neither the "number of the decimal places" nor the parameter "Gain" (the corresponding analog functions) through a reference to a value of another function can be defined! Considering this state of affairs makes itself now with values of Ai not too big also to the rounding errors reduce or exclude. At the example with Ai = 5 is let, through regulation of 2 decimal places (in the 2. amplifier for the advertisement) and the use of 2 (or more, because -10,00 < GAIN < 10,00)amplifier functions switched in series with values adjusted on each other for GAIN, to avoid the rounding error (= through multiplication of Ai by 100): GAIN_amplifier1 = 10, GAIN_amplifier2 = 2,5 (Instead of 0,25 and a further pre-connected amplifier with GAIN=10). All further decimal places are always 0 at GAIN = 0,25 and integer Ai [On the other hand at a GAIN of 0,40 an advertisement with 1 decimal place is sufficient (for example 7 * 0,4 = 2,1), all further decimal places are always 0 at GAIN = 0,40 and integer Ai (in particular also the 2nd decimal place that can be renounced therefore in the advertisement and the calculation!).] During the preselection for the sensor type attention is to be paid to following:
The settings "0..10V" and "no sensor" show also identical output values Ax with handicap of identical values for Gain and offset at identical inputs Ai. At "0..10V" the specifications of the "measuring range" are helpful, when a sensor is supposed to be evaluated 0 to 10 V. In this case the signal voltages become 0 to 10 V "translates into the range of values 0 to 1000, if Gain = 1 and offset = 0 (cf. for this purpose handbook)! If using now 2 decimal places (for the advertisement), these values 0 to 1000 displayed as 0,00 to 10,00 are indicated then (what corresponds to the input signals in V). Ergo means every decimal place a division of the bloom output value Ax/10 (only for the advertisement, otherwise knows the LOGO only integers!) Best regards AttachmentCalculation_of_GAIN_and_OFFSET_for_analoge_amplifier_V2.zip (1698 Downloads) |
Last edited by: Betel at: 5/26/2011 11:13 PMadd attachment with EXCEL-files ==> Meine TAG-Listen: "deut." |
|
8/21/2007 8:51 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hello Rosa, ido not understand your comment and neither, that you missing 1 V to 5 V. Ok, the equations are placed according to the specifications in the handbook (4.3.6) and in the 1st paragraph of my executions. Therefore they require the values Ai in LOGO units, that is in the range of -32767 to 32767 and in the special case, when the entrance values of analog hardware entrance come, 0 to 1000. From volts no speech is there. According to handbook input voltages of 0,00 V over... 5,12 V to... 10,00 V from the unit "analog input" are translated into integer values of 0 over... 512 to... 1000 (Format xx,nn) and these are set into the equation Ax = Ai * GAIN + OFFSET for use!. Accordingly must therefore all values of Ai converted from volts (that is Ai multiplied by 100) into LOGO-Units before they can be used to the calculation by OFFSET and GAIN into the indicated equations (example to Controls_Guy matches). If one considers this, when a value or a range (linear) are supposed to be transformed in a wanted value or range of values, the indicated equations are to be used universally. Further considerations and tables are not necessary! You need only one (for e point) or two (fur e range) pairs of korresponding values. Best regards Betel |
==> Meine TAG-Listen: "deut." |
|
4/7/2008 9:34 PM | |
Posts: 191 Rating:
|
Please post your program.. ROSA |
4/7/2008 9:42 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hello fantas, look at the example into the attachment, I think that is what you need. The EXCEL-file contains the values you tell us and the result to use in a amplifiver... remember: to upload a fil it must be zipped or remame to *.zip... Best regards Betel AttachmentExample_degree.zip (2104 Downloads) |
==> Meine TAG-Listen: "deut." |
|
This contribution was helpful to
1 thankful Users |
4/8/2008 2:10 AM | |
Posts: 8 Rating:
|
I was trying to view the file but keep getting a message thet logosoft comfort cannot view files of this type.Dont know what to do next ? |
4/8/2008 2:32 AM | |
Posts: 8 Rating:
|
let me try uploading the file. By the way thanks for the help and effort from all of you. By the way this was done by trial and error so I am unable to give an explanation sorry. AttachmentCircuit Diagram21.zip (698 Downloads) |
4/8/2008 3:34 AM | |
Posts: 8 Rating:
|
I got rid of the analog multiplexer. and downloaded the program to the logo.I'll do tests with the sensor later. Thanks ! |
4/11/2008 9:40 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hello fantas, |
==> Meine TAG-Listen: "deut." |
|
4/16/2008 9:48 PM | |
Joined: 1/5/2007 Last visit: 4/7/2023 Posts: 1690 Rating:
|
Hi fantas, the LOGO! can filter analoge signals with a circuit - how can yu find in my first work of this at: Filters (like bessel or butterworth) Newer koncepts to calculate mean values of 4 and 8 analog values with a new part to memory values (mux+amplifier) and a efficient medode to add values (with a lowwer number of blocks)you can find at the german part at: Konzept + Schaltung einer Mischeransteuerung (3-Punkt-Regelung) specialy at the attachment FORUM_witterungsgeführte_Mischersteuerung (1c).zip. A modified version of the low-pass-filter technique of a analoge value you can find at: DEMO_temperaturabhängiger_Analogausgang_V2Text.zip I hope this can help you... |
==> Meine TAG-Listen: "deut." |
|
4/7/2009 12:09 AM | |
Posts: 4 Rating:
|
Hello, I am new in Logo analoge programming. I have here some CO2 sensor with 0,5-4VDC output, i want that convert in 4-20mA via Logo. So on Logo AM2 AQ it must 4-20mA = 0-1000 in Logo value I have try to programming for few days, but not able to do right. I have try to use follow Gain and Offset for my input: Gain: 2,86 Offset: -143 But when i test it with real voltage on my input, i don't get right reading in the Logo and on my AQ output. I have also use the exampel of Betel for "Example_degree" (Schaltplan2.lsc) and of Rosa (ec fan control.lsc), but they use "Analog MUX" function, i have here a LOGO! 12/24RC version4 0BA4 for testing and version4 don't support "Analog MUX" Before i buy Logo version6 0BA6, i want be sure that it will work for my project. Is possibel to use example from Betel or Rosa in Logo version4? Any other suggestions or idea? Thanks in advanced for help. Best regards, |
Follow us on