The text of a manual · part 18 of 41
E-terminals Programming manual: 8 Trends
Pages 150 to 157 of 335, from E-terminals Programming manual
The original document is the PDF (4.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
For the Beijer Electronics AB E200
Page 150
Trends
8
Trends
This chapter is not valid for E50, E100 and E200. This section describes trends, real-time trends and historical trends.
8.1 Historical trends Only valid for E600, E700 and E710. This function means that analog values from the PLC system are collected and presented in a trend object while running. The presentation is in the form of a curve. The values collected are stored in the terminal’s project memory. It is possible to define several independent trend curves in the same or different blocks. The total number is limited by the project memory and the RAM of the terminal. The use of other objects and functions affect the total number of trends in a project, e.g. the number of alarms. Such things as the time interval between collection of data and how many values are to be stored are defined in the trend object.
Project memory
Historic trend data
139
Page 151
Trends
Calculate the trend size If you want to know how much the trend data will occupy of the project memory the following calculation must be made. S = TOS + AK (28 + (645 * ((AS / 100) + 1)) S=The number of bytes. TOS=TrendObjectSize, if all parameters for a trend object are changed the TOS will be 320 bytes. AK=The number of defined curves in the trend object. AS=The number of Samples is rounded up to the nearest hundred. Note! Even the RAM of the terminal can cause a limit of the number of trends in a project. The limit is dependent of other objects and functions used in the project.
Presentation in run-time mode Trend curves can show historic data in the run-time mode. Mark the required trend object and press [ENTER]. A dialog square is now shown and the date for the data to be presented can be chosen. ”History” is shown at the bottom of the square. Press [ENTER] again to return to real-time display. Trend data is stored in the files whose names are stated when the trend object is defined.
140
Page 152
Trends
8.2 Real-time trends Only valid for E300. This function means that analog values from the PLC system are presented in a trend object while running. The presentation is in the form of a curve. No values are stored in the terminal’s project memory and no historic data can be shown. It is possible to define several independent trend curves in the same or different blocks. The total number of 10 trends can be used in an application.
141
Page 153
Trends
8.3 Defining trend objects Trend objects are defined as other dynamic objects in a block. The object can be linked to up to six analog signals (two in E300 and E600). Unlike other objects, trend objects must be given a name with 1 to 8 characters. The first character must be a letter or a number. The standards for naming files in MS DOS are applied. The following parameters are defined for a trend object. Under Terminal options in the Setup menu you can deside if trends are going to be stored when changed or if all samples shall be stored. For more information se “The Setup Menu” on page 72
Parameter
142
Description
Name
State the name of the object. The name must be unique for each object.
Curve
Select the curve you want to edit 1-2 in E300, E600 and 1-6 in E700/E710.
Analog signal
The analog signals the object shall sample and present the values for. Only 16-bit numbers can be used. For valid devices see the driver manual.
Color
Select a color for each curve.
Offset and Gain
Used to scale register value. See the section General parameters.
Page 154
Trends Parameter
Description
Enable
The digital signal which when set starts the collection of data. Data collection ceases if the signal is set to zero. The parameter needs not be stated.
Y Min value reg.
The minimum value on the Y-axis loaded from the stated PLC register.
Y Minimum value
The minimum value on the Y-axis. (If Y Min value reg. is defined this is the minimum value that can be loaded from the register.)
Y Max value reg.
The maximum value on the Y-axis loaded from the stated PLC register.
Y Maximum value
The maximum value on the Y-axis. (If Y Max value reg. is defined this is the maximum value that can be loaded from the register.)
Y Scale
States which side of the Y-axis shall be shown, to the left, right, both or neither.
Y Scale division
The interval between the scale number on the Y-axis.
Y Scale ticks
The interval between the scale ticks displayed.
X Sample interval
States the time interval between the collection of data. Minimum value is 1 second and maximum value is 100 hours.
X Stored samples
States how many values shall be stored. The maximum number of values are 13000. Not valid in E300.
X Time range
States the time interval to be shown in the trend diagram.
X Time scale division
The interval between the scale number on the X-axis.
X Time scale ticks
The interval between the scale ticks displayed.
Sample full limit
State the number of samples when the samples full signal shall be set. Not valid in E300.
Sample full signal
Select a signal which will be set when the number of samples reach the value stated in the parameter Sample full limit. Not valid in E300.
Frame
Select if a frame shall be printed around the object.
BG
Select background color for the object.
Scale
Select the color of the scale in the object.
Erase trend data signal
The digital signal which when set will erase all historic trend data. Not valid in E300.
Grid
Select if grid shall be displayed in the object.
Grid color
Select a suitable color for the grid.
143
Page 155
Trends
Note! If you copy a block containing a trend object you must change the name of the trend object. Two trend objects may not have the same name.
8.4 Transferring historical trend data Trend data and recipes can be transferred to and from a personal computer with the program File Transfer (a icon in the program group HMI Tools) for calculating statistics and other types of presentation and storage. Trend files can for example be opened directly in Excel for statistical calculations. See the manual for HMI Tools.
Trend files The name of the trend files is given for each trend when the trend objects are defined. The file will be allocated the extension .SKV. The format for each line in the trend file is as follows; DDDD;TTTT;AAAA;BBBB;CCCC;DDDD;EEEE;FFFF: Format
Description
DDDD
Date format given in Setup.
TTTT
Time format given in Setup.
AAAA
Trend curve 1.
BBBB
Trend curve 2 (if defined).
CCCC
Trend curve 3 (if defined).
DDDD
Trend curve 4 (if defined).
EEEE
Trend curve 5 (if defined).
FFFF
Trend curve 6 (if defined).
The oldest value is shown on the first line of the file and the latest on the last line. It is only when the value is changed a new row in the file is added. The .SKV format can be imported directly to Microsoft Excel. You can use the diagram manager to create statistical diagrams in Excel. It is not possible to alter something in the file and then send it back to the terminal. The picture below shows an example of how it can appear in Excel.
144
Page 156
Trends
File Help 1996-01-04} Insert Row | Delete Row | Exit | Device Value el | | | a a 9396-01-04 21:08:16 16 61 46 31 16 1996-01-04 21:08:18 50 55 40 25 10 1996-01-04 21:08:20 72 57 42 27 12 1996-01-04 21:08:21 83 58 43 28 13 1996-01-04 21:08:22 g4 59 44 29 14 1996-01-04 21:08:23 o5 60 45 30 15 1996-01-04 21:08:24 16 61 46 31 16 1996-01-04 21:08:25 27 62 47 32 7 1996-01-04 21:08:26 38 63 48 33 18 1996-01-04 21:08:27 49g 64 49 34 19 1996-01-04 21:08:28 50 65 50 35 20 1996-01-04 21:08:29 61 66 51 36 21 1996-01-04 21:08:30 72 67 52 37 22 1996-01-04 21:08:31 83 68 53 38 23 1996-01-04 21:08:32 94 69 54 39 24 1996-01-04 21:08:33 o5 70 55 40 25 1996-01-04 21:08:34 96 71 56 41 26 1996-01-04 21:08:35 87 72 57 42 27 1996-01-04 21:08:36 78 73 58 43 28 1996-01-04 21:08:37 69 74 59 44 29 1996-01-04 21:08:38 50 75 60 45 30 1996-01-04 21:08:39 41 76 61 46 31 1996-01-04 21:08:40 32 77 62 47 32 1996-01-04 21:08:41 23 78 63 48 33 1996-01-04 21:08:42 14 79 64 49 34 1996-01-04 21:08:43 Oo5 80 65 50 35 1996-01-04 21:08:44 96 81 66 51 36 1996-01-04 21:08:45 87 82 67 52 37 oa
145
Page 157
Trends
146