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

228 Overview of the Resources

PLC Configuration

The available comands and functions are depending on the target system

6.4 PLC Configuration

The PLC Configuration is found as an object in the register card Resources in the Object Organizer. With the PLC Configuration editor, you can describe the I/O-modules connected to the hardware the opened project is established for. In WAGO-I/O-PRO 32 these entries are used for information and the selection of the connected controller is done with the menu Extras \ PLC Selection.

6.4.1 PLC Selection

The selection of the connected controller is done with the menu Extras \ PLC Selection.

All available controllers are shown in a selection list. This list is shown automatically when you login without selecting a controller before.

The selection is accepted with OK or aborted with CANCEL.

6.5 Task Configuration

In addition to declaring the special PLC_PRG program, you can also control the processing of your project using the task management.

The Task Configuration is found as an object in the Resources register card in the Object Organizer. The task editor contains a series of tasks. The task declaration consists of the name of the task, an entry for the priority the task is to have, and an entry for the condition under which the task is to be executed. This requirement can either be a time interval, according to which the task is to be executed, or a global variable, in the event it has a rising edge, brings about an execution.

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

Overview of the Resources

229

Task Configuration

 

 

 

For each task you can now specify a series of programs that will be started by the task. If the task is executed in the present cycle, then these programs will be processed the length of one cycle.

The Task Configuration is displayed in the following form:

The Task Configuration is located in the first line.

Underneath and indented from the Task Configuration, you will find a sequence of task entries (with name, priority, interval, and occurrence).

Below each task entry, there is again a series of program call ups.

x Example for a Task Configuration

In this example of a Task Configuration, Task2 has a lower priority than Task1. Task1, however, is only executed every two seconds. (The entry under Single is disregarded.) Thus, in this Task Configuration, Task1 is executed every two seconds, and, in between, Task2 can be executed at any time, provided that the global variable "Schalten" has a rising edge.

6.5.1Which task is being processed?

For the execution, the following rules apply:

That task is executed, whose condition has been met; i.e., its specified time has expired, or after its condition variable exhibits a rising edge.

If several tasks have a valid requirement, then the task with the highest priority will be executed.

If several tasks have valid conditions and equivalent priorities, then the task that has had the longest waiting time will be executed first.

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

6.5.2Working in the Task Configuration

At the heading of the Task Configuration are the words "Task Configuration." If a plus sign is located before the words, then the sequence list is closed. By doubleclicking on the list or pressing <Enter>, you can open the list. A minus sign now appears. By doubleclicking once more, you can close the list again.

For every task, there is a list of program call-ups attached. Likewise, you can open and close this list the same way.

With the 'Insert' 'Insert Task' command, you can insert a task.

With the 'Insert' 'Insert Program Call', a program call will be inserted.

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

230 Overview of the Resources

Task Configuration

With the 'Extras' 'Edit Entry' command, you can edit the task characteristics or the program call-up, depending on the selected element.

By clicking on the task or program name, or by pressing the <Space bar>, you can set an edit control box around the name. Then you can change the designation directly in the task editor.

6.5.3'Insert' 'Insert Task' or 'Insert' 'Append Task'

With this command you can insert a new task into the Task Configuration.

If a task is selected, then the 'Insert Task' command will be at your disposal. The new task will be inserted in front of the cursor. If the words Task Configuration are selected, then the 'Append Task' is available, and the new task will be appended to the end of the existing list.

The dialog box will open for you to set the task attributes.

x Dialog Box for Setting Task Attributes

In the dialog box you can enter the desired attributes: the Name; the Priority (a number between 0 and 31, with the following validities: 0 has the highest, and, 31, the lowest priority); the Interval after which the task should be started again; or a variable that, following a raising edge, will cause an execution of the task (in the Single field). With the Select... button, you can open the Input Assistant to select from the declared variables.

If an entry is on hand for both the interval and for the variable, then only the interval time will be considered for the execution requirement. If an entry has not been made in either of the two fields, then the execution intervall is depending on which target system is used (see the specific runtime system documentation; e.g. an interval of 10 ms is set by the runtime WAGO-I/O- PRO 32SP NT V2.2).

6.5.4 'Insert' 'Insert Program Call' or 'Insert' 'Append Program Call'

With these commands you will open the dialog box for entering a program call to a task in the Task Configuration.

With 'Insert Program Call', the new program call is inserted in front of the cursor, and with 'Append Program Call', the program call is appended to the end of the existing list.

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

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