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

6 - The Resources

which are calculated for the components a, b, c by the addition of base offsets and template defined offsets: Indices: 16#2301, 16#2302, 16#2303; SubIndices:16#23, 16#33, 16#43.

Basing on this automatically created entries now you can continue to edit the parameter list.

6.11.4Managing parameter lists

Insert list

Shortcut: Ins

To insert a new parameter list in the Parameter Manage use the command 'Insert list...', resp. 'Insert new list' in the 'Insert' or context menu. The commands are available when the focus is in the empty navigation window resp. on an already existing entry in the navigation tree.

The dialog 'Insert list' opens:

Dialog 'Insert list'

Insert a Name for the new parameter list (must be unique within the list type) and choose one of the following list types:

Variables

Entries for process variables

 

 

Parameters

Entries for data, whose values remain unattached by the process

 

 

Template

Template of attribute setting for the components of a function

 

block or a structure

 

 

Instance

Entries for variables of type of a function block or a structure,

 

basing on the corresponding template (see above)

 

 

CoDeSys V2.3

6-63

 

 

 

Parameter Manager ..

 

Mappings

 

Entries for process variables, intended for being used in the PDO

 

 

 

 

 

 

 

mapping of a CAN Device. This type is only available, if supported

 

 

 

 

by the target system !

 

 

 

 

 

 

 

System parameters

 

Entries for parameters whose values are not attached by the

 

 

 

 

process and which are defined by the target system

 

 

 

 

 

 

After confirming the settings and closing the dialog with OK the new parameter list will appear as an entry in the navigation window, the list type indicated by the icon. In the table editor the appropriate attributes will be displayed as column titles. Selection and order of the columns are defined by a target specific description file, otherwise the default settings are used. Now you can edit the table, by entering a line for each desired parameter (see Chapter 6.11.4, Editing a parameter list).

Rename List

The parameter list, which is currently marked in the navigation window, can be renamed by using the command 'Rename list' which is available in the 'Extras' menu or in the context menu. An edit field will open, which you also get when doing a double-click with the mouse on the list name.

Cut / Copy /Paste list

Shortcut: <Strg> + <X>, <Strg> + <C>, <Strg> + <V>,

The command 'Cut' (Edit menu) resp. 'Cut list' (context menu) moves the currently marked list from the navigation window to a temporary buffer, so that you can reinsert it by the 'Paste' command at any other position in the navigation tree. Before re-inserting mark that list, above which you want to insert.

The command 'Copy' resp. 'Copy list' also uses the temporary buffer, but the original navigation tree entry will be kept, and a copy will be added by 'Paste'.

Delete list

Shortcut: <Del>

The list currently selected in the navigation window will be removed by the command 'Delete' ('Edit' Menu) resp. 'Delete list' ('Extras' or context menu).

Please regard: In online mode this command will delete the corresponding list in the runtime system.

6.11.5Editing parameter lists

Which columns (attributes) are displayed:

The currently marked parameter list (navigation window) will be displayed in the table window as defined by a target specifc description file resp. according to the default settings.

This means that the attributes' values of each particular parameter will be displayed in a separate line according to the list-type-specific order and selection of columns.

You can fade out and fade in columns by deactivating/activating them in the context menu when the cursor is pointing to any field of the list column title bar.

For modifying the column move the dividers between the column title fields or use one of the commands available in the context menu when the cursor is placed on a column title field: Command Standard column width will set a standard width for all columns which makes them all visible in the window. Maximize width will change the width of the currently focussed column so that each entry will be fully displayed.

Commands for editing a parameter list entry:

The following commands for editing a parameter list are available in the context menu resp. in the menus 'Insert' or 'Extras':

Inserting /Deleting lines:

6-64

CoDeSys V2.3

 

6 - The Resources

Insert line resp.

A new entry (line) will be inserted before that one where the

New line

cursor is currently placed.

Line after resp.

A new entry (line) will be inserted after that one where the

New line after

cursor is currently placed. .

Shortcut:<Ctrl><Enter>

 

