Материал: m933302e

Внимание! Если размещение файла нарушает Ваши авторские права, то обязательно сообщите нам

2 - The Visualization Editor in CoDeSys

Change alarm group: Press this button to get the selection tree of the alarm configuration, which offers all alarm groups currently defined. Choose the desired group (which even may contain just one alarm).

Priority: Define the priority for which you want to get displayed all alarms. Permissible range: 0 to 255.

Alarm classes: Mark a class which you want to get displayed and press button Add to add the class to the list in the window 'Alarm classes'. Do this for all required classes. In order to remove a marked entry from the alarm classes window press button Delete.

Activate options Column heading resp. Row heading, if the headings should be displayed in the alarm table.

Category Settings for sorting:

Dialog for configuration of an alarm table, category 'Settings for sorting'

Define here according to which criteria the alarm table should be sorted:

Sort column: Sorting according to Priority, Alarm class, Date/Time or Alarm state

Sort order: Ascending or Descending; Example: Ascending according to priority means that the table will start with alarms of priority 0 (if available), followed by higher numbered priorities.

Category Columns:

Define here, which of the columns (alarm parameters) should be displayed in the alarm table: The parameters are defined -- except for date and time (alarm is coming) and alarm state (see CoDeSys User Manual, Alarm Configuration) in the Configuration of the alarm groups: Bitmap,

Date, Time, Expression, Value, Message, Priority, Type, Class, State, Target value (for alarm types DEV+ and DEV-), Deadband.

The CoDeSys Visualization

2-35

2 - The Visualization Editor in CoDeSys

Dialog for configuration of an alarm table, category 'Columns'

Using the buttons ">", ">>", you can take single resp. all parameters from the left to the right window. The selection defined in the right window will be displayed in the alarm table. Using the buttons "<" resp. "<<" entries can be removed from the selection.

For each column you can open the dialog 'Configure columns' by a the right window. In this dialog Column header and Column width

Category Selection settings for alarm table:

double-click on the entry in can be defined.

Dialog for configuration of an alarm table, category 'Settings for alarmtable'

Define here some settings for the display for the chosen table fields:

Selection color: This button opens the standard dialog for choosing a color. Define the color in which selected fields should be displayed.

2-36

The CoDeSys Visualization

2 - The Visualization Editor in CoDeSys

Row height: Height of the table rows in Pixel.

Slider size: Height of the slider (Pixel) at the bottom of the table.

Frame around selected rows: If this option is activated, selected table rows will get a frame.

Show statusline: If this option is activated, below the alarm table a status bar will be displayed providing the following buttons for the operation in online mode:

Acknowledge: All alarm entries marked in the alarm table get acknowledged. Acknowledge all: All alarm entries listed in the alarm table get acknowledged.

History: If this button is pressed, instead of the current status of the alarms the table will show a complete list of all events which have occurred up to now (all transitions between any alarm stati). In this list no acknowledgement is possible! Any new events will be added currently.

If you have defined a record file, also there you will find this history for all alarm classes, for which the action 'Save' has been activated.

Start: cancels Stop (see below)

Stop: The current update of the list with newly occurring events will be stopped until it is restarted by pressing button 'Start'.

Acknowledge variables: This option is only available as long as you have not chosen option 'Show statusline' (see above). If it is activated, the functions described above for the status string buttons can get controlled by variables. In order to define these variables, choose a function from the selection list and enter a project variable in the assigned edit field. Thus for example the acknowledgement of all alarms in online mode can be done by a rising edge of the assigned variable.

Trend

Dialog for configuration of a Trend element

The Trend element can be used to log the time dependent behaviour of variable values in the online mode. It can be compared with the trace functionality. The online presentation is done in a diagram, in case of logging to a text file each of the values is written to a separate line.

In the dialog for configuring visualization elements in category 'Trend' you can do the following settings :

Curve: X/t, horizontal axis = time axis, vertical axis = scale of values

The CoDeSys Visualization

2-37

2 - The Visualization Editor in CoDeSys

Orientation: Left-right or Right.-left: The latest value will be displayed on the left/right side;

Axis:

Horizontal Axis:

Dialog for configuration of the horizontal axis in the trend element

Division lines: Activate option 'visible', if vertical division lines should be displayed which are elongating the scale marks. In this case define the 'Scale': The given number defines the interval between the division lines on the horizontal axis. Type (normal ___, dashed _ _ _, dotted ....., dashdotted _ . _ .) and color of the lines can be defined in dialogs which will open when you perform a mouse-click on the corresponding rectangle showing the currently set line type resp. color.

Scale: The shown range of the scale is determined by the entry for Duration. If here e.g. " T#20s0ms" is defined, the scale will display a period of 20 seconds. The Main division and the Sub scale division, which will be displayed by the means of long and short marks are to be defined according to the same syntax.

Degree of accuracy: Define here (in the standard format for dates, e.g. T#5ms) the interval for displaying the current values of the variables.

Legend: Here you define the display of the legend. Via button Font the standard dialog for setting the font will be opened. At Scaling define the distances between the particular letterings on the scale (e.g. T#4ms, if the scale markings should get a lettering each 4 milliseconds. The lettering will contain the time and/or date, depending on which options are activated. The desired format each can be defined in the field 'format'.

Variables: Here you can define project variables, which contain the zoom values resp. offset values for the horizontal scale. For example the offset of the display range of the horizontal axis will be set to "10" as soon as the variable assigned here gets value 10.

Symbol bar: If option use is activated, at the bottom of the element a horizontal symbol bar will be added, providing buttons for scrolling and zooming in online mode. The simple arrow buttons will move the displayed range along the time axis step by step, the double arrow buttons will shift it to the end resp. start of the record. The zoom buttons allow a zooming of the horizontal scale step by step. To get a possibility to restore the original settings concerning zoom and offset, define the vertical symbol bar to get the 'home' symbol.

2-38

The CoDeSys Visualization

2 - The Visualization Editor in CoDeSys

Vertical axis:

Dialog for configuration of the vertical axis in the trend element

Division lines: corresponding to the horizontal axis (see above)

Scale: Define whether the scale should be displayed at the left or right border of the trend diagram. Choose the Start value (lower end) and End value (upper end) of the scale as well as the Main and Sub scale divisions (longer and shorter markings will be displayed in the here defined distances).

Legend: Font and divisions; see above, horizontal axis Variables: see above, horizontal axis

Symbol bar: see above, horizontal axis, additionally there is a "home" button for restoring the standard settings concerning zooming and offset of the axes.

Recording: Define here whether the trend should be recorded 'only online', i.e. the time dependent behaviour of the variable values will be displayed using the chosen range of the scale, or whether the record should be saved to history file, which can be configured after pressing the button 'History'. The dialog corresponds to that which is used for the configuration of the alarm log file. Regard: If the target-specific option 'Store trend data in the PLC' is activated (see Target Settings, category Visualization), the path defined here will be ignored and the log file will be stored in the download directory of the PLC.

In the log file for each time of measurement a separate line is written which contains the name and the values of all regarded variables. Each line starts with a unique identifier in DWORD format, which is built from the date of measuring.

Choose variable: Press this button to get the dialog Variables, where you can configure the variables for which the trend record should be done and how they should be displayed.

Enter a project variable in column Variable (mouse-click on the field will open an edit frame). It is recommended to use the input assistant <F2> or Intellisense function.

Color and Line type for the display of the variable in the record you can define by a mouseclick on the corresponding field in column Color (standard dialog for choosing a color) resp. by selecting a line type in the corresponding field of column Line type (normal ___, dashed _ _ _, dotted ....., dashdotted _ . _ .).

The CoDeSys Visualization

2-39