Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Скачиваний:
21
Добавлен:
11.10.2020
Размер:
3.39 Mб
Скачать

The Editors 181

The Graphic Editors

be shaded blue, in the event that they carry TRUE. Therefore, you can accompany the flow of information while the PLC is running.

If you place the mouse pointer briefly above a variable, then the type, the address and the comment about the variable will be displayed in a Tooltip.

5.4.2 The Function Block Diagram Editor

This is how a POU written in the FBD under the corresponding WAGO-I/O- PRO 32 editor looks:

The Function Block Diagram editor is a graphic editor. It works with a list of networks, in which every network contains a structure that displays, respectively, a logical or an arithmetical expression, the calling up of a function block, a function, a program, a jump, or a return instruction.The most important commands are found in the context menu (right mouse button or <Ctrl>+<F10>).

5.4.2.1 Cursor positions in FBD

Every text is a possible cursor position. The selected text is on a blue background and can now be changed.

You can also recognize the present cursor position by a dotted rectangle. The following is a list of all possible cursor positions with an example:

1) Every text field (possible cursor positions framed in black):

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

182 The Editors

The Graphic Editors

2)Every input:

3)Every operator, function, or function block:

4)Outputs, if an assignment or a jump comes afterward:

5)The lined cross above an assignment, a jump, or a return instruction:

6)Behind the outermost object on the right of every network ("last cursor position," the same cursor position that was used to select a network):

7)The lined cross directly in front of an assignment:

5.4.2.2How to set the cursor in FBD

The cursor can be set at a certain position by clicking the mouse, or with the help of the keyboard.

Using the arrow keys, you can jump to the nearest cursor position in the selected direction at any time. All cursor positions, including the text fields, can be accessed this way. If the last cursor position is selected, then the <up> or <down> arrow keys can be used to select the last cursor position of the previous or subsequent network.

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

The Editors 183

The Graphic Editors

An empty network contains only three question marks "???". By clicking behind these, the last cursor position is selected.

5.4.2.3 'Insert' 'Assign' in FBD

Symbol:

Shortcut: <Ctrl>+<A>

This command inserts an assignment.

Depending on the selected position (see 'Cursor positions in FBD'), insertion takes place directly in front of the selected input (Cursor Position 2), directly after the selected output (Cursor Position 4) or at the end of the network (Cursor Position 6).

For an inserted assignment, a selection can be made accompanying the entered text "???", and the assignment can be replaced by the variable that is to be assigned. For this you can also use the Input Assistant.

In order to insert an additional assignment to an existing assignment, use the 'Insert' 'Output' command.

5.4.2.4 'Insert' 'Jump' in FBD

Symbol:

Shortcut: <Ctrl>+<L>

This command inserts a jump.

Depending on the selected position (see 'Cursor positions in FBD'), insertion takes place directly in front of the selected input (Cursor Position 2), directly after the selected output (Cursor Position 4) or at the end of the network (Cursor Position 6).

For an inserted jump, a selection can be made accompanying the entered text "???", and the jump can be replaced by the label to which it is to be assigned.

5.4.2.5 'Insert' 'Return' in FBD

Symbol:

Shortcut: <Ctrl>+<R>

This command inserts a RETURN instruction.

Depending on the selected position (see 'Cursor positions in FBD'), insertion takes place directly in front of the selected input (Cursor Position 2),directly after the selected output (Cursor Position 4), directly before the selected line cross (Cursor Position 5), or at the end of the network (Cursor Position 6)

5.4.2.6 'Insert' 'Box' in FBD

Symbol:

Shortcut: <Ctrl>+<B>

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

184 The Editors

The Graphic Editors

With this command, operators, functions, function blocks and programs can be inserted. First of all, it is always inserted an "AND" operator. This can be converted by Selection and Overwrite of the type text ("AND") into every other operator, into every function, into every function block and every program. You can select the desired POU by using Input Assistant (<F2>). If the new selected block has another minimum number of inputs, these will be attached. If the new block has a smaller highest number of inputs, the last inputs will be deleted.

In functions and function blocks, the formal names of the inand outputs are displayed.

In function blocks there exists an editable instance field above the box. If another function block that is not known is called by changing the type text, an operator box with two inputs and the given type is displayed. If the instance field is selected, Input Assistant can be obtained via <F2> with the categories for variable selection.

The newest POU is inserted at the selected position:

If an input is selected (Cursor Position 2), then the POU is inserted in front of this input. The first input of this POU is linked to the branch on the left of the selected input. The output of the new POU is linked to the selected input.

If an output is selected (Cursor Position 4), then the POU is inserted after this output. The first input of the POU is connected with the selected output. The output of the new POU is linked to the branch with which the selected output was linked.

If a POU, a function, or a function block is selected (Cursor Position 3), then the old element will be replaced by the new POU.

As far as possible, the branches will be connected the same way as they were before the replacement. If the old element had more inputs than the new one, then the unattachable branches will be deleted. The same holds true for the outputs.

If a jump or a return is selected, then the POU will be inserted before this jump or return. The first input of the POU is connected with the branch to the left of the selected element. The output of the POU is linked to the branch to the right of the selected element.

If the last cursor position of a network is selected (Cursor Position 6), then the POU will be inserted following the last element. The first input of the POU is linked to the branch to the left of the selected position.

All POU inputs that could not be linked will receive the text "???". This text must be clicked and changed into the desired constant or variable.

If there is a branch to the right of an inserted POU, then the branch will be assigned to the first POU output. Ansonsten bleiben die Ausgänge unbelegt.

5.4.2.7 'Insert' 'Input'

Symbol:

Shortcut: <Ctrl>+<U>

WAGO-I/O-SYSTEM 759 WAGO-I/O-PRO 32

Соседние файлы в папке 759-332