Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

It can contain the reference to a column of an object of the Structured variable type in the form ObjectName[0]^ColumnName. In such a case, the KOM process tries to copy the values of arrays with the start address which is configured in tab Address to the relevant column of the structured variable. There is no need to create individual I/O tags for each item of an array or for some other repeated address structure. Only selected communication protocols support this functionality. More additional information is mentioned in the description of a particular communication protocol.
Note: it is also possible to use a non-zero index, e.g. SV.MyVal[7]^MyCol - in this case, values are written into the structured variable starting with the specified row (in example 7).

The copying of values into the column of a structured variable is implemented only for input, the change of a particular value of a structured variable (e.g. in HI or via event) will not be transferred as output through the communication into the device.

...

Conversion typeConversion formula
None-
LinearOutput = A * Input + B
PolynomialOutput = A * Inputn *B x Input + C
Pt 100
Output =

a = -5.802E-05
b = 0.390802

Simatic S5Time
Conversion of the Siemens Simatic relative time structure.
Absolútna hodnotaAbsolute valueOutput = abs(Input )
Bitmask filter AND
Output = ((A + B<<32) & Input ) >> C
Note: the filter is configurable only for Integer inputs (Ci), constant A is a mask for the lower 32 bits, constant B is a mask for the upper 32 bits, and constant C indicates an optional shift of the result to the right by C bits. If C is negative, the result is shifted to the left by -C bits.

A, B, C, n - conversion constants

...