Actual value Ax = (internal value at input Ax * gain) +
offset
Gain and offset calculation
The gain and offset are calculated based on the relevant
high
and low values of the function.
Example 1:
The available thermocouples have the following technical
data:
–30 to +70 ℃, 0 to 10 V DC (i.e. 0 to 1000 in xLogic).
Actual value
= (internal value ∙gain) + offset, thus
–30 = (0 ∙A) + B, i.e. offset B = –30
+70 = (1000 ∙A) –30, i.e. gain A = 0.1
Example 2:
A pressure sensor converts a pressure of 1000 mbar into a
voltage of 0 V, and a pressure of 5000 mbar into a
voltage of 10 V.
Actual value
= (internal value. gain) + offset, thus
1000 = (0·A) + B, i.e. offset B = 1000
5000 = (1000 ∙A) +1000, i.e. gain A = 4
Example of analogue values
6.1.4. Special functions list – SF
When you create your circuit program in xLogicsoft, you
find the special function blocks in the SF list.
You can invert the inputs of SF’s individually, i.e. the circuit
program converts a logical “1” at the input into a logical “0”;
a logical “0” converts to logical “1”. The table also specifies
whether the relevant function can be set retentive (Rem).
The following SF’s are available:
Table 21 SF - Special Functions List