• 沒有找到結果。

Select the File > New > Project menu command in the SIMATIC Manager

在文檔中 the Example of a Drill 2 (頁 45-50)

长沙工控帮教育科技有限公司整理

Step 14: Downloading and Debugging the User Program

1. Select the File > New > Project menu command in the SIMATIC Manager

2. Enter a name for the project and open it.

Creating a symbol table

If you want to program with symbolic addresses, it is advisable to create the symbol table before programming.

1. Open the symbol table of your S7 program in the SIMATIC Manager.

2. Enter the required symbols in the table.

Note

From Version 4 on STEP 7 provides a Wizard which helps you in building a complete project structure. In order to start the Wizard use the File > Wizard "New Project" menu command.

长沙工控帮教育科技有限公司整理

3.4 Starting S7-HiGraph and Creating State Graphs

Starting from the Windows user interface

After you have installed the software on your programming device/personal computer, you can call up theS7-HiGraph via the "Start" command button on the task bar in Windows 95/98/NT (entry under "Simatic/STEP 7").

Starting from the SIMATIC Manager

You can also startS7-HiGraph in the SIMATIC Manager by positioning the cursor on a graph group or a state graph in the "Sources" folder and double-clicking on it.

Creating and opening state graphs in S7-HiGraph

1. In order to create a state graph select the File > New State Graph menu command. In order to open an existing state graph select File > Open.

2. In the subsequent dialog box select the "Sources" folder of your S7 program.

3. Select the "state graph" type in the "Object type" selection field.

4. In order to create a state graph enter the desired name in the "File name" input field and confirm your input with "OK".

In order to open an existing state graph select the desired name and confirm your input with "OK".

Creating and opening state graphs in the SIMATIC Manager

• Open the "Sources" folder in your S7 program.

• Existing state graphs in this folder can be opened by double-clicking on them.

In order to create a state graph select the Insert > S7 Software > State Graph menu command.

A new state graph contains an initial state and a startup transition as well as the instruction table for permanent instructions.

长沙工控帮教育科技有限公司整理

3.5 Control Interface and Setting the Work Area

3.5.1 User Interface

The following figure showsS7-HiGraph with a newly created state graph.

Function of the windows

The S7-HiGraph user interface consists of various windows which you can hide or display as required. In order to use the available screen area optimally, you can use the mouse to change the size of the windows or to move them.

The individual windows have the following functions:

Window Name/Function

(1) The diagrams of the state graphs and graph groups are created in the working window.

(2) Enter the variable declaration of the processed state graph in the variable declaration window.

It can be displayed by using the View > Variables menu command.

长沙工控帮教育科技有限公司整理

Window Name/Function

(3) The View > Instructions/Current parameters menu command is used to have the Instructions/Current Parameters window displayed. It consists of two tab cards:

The "Instructions" tab card is active by default when you edit a state graph. Here you program the contents of states, transitions and permanent instructions.

The "Current parameters" tab card is active by default when you edit a graph group. Here you define the current parameters of instances.

(4) Errors and warnings occurring are output in the "Messages" window. Here you can choose between two register tabs:

The "Document Messages" tab card shows syntax errors which were found in the state graph or the graph group currently opened. It is displayed automatically as soon as an error or an inconsistency occurs in the program.

Error messages and warnings arising during compiling are output in the "Application Messages" tab card. The window is displayed after every compilation run. The messages can refer to errors in the graph group or to state graphs instanced in it.

Use the View > Messages menu command to have the window displayed when required.

3.5.2 Arranging Working Windows

You can change the positioning of the windows which exists when S7-HiGraph is opened and adapt it to your personal requirements.

The following functions are available:

You can use the View menu to display or hide the output window for errors and warnings, the variable declaration window and the instruction window.

• The instruction window can also be opened by double-clicking on a state or a transition. In this case it is hidden again as soon as you click on another element in the working window. However, you can also keep the instruction window open by selecting the Remain open menu command from the pop-up menu.

• In order to move the output window for errors and warnings, the instruction window or the variable declaration window, click on the inner window edge and drag the window to the desired position. The partial windows can only be placed at the outer edge of the working surface.

If several windows are opened, you can use the Window > Arrange menu command to cascade them, position them horizontally or vertically next to each other.

• The usual Windows commands can be used to minimize, maximize or close the windows.

• The status bar and toolbars can also be hidden. To do so use the View > Status bar or View > Toolbars menu commands.

长沙工控帮教育科技有限公司整理

3.5.3 Saving and Restoring the Window Arrangement

S7-HiGraph offers the possibility of saving the current arrangement of the windows and of restoring it at a later time. You can save one arrangement each for the state-graph and graph-group windows.

What is saved?

The following information is saved when you save the window arrangement:

• Size and position of the working window

• Zoom factor

• Variable declaration window displayed or not

Saving the window arrangement

In order to save the arrangement of the current window type select the Window > Save Arrangement menu command.

Restoring the window arrangement

In order to restore the saved arrangement select the Window > Restore Arrangement menu command.

3.5.4 Setting the Size of the Drawing Area

The drawing area is the area on which the objects can be positioned. To set the size of this area:

1. Select the Options > Settings for Graph Groups / State Graphs menu command.

2. Set the required size (in mm) in the "Graphics" tab.

3.5.5 Enlarging and Reducing the View

You can enlarge or reduce the view of the graphics elements by setting a zoom factor.

Select one of the following menu commands:

View > Zoom > Zoom In In order to increase the view step-by-step.

> Zoom Out In order to decrease the view step-by-step.

长沙工控帮教育科技有限公司整理

3.5.6 Setting the Grid

The drawing area is filled with a grid when you select the View > Grid Points menu command.

In order to set the grid size select the Options > Settings for Graph Groups / State Graphs menu command and enter the desired values in the "Graphics"

register tab.

3.5.7 Displaying and Hiding Instructions or Characteristics

You can display or hide the following elements in order to optimize the graphics structure of a state graph:

• Instructions

• Permanent instructions

• Characteristics of states and transitions To do so, use the View > Details menu command.

3.5.8 Setting the Colors and Fonts for the Working Windows

You can set the font of the texts as well as the colors of the elements in the working windows.

Colors can be set for the entire application:

在文檔中 the Example of a Drill 2 (頁 45-50)