4/8/2025 7:53 PM | |
Joined: 1/21/2013 Last visit: 4/30/2025 Posts: 3782 Rating:
|
Hi Elkelthen, In general, it is recommended to use the "on change" logging mode, as cyclic logging would create unnecessary entries in your archive. However, if switching to cyclic logging with a 1s interval would reduce the number of entries, I would say that your logging is overloaded. However, using the cyclic logging mode would allow you to use compression, which will reduce the amount of logging. But even in the "on change" logging mode, smoothing will help reduce the log size. So playing around with the configuration can definitely help reduce the log size. Yes, values are converted to 64-bit real values when written to the database. This applies to all non-64-bit values and non-string values. A look into the database will provide some explanation.
However, this is a defined system behavior and you cannot change it. But I am really sure, there are no random bits added to the value, it is just converted as you will have in any programming language for floating values. Let's do an example using the value 3.3. Converting this to binary results in 11.010011001100110011001100110011001100110011001100110 or 11.01̅0̅0̅1̅. So this infinite value will not fit into a 32-bit real value without loss of accuracy, nor will it fit into a 64-bit value. Without conversion, you would never see a difference because it would be 3.3 in either case, but converting the 32-bit value to a 64-bit value will result in a different representation. The 32-bit notation would be 01000000010100110011001100110011, the 64-bit notation would be 0100000000001010011001100110011001100110011001100110011001100110. However, when the 32-bit value is put into a 64-bit variable, the missing bits are filled with 0, resulting in a different value of 0100000000001010011001100110011001100000000000000000000000000000 which is 3.299999952316284. In summary, logging works correctly according to the design chosen by the Siemens software architects and developers, and you cannot change this design. However, with smoothing and compression, you have some options to influence the amount of logged data. Kind regards |
This contribution was helpful to
1 thankful Users |
Follow us on