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

126Components of WAGO-I/O-PRO 32

General Editing Functions

4.5.9 'Edit' 'Replace'

With this command you search for a certain passage just as with the command 'Edit' 'Find', and replace it with another. After you have chosen the command the dialog box for find and replace appears. This dialog box remains open until the button Cancel or Close is pressed.

The button Replace replaces the current selection with the text in the field

Replace with.

The button Replace all replaces every occurrence of the text in the field Find next after the current position with the text in the field Replace with. At the end of the procedure a message announces how many replacements were made.

x Dialog box for find and replace

4.5.10'Edit' 'Input Assistant'

Shortcut: <F2>

This command provides a dialog box for choosing possible inputs at the current cursor position in the editor window. In the left column choose the desired input category, select the desired entry in the right column, and confirm your choice with OK. This inserts your choice at this position.

The categories offered depend upon the current cursor position in the editor window, i.e. upon that which can be entered at this point (e.g. variables, operators, POUs, conversions, etc.).

If the option With arguments is active, then when the selected element is inserted, the arguments to be transferred are specified with it, for example: function block fu1 selected, which defines the input variable var_in: fu1(var_in:=);

Insertion of function func1, which uses var1 and var2 as transfer parameters: func1(var1,var2)

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

Components of WAGO-I/O-PRO 32

127

General Editing Functions

 

 

 

It is basically possible to switch between structured and unstructured display of the available elements. This occurs through activation/deactivation of the Structured Display option.

4.5.10.1Unstructured Display

x Dialog for unstructured input assistance

The POUs, variables or data types in each category are simply sorted linearly in alphabetical order.

At various places (e.g. in the Watch List), multi-stage variable names are required. In that event, the Input Assistant dialog displays a list of all POUs as well as a single point for the global variables. After each POU name there is a point. If a POU is selected by doubleclick or by pressing <Enter>, a list of the variables belonging to it opens. If instances and data types are present, it is possible to open further levels in the hierarchy display. OK transfers the most recently selected variable.

You can switch to structured display through activation of the Structured

Display

4.5.10.2Stuctured Display

x Dialog for structured input assistance

If Structured display is selected, the POUs, variables or data types will be sorted hierarchically. This is possible for standard programs, standard functions, standard function blocks, defined programs, defined functions, defined function blocks, global variables, local variables, defined types, watch variables. The visual and hierarchical display corresponds to that of the Object Organizer; if elements in a library are referred to, these are inserted in alphabetical order at the very top and the pertinent hierarchy is displayed as in the Library Manager.

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

128Components of WAGO-I/O-PRO 32

General Editing Functions

The inand output variables of function blocks which are declared as local or global variables are listed in the category 'Local Variables' or 'Global Variables' under the instance name (e.g. Inst_TP ET, Inst_TP IN,...). To get there, select the instance name (e.g. Inst_TP) and confirm with OK.

If the instance of a function block is selected here, the option With arguments may be selected. In the text languages ST and IL as well as during task configuration, the instance name and the input parameters of the function block are then inserted.

For example, if Inst (DeklarationInst: TON;) is selected, the following is inserted:

Inst(IN:= ,PT:=)

If the option is not selected, only the instance name will be inserted. In the graphical languages or in the Watch window, only the instance name is generally inserted.

Components of structures are displayed in an analog fashion to function block instances.

For enumerations, the individual enumeration values are listed under the enumeration type. The order is: enumerations from libraries, enumerations from data types, local enumerations from POUs.

The general rule is that lines containing sub-objects are not selectable (except instances, see above), but can only have their hierarchy display expanded or contracted by one level, as for multi-stage variable names.

If Input Assistant is invoked in the Watch and Receipt Manager or in the selection of trace variables in the trace configuration dialog, it is possible to make a multiple selection. When the <Shift> key is pressed, you can select a range of variables; when the <Ctrl> key is pressed you can select many individual variables. The selected variables are so marked. If, during range selection lines are selected that do not contain valid variables (e.g. POU names), these lines will not be included in the selection. When individual selections are made, such lines can not be marked.

In the watch window and in trace configuration it is possible to transfer structures, arrays or instances from the Input Assistant dialog. As a double click with the mouse button is associated with the extension or contraction of the element's hierarchy display, selection in these cases can only be confirmed by OK.

Thereafter, the selected variables are inserted line by line in the watch window, that is each selected variable is written on a separate line. In the case of trace variables, each variable is inserted in a separate line of the trace variables list.

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