Delete line

The line, where the cursor is currently placed, will be deleted.

Shortcut: <Shift>+<Del>

 

Cut, copy, paste line

These commands can be used to move (cut/paste) or to copy

 

(copy/paste) the selected line.

Editing attribute values:

If a new line for a parameter entry is inserted, the attribute fields will be automatically filled with target specific default values. See chapter 6.11.3, 'Parameter List Types and Attributes' for the possible attributes. To enter or edit an attribute value, click on the corresponding field. An edit field will be opened, if the attribute is editable. The input assistant (<F2>) will be available in fields where a component of the CoDeSys project should be entered.

Press <Enter> to close the entry.

Use the arrow keys to jump to another field.

Press <Del> to delete the entry of the currently edited field.

In order to toggle the input format between 'decimal' and hexadecimal' use the command 'Format Dec/Hex' in the 'Extras' menu.

Press <F6> in order to set the focus to the navigation window (and back). Options:

Below the table in the editor window there can be activated the following options (availability depending on list type):

Download with program: At a login the list will be downloaded automatically to the controller. Synchronous actions: All read-/write accesses on other POUs defined for any list.

entries, will be executed by the target system synchronously with the call of the respective entry.

Sorting parameter lists

The sequence of entries within a parameter list can be sorted concerning an attribute (column) in ascending or descending order of the attribute values. This works in offline and in online mode.

Perform a mouse-click on the field which contains the column title of the desired attribute. Thus the table lines will be re-sorted and in the column title field of the attribute am arrow symbol will be displayed, showing the current sorting (pointing upwards = ascending sort sequence, pointing downwards = descending sort sequence).

6.11.6Parameter Manager in Online Mode

List transfer between Editor and Controlling Unit

In online mode the parameter lists, which have been created in the editor, can be downloaded to resp. uploaded from the runtime system. Furtheron you can write single parameter values to the runtime system.

Please regard: At login automatically a download of all parameter lists will be done for which the option 'Load with project' is activated !

CoDeSys V2.3

6-65

Parameter Manager ..

The current value of each parameter is monitored in an additional column which is displayed in the parameter manager in online mode :

The following commands are available in the 'Extras' menu for handling the list transfer between editor and controller:

Delete list

The list currently marked in the navigation window will be deleted from the PLC

 

runtime system.

Write list

This command will open the dialog 'Copy objects' where you can select from

 

the available lists those you want to download to the runtime system. The

 

download will be done as soon as you confirm with OK.

Read list

All lists of type 'Parameters' will be read from the runtime system and loaded

 

into the Parameter Manager.

Write values

All values defined in column 'Value' will be written to the parameter list in the

 

runtime system. To write single values, perform a double-click on the

 

respective field in the column to get the dialog 'Write value', as known from the

 

function 'Online' 'Write values'.

Write default values The values defined in column 'Default' will be written to the parameter list in the runtime system.

Take over values The current values will be read from the runtime system and be uploaded to column 'Value'.

The command Format Dec/Hex is also available to toggles the input format between 'decimal' and hexadecimal' .

Parameter lists in boot project

It depends on the target system, whether parameter lists will be regarded when a boot project is created.

6.11.7Export / Import of parameter lists

'Extras' 'Export'

The command 'Export' of the 'Extras' menu can be used to export the lists of the Parameter Manager to a XML-file. This file for example might be imported to another project by using the import function in the CoDeSys Parameter Manager. The standard dialog for saving a file will be opened, the file extension *.prm will be preset. All lists available in the Parameter Manager will be written to the export file.

The content of the Parameter Manager also can be exported using the general project export function ('Project' Export').

'Extras' 'Import'

The command 'Import' of the 'Extras' menu can be used to import a XML-file which describes parameter lists. This file for example might be created by using the export function in the CoDeSys Parameter Manager.

If the import file contains a list, the name of which is already used in the Parameter Manager, a dialog will open asking the user whether the existing list should be overwritten.

6-66

CoDeSys V2.3

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