SITRAIN Training For: Automation and Industrial Solutions
SITRAIN Training For: Automation and Industrial Solutions
SITRAIN Training For: Automation and Industrial Solutions
To allow the history to be followed as well, the measured values are stored on the
hard disk in a cyclic buffer.
Measured value WinCC fetches values from the controller cyclically. The shortest cycle for
acquisition and archiving is 500 ms. The time stamp with the PC time is added by
WinCC.
License The basic software WinCC includes 512 free archive tags. For extensive
configurations, an extension is available with powerpacks (at a charge).
Processing WinCC Tag Logging makes the following processing available for measured
values:
- Sum
- Mean value
- Minimum value
- Maximum value
- Free arithmetic with C scripts
- Difference
Examples:
- Daily, every 2 days
- Weekly every Monday
- Weekly every 2nd Monday
- Monthly, on the 5th day
- Monthly, every 2nd month, on the 5th day
- Annually on October 18
Creating several archives serves mainly to group the archive tags. The size
CANNOT be set in the properties of a process value archive.
Compressed archives
In compressed archives, values from existing process value archives are stored in
a further archive and the values are compressed. The compression time can be 1
minute, 1 hour or 1 day.
Example:
Values are archived in the process value archive every second. In the compressed
archive one value is archived per minute that is calculated, for example, from the
maximum value of the 60 second values from the process value archive.
The following functions can be used:
Mean value, sum, minimum value, maximum value, difference and weighted
average value
Resetting This function is possible only when runtime has not started. With this, all the
corresponding database segments are irretrievably deleted after a warning box
has been confirmed. If all TagLogging databases need to be deleted, TagLogging
Fast and TagLogging Slow need to be reset.
Connecting an archive
If values from database segments that are no longer connected to the SQL Server,
need to be viewed in WinCC Runtime, these segments must exist on the local
hard disk. Following this, the function "Link archive" can be used.
Disconnect from archive
Only the database segments you have connected yourself can be disconnected
again with this function. The file is not deleted on the hard disk.
Archive configuration
The "time period of all segments" or "Maximum size of all segments" relates to the
entire archive. If one or other limit is exceeded, old segments are deleted.
The "Time of the segment change": Here, a defined start time can be entered, for
example if there is daily segmentation, each segment will start at midnight. If the
project is started the first time at 4 p.m., the first segment covers the period from 4
p.m. to midnight. Following this, each segment covers the time from midnight to
midnight.
The archive configuration can be specified separately for TagLogging Slow and
TagLogging Fast.
Note Each time there is a change in the configuration, a new segment is started in RT.
Archive Contents This tab exists only with TagLogging Fast. All archive values that meet the
conditions above are archived in the TagLogging Fast database, all others in the
TagLogging Slow database.
Process-controlled measured values: The controller connects values e.g. every 50
ms and sends these with a special measured value frame to WinCC. To do this,
for example, the block AR_SEND is called on the S7-400.
- Acyclic
In acyclic archiving, a tag is always archived when the tag stored in "Start tag"
changes or when the return value of the C function stored in "Start event" changes.
The factor for the archiving cycle can be changed.
- Cyclic-selective
Archiving is started depending on the occurrence of an event and is performed in
constant time cycles until the occurrence of a second event. With the stop signal,
the last acquired value is also saved.
This method is selected when, for example, archiving should only be active when a
machine is running (e.g. only for three hours a day).
As an option, a fixed number of leader or trailer values can be set.
To be able to display values for the read ruler or results for statistics functions, a
"WinCC RulerControl" needs to be configured. This is permanently assigned to
exactly one "WinCC Online Trend Control".
The segments of the database are located either in the subfolder of the project
ArchiveManager\TagLoggingFast or in the subfolder
ArchiveManager\TagLoggingSlow.
TLG_F = TagLoggingFast
TLG_S = TagLoggingSlow
The time stamps show the start time and if there are two time stamps present also
the end time.
2. In the navigation panel, select "Cycle times". In the table then add a new time
with the name "5 seconds". Define the time base as "1 second" and the time
factor as 5.
3. Then select the "Process Value Archive". Then write the name of the new
archive in the table column Archive name "Temperatures_Station1". In the
properties of the new archive, check that "Hard disk" is selected as the storage
location.
3. Adapt the properties (Acquisition cycle, Archiving cycle, ...) as shown above.
2. Add a button to the start picture for selecting the picture "Curves.pdl".
5. Add two slider objects to change the process tags "Temperature_R1 (0 to 100)
and "Temperature_R2" (0 to 500).
Note With controls a correct preview is only shown when the zoom level for the graphics
picture is set to 100%.
Change the values for the two process tags with the slider objects.
Stop and start the updating of the trends
Show the read line with the "Ruler" button and move this to its rough
position with the mouse. Pixel-precise movement can be achieved with
the left and right cursor keys.
When is for example "29.0 i" shown in the Y value column and when for
example is "30.0" displayed?
Zoom a window area with the "Zoom area" button.At the end, restore the
original view with "Original view".
Selection according to time period
Hide trends
Test the statistics functions. Start by clicking on the "Set statistics range"
button. Position the left and right limit line and then click on "Calculate
statistics".