|Basics of project data comparison
You can compare project data of the same type to identify possible differences. In principle, the following comparison methods are available:
With this method of comparison, you can compare the software of the device objects with the project objects. This is only possible once you have established an online connection to the device.
With this method of comparison, you can compare software or hardware. When comparing software, you can compare objects from projects or libraries. The hardware comparison is available for equipment from a currently open project or from reference projects. For software and hardware comparison, you can decide whether the comparison should take place automatically for all objects or whether you want to compare individual objects manually.
For some objects, for example blocks, in addition to offline/online and offline/offline comparisons, a detailed comparison can also be made. This involves opening blocks for side-by-side comparison and highlighting the differences.
A simple offline/online comparison is carried out as soon as an online connection is established. During this process, the comparable objects in the project tree are marked with icons representing the result of the comparison. In the comparison editor, you can also carry out a more comprehensive offline/online and offline/offline comparison. When comparing software, you can also select actions for non-identical objects in the comparison.
Comparison using checksums
The comparison of offline/online and offline/offline software objects uses checksums generated for specific object data. Objects are only the same if their checksums are identical.
Timestamps are still used for offline/online comparisons for the S7-300/400 series processors.
Facility data falls into two categories:
Source data is all the data of an object that you have direct influence on, such as the object name, source code, comments or programming language. The properties you can edit here may vary from object to object.
All compiler and execution environment data are target data. This data may not have a direct impact as it is generated by the system from the source data. Once again, features vary from object to object.
The table below provides an overview of the property comparison areas:
|Checksum of security objects
Additional information on comparing safety objects can be found in the "Comparing safety programmes" section of the online help for SIMATIC Safety.
|Interface without comments
|Checksum of all first layer block interface tags. Tag comments are not part of the checksum.
|Interface of published blocks without comments (programme units)
|Checksum of all interface checksums of published software entity objects. Comments are not part of the checksum.
|Text-based block interface
|Checksum of all tags, comments and formatting in the text block interface of SCL blocks.
|Code without comments
|Source code checksum. Block and network comments are not included in the checksum. Comments that are not multilingual, for example in STL, and the transfer of free comments to other fields in LAD and FBD, are not included in the checksum.
|Checksum of all block and network comments
|Compare offline/online Displays the languages loaded into the device during the loading process.
Offline/offline comparison: Displays the enabled languages in the project.
|Checksum of all data relevant to the organisational block (OB) event.
|Checksum of all configurable object properties.
|Extended properties of programme elements in software units
|Checksum of the publication status of objects in software units.
|Configuration of technological facilities
|Checksum of technology-specific settings of a process facility.
|Checksum of all object settings related to alarms.
|Checksum of all object surveillance settings.
|Checksum of all text lists of the object.
|Tags without comments
|Checksum of all tags of the selected PLC tag table. The 'Storage' and 'Monitoring' columns and tag comments are not part of the checksum.
|Fixed without comments
|Checksum of all user constants of the selected PLC tag table. System constants and user constant comments are not part of the checksum.
|Compilation and execution data
|Checksum of data for compilation and relevant for loading.
|A sign of the times
|Timestamps for S7-300/400 processors created by the system for compilation and download. Only available if an online connection is available.
Offline/online comparison allows the device objects to be compared with the project objects.
The project tree is open.
To carry out an offline/online comparison, follow these steps:
All existing online and offline objects are displayed. Symbols in the comparison editor and project tree show the status of objects. In the comparison editor, you can now define specific actions for objects, depending on their status.
|Conducting offline/offline comparisons
With offline/offline comparison, you have the opportunity to compare the project data of two devices. You can carry out software and hardware comparisons. With software comparison, you can compare objects from projects or libraries. The hardware comparison is available for devices from a currently open project or from reference projects. You can decide whether the comparison should take place automatically for all objects or whether you want to compare individual objects manually. The following options are also available for software comparison:
- For objects that are not identical, actions can be identified to eliminate differences.
- You can specify the criteria to be used for comparison.
At any time, you can drag any other device into the drop area for further comparisons.
The project tree is open.
Performing offline/offline software comparisons
To carry out an offline/offline software comparison, follow these steps:
Performing offline/offline equipment comparisons
To perform an offline/offline hardware comparison, follow these steps: