发布于 2013-09-22 22:51:43
3楼
问题4的解答
"Compare Blocks" Dialog Box
The blocks to be compared may be:
· In different projects
· On a programming device / PC and a programmable controller
· On different programmable controllers.
Type of comparison
· Select ONLINE / Offline to compare blocks on the programming device / PC with blocks on a programmable controller (SIMATIC S7).
Click "Select" to navigate to the desired location.
· Select Path 1 / Path 2 to compare blocks in different paths.
Path 1 is defined by the block folder which was selected or the folder in which the blocks were selected when you opened the dialog box.
You then define path 2 by selecting blocks or a block folder in a project window.
Click "Select" to navigate to the desired location.
Note: Using the key combination ALT + F6, you can toggle between the dialog box and the project window.
· Select the option "Including SDBs" if you want to compare system data blocks as well.
· Select whether you want to "Execute code comparison" " or "Compare time stamp only".
· If the "Execute code comparison" check box is selected, you can then specify whether you want a "Detailed Comparison" to be performed. If so, you can select the "Including blocks created in different programming languages" check box to compare blocks created in different programming languages (i.e. STL, FBD ....). In this case, the blocks are compared based on STL. If this option is not selected, then only detailed comparison of the blocks concerned will be carried out.
· In the detailed comparison, in addition to the run-time relevant parts of the blocks (interface and code) any changes in the names in local variables and parameter names are displayed.
· If the "Compare time stamp only" check box is selected, STEP 7 compares the time stamps of the blocks being compared. If the time stamps are the same, then STEP 7 assumes that the interfaces are equal to each other.
If the time stamps are different, then STEP 7 compares the block structures until it finds the first difference in their data structures. If the data structures are the same in the sections, then STEP 7 compares the initial value and the current values. All differences are displayed.
Compare:
Click the "Compare" button to start the comparison. The results of the comparison are displayed in the "Compare Blocks – Results" dialog box.
See also:
Comparing Blocks
菜鸟,向大家多学习。