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

188 The Editors

The Graphic Editors

5.4.3 The Ladder Editor

This is how a POU written in the LD appears in the WAGO-I/O-PRO 32 editor:

All editors for POUs consist of a declaration part and a body. These are separated by a screen divider.

The LD editor is a graphic editor. The most important commands are found in the context menu (right mouse button or <Ctrl>+<F10>).

For information about the elements, see Ladder Diagram (LD).

5.4.3.1 Cursor Positions in the LD Editors

The following locations can be cursor positions, in which the function block and program accessing can be handled as contacts. POUs with EN inputs and other POUs connected to them are treated the same way as in the Function Block Diagram. Information about editing this network part can be found in the chapteron the FBD Editor.

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

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

The Editors 189

The Graphic Editors

2.Every Contact or Function Block

3.Every Coil

4.The Connecting Line between the Contacts and the Coils.

The Ladder Diagram uses the following menu commands in a special way:

5.4.3.2 'Insert' 'Contact'in LD

Symbol:

Shortcut: <Ctrl>+<O>

Use this command in the LD editor in order to insert a contact in front of the marked location in the network.

If the marked position is a coil or the connecting line between the contacts and the coils, then the new contact will be connected serially to the previous contact connection.

The contact is preset with the text "???". You can click on this text and change it to the desired variable or the desired constant. For this you can also use the Input Assistant.

5.4.3.3 'Insert' 'Parallel Contact'

Symbol:

Shortcut: <Ctrl>+<R>

Use this command in the LD editor to insert a contact parallel to the marked position in the network.

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

190 The Editors

The Graphic Editors

If the marked position is a coil or the connection between the contacts and the coils, then the new contact will be connected in parallel to the entire previous contact connection.

The contact is preset with the text "???". You can click on this text and change it to the desired variable or the desired constant. For this you can also use the Input Assistant.

5.4.3.4 'Insert' 'Function Block in LD'

Shortcut: <Ctrl>+<B>

Use this command in order to insert an operator, a function block, a function or a program as a POU. For this, the connection between the contacts and the coils, or a coil, must be marked. The new POU at first has the designation AND. If you wish, you can change this designation to another one. For this you can also use the Input Assistant. Both standard and self-defined POUs are available.

The first input to the POU is placed on the input connection, the first output on the output connection; thus these variables must definitely be of type BOOL. All other inand outputs of the POU are filled with the text "???". These prior entries can be changed into other constants, variables or addresses. For this you can also use the Input Assistant.

5.4.3.5 'Insert''Coil' in LD

Symbol:

Shortcut: <Ctrl>+<L>

You can use this command in the LD editor to insert a coil in parallel to the previous coils.

If the marked position is a connection between the contacts and the coils, then the new coil will be inserted as the last. If the marked position is a coil, then the new coil will be inserted directly above it.

The coil is given the text "???" as a default setting. You can click on this text and change it to the desired variable. For this you can also use the Input Assistant.

5.4.3.6 POUs with EN Inputs

If you want to use your LD network as a PLC for calling up other POUs , then you must merge a POU with an EN input. Such a POU is connected in parallel to the coils. Beyond such a POU you can develop the network further, as in the Function Block Diagram. You can find the commands for insertion at an EN POU under the menu item 'Insert' 'Insert at Blocks'

An operator, a function block, a program or a function with EN input performs the same way as the corresponding POU in the Function Block Diagram, except that its execution is controlled on the EN input. This input is annexed at

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

The Editors 191

The Graphic Editors

the connecting line between coils and contacts. If this connection carries the information "On", then the POU will be evaluated.

If a POU has been created once already with EN input, then this POU can be used to create a network. This means that data from usual operators, functions, and function blocks can flow in an EN POU and an EN POU can carry data to such usual POUs.

If, therefore, you want to program a network in the LD editor, as in FBD, you only need first to insert an EN operator in a new network. Subsequently, from this POU, you can continue to construct from your network, as in the FBD editor. A network thus formed will perform like the corresponding network in FBD.

5.4.3.7 'Insert' 'Box with EN in LD'

Use this command to insert a function block, an operator, a function or a program with EN input into a LD network.

The marked position must be the connection between the contacts and the coils (Cursor Position 4) or a coil (Cursor Position 3). The new POU is inserted in parallel to the coils and underneath them; it contains initially the designation "AND". If you wish, you can change this designation to another one. For this you can also use the Input Assistant.

5.4.3.8 'Insert' 'Function Block with EN'

With this command you can insert a function block with EN input into a LD network.

The marked position must be the connection between the contacts and the coils (Cursor Position 4) or a coil (Cursor Position 3). The new function block is inserted in parallel to the coils, below them. From the Input Assistantdialog box that appears, you can select whether to insert a user-defined, or a standard (default) function block.

5.4.3.9 'Insert' 'Function with EN'

With this command you can insert a function with EN input into an LD network.

The marked position must be the connection between the contacts and the coils (Cursor Position 4) or a coil (Cursor Position 3). The new function is inserted in parallel to the coils, below them. From the Input Assistantdialog box that appears, you can select whether to insert a user-defined, or a standard function block.

5.4.3.10'Insert' 'Insert at blocks in LD

With this command you can insert additional elements into a POU that has already been inserted (also a POU with EN input). The commands below this

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