Kuhnke Electronics Instruction Manual

Kuhnke Electronics Instruction Manual Kuhnke Electronics Instruction Manual

17.02.2013 Views

Function Libraries configuration to it, the project must not contain module PLC_PRG. (If it is a part of the project it will not be run if a task configuration is defined.) PLC_PRG is a module free-wheeling through 800µs time slices. At the end of the time slice, processing of PLC_PRG is interrupted to give way to the handling of other registered processes. When the task manager reactivates PLC_PRG it will pick up the thread at the point where it was interrupted. Once the last PLC_PRG command has been executed the actions linked to PLC_PRG, i.e. refreshing the process chart, CANopen ∗ , communication etc., will be taken only to start the task afresh afterwards. A long PLC_PRG runtime is an extra burden to communication: - To program non-time-critical sections, use a thread instead (see page 71) ∗ Controllers featuring a CANopen interface only 62 E 700 GB

4.3.3.2 The Task Configurator 4.3.3.3 Task Properties 4.3.3.3.1 Name 4.3.3.3.2 Priority (0-31) Function Libraries The Task Configurator is one of the objects on the Resources tab of the Object Organizer. The Task Editor window has two panes. The pane on the left displays a tree view of the tasks. The first line has 'Task Configuration' in it which is followed by a 'System Events' entry and the separate task items represented by their task name. The relevant program run commands are appended underneath every task item. The right-hand pane consists of a Properties dialog showing the parameters of the item selected on the lefthand pane. Use the dialog to define the tasks, program run commands or system events as appropriate. The configuration options available in the Properties dialogs depend on the target system; they are set by a XML-type description file referenced by the Target file. In case the default definitions contained in the description file have been expanded by tailored definitions, the latter are available for configuration purposes via an extra 'Parameters' tab sheet on the right-hand dialog side. This is the name under which the task appears in the configuration browser where it can be changed by clicking on it or by pressing the spacebar to open a text box. The priority is a numeral between 0 and 31, 0 the highest priority, 31 the lowest. 63

4.3.3.2 The Task Configurator<br />

4.3.3.3 Task Properties<br />

4.3.3.3.1 Name<br />

4.3.3.3.2 Priority (0-31)<br />

Function Libraries<br />

The Task Configurator is one of the objects on the<br />

Resources tab of the Object Organizer. The Task Editor<br />

window has two panes.<br />

The pane on the left displays a tree view of the tasks. The<br />

first line has 'Task Configuration' in it which is followed by<br />

a 'System Events' entry and the separate task items<br />

represented by their task name. The relevant program run<br />

commands are appended underneath every task item.<br />

The right-hand pane consists of a Properties dialog<br />

showing the parameters of the item selected on the lefthand<br />

pane. Use the dialog to define the tasks, program<br />

run commands or system events as appropriate. The<br />

configuration options available in the Properties dialogs<br />

depend on the target system; they are set by a XML-type<br />

description file referenced by the Target file. In case the<br />

default definitions contained in the description file have<br />

been expanded by tailored definitions, the latter are<br />

available for configuration purposes via an extra<br />

'Parameters' tab sheet on the right-hand dialog side.<br />

This is the name under which the task appears in the<br />

configuration browser where it can be changed by clicking<br />

on it or by pressing the spacebar to open a text box.<br />

The priority is a numeral between 0 and 31, 0 the highest<br />

priority, 31 the lowest.<br />

63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!