8/17/2007 4:49 PM | |
Posts: 30 Rating:
|
Thanks for the response Betel! |
8/19/2007 10:54 PM | |
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 (1799 Downloads) |
Last edited by: Betel at: 5/26/2011 11:13 PMadd attachment with EXCEL-files |
|
4/7/2008 9:34 PM | |
Posts: 191 Rating:
|
Please post your program.. ROSA |
4/7/2008 9:42 PM | |
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 (2232 Downloads) |
This contribution was helpful to
1 thankful Users |
Follow us on