Historical Trend Wonderware Intouch:-https://youtu.be/tf_KmkBpKyg
Configuring Real-time Trends Wonderware intouch :-https://youtu.be/UbDIdU8ggJ4
Configuring Historical Trends Wonderware Intouch
Create a Historical Trend Window
Create a new window with the attributes shown in the following figure.
Click OK.
Press the Ctrl+T keys to open the Tagname Dictionary.
Confirm the Log Data option is enabled for IntTag.
Click Save.
Use the >> button to scroll down to RealTag.
Confirm the Log Data option is enabled for RealTag.
Click Save, then Close.
Note: Historical Logging cannot be performed on a Message Tag.
Click Special / Configure / Historical Logging.
The Historical Logging Properties window appears:
Click the Enable Historical Logging check box.
Click OK.
Shutdown WindowViewer if it is running.
DO NOT RESTART WINDOWVIEWER! Create a window similar to the one below utilizing the Hist Trend w/Scooter and Scales, Trend Zoom/Pan Panel, Trend Pen Legend and HistData wizards. Also include two Sliders. Hint: Copy and paste the sliders from the RealTime Trend Window created earlier.
Configure the Trends Wizard
Double-click on the trend.
The Historical Trend Chart Wizard dialog box appears:
Click Suggest to enter tagnames. Suggested names appear automatically. Keep in mind that all of the Trends wizards used in your window must now be associated with the HistTrend tag. Click the Pens button. The Trend Pens dialog box appears.
Double-click in the Pen 1 field.
The Select Tag window appears:
Select the IntTag, then click OK.
Repeat the previous 2 steps for the Pen 2 field, and select the RealTag.
Click OK.
Click OK again to exit the Historical Trend Chart Wizard dialog box.
Define the Trend Zoom/Pan Panel
Double-click the Trend Zoom/Pan Panel. The Trend Panel Wizard dialog box appears.
Click the Suggest button to enter the correct tagnames.
Be sure that the HistTrend tagname is used.
Click OK.
Define the Trend Pen Legend
Doubleclick the first Trend Pen Legend object. This object will display the IntTag tag. The Trend Legend Wizard appears as following.
Click Suggest to enter the correct tagnames. Again, be sure that the HistTrend tagname is used. In the Color group, use green for the Trend Pen. Verify that 1 is entered in the Pen Number box.
Leave all other entries as their defaults.
Click OK.
Double-click the second Trend Pen Legend (for the RealTag tag).
Click Suggest.
Enter a Trend Pen Color of Red and a Pen Number of 2.
Click OK.
Define the HistData Wizard
Double-click the HistData wizard and then click Suggest to enter the HistTrend tag. Enter 50 for the number of records to write per CSV file.
Click OK.
Define the Sliders
If you did not copy the two sliders from the Real Time Trend window, configure them using the steps outlined next.
Double-click the upper slider. This slider will be used for the tag IntTag.
Configure the Slider Wizard dialog box with the following attributes.
TagnameIntTag
Slide Face / Label IntTag Fill color Green Slide Range / Maximum 1000 Decimal Places 0 Leave the other default settings.
Click OK.
Repeat this process for the second slider using:
TagnameRealTag
Slide Face / Label RealTag Fill color Red Slide Range / Maximum 1000 Decimal Places 0 Switch to Runtime.
A message box will appear asking if you want to start the HistData program:
Click Yes.
Move the sliders up and down to change the values and write them to the Historical Log file
Click the Update to Current Time button to update the trend with the most current data. Move the scooters and click the Zoom buttons to zoom in and out. Click the “Save to File” button to perform the HistData extraction. The information extracted may be viewed in spreadsheet format in the .csv file indicated by “Filename” on the HistData Panel Wizard.
Historical Trend Wonderware Intouch :-https://youtu.be/tf_KmkBpKyg
Configuring Real-time Trends Wonderware intouch :-https://youtu.be/UbDIdU8ggJ4
Configuring Real-time Trends
Real-time Trends Real- time trends allow you to chart up to four pens (data values). Historical trends allow you to chart up to eight. Both types of trends are created using special tools in WindowMaker. An optional 16-pen trend wizard is available.
InTouch also provides you with complete trend configuration control. For example, you can specify the time span, value range, grid resolution, location of time stamps, location of value stamps, number of pens, and color attributes.
InTouch also supports a distributed history system that allows you to retrieve historical data from any InTouch historical log file, even those across a network.
Creating a Real-time Trend
A trend object is like any other object drawn in WindowMaker. It can be moved by grabbing it with the mouse or resized by grabbing one of the object handles.
Select the Real-time Trend tool in the Drawing Toolbar.
Click and drag in the window to place the object.
In Runtime, data is written in the trend from right-to-left. There is no limit to the number of trends that can be placed on a window.
Configuration Options
The first time a real-time trend object is pasted into a window, the system default configuration settings are used. Once a real-time trend has been configured, the next trend created will, by default, have the same settings.
Double-click the trend object.
The Real-Time Trend Configuration dialog box appears:
Note: All entries made in the Real Time Trend Configuration dialog box are independent of the size of the trend and cannot be modified in Runtime.
Time Span: Enter the length of time to be displayed horizontally (x-axis) on the trend. Then select the Sec, Min, or Hr option.
Sample-Interval: Enter the frequency at which the trend expression will be evaluated and the chart updated. Then select the Msec, Sec, Min, or Hr option.
Color: Click the Chart Color and select a background color.
Border Color: Select a trend border color. Repeat this process for all color selections.
Time Divisions area – Number of Major Div: Enter the number of major time divisions for the trend. Then select a color for the division lines.
The number of major time divisions must be an even multiple of the number of Minor Div/Major Div.
Time Divisions area – Minor Div/Major Div: Enter the number of minor time divisions to be visible within each major time division. Then select the color for the division lines.
Time Divisions area-Top Labels: Display time labels at the top of the trend.
Time Divisions area-Bottom Labels: Display time labels at the bottom of the trend.
Trends can have both top and bottom labels or no labels at all.
When using time labels, enter the number of time labels per major time division line in the Major Div/Time Label box of the Time Divisions group.
Time Divisions area- Colors: Select a color for the major time division lines.
Value Divisions area: The settings in this area are configured the same way as the settings in the Time Divisions area, except the minor and major value divisions set the vertical value (y-axis) range for the trend. This range uses Engineering Units and is the same for all trended tags.
To display decimal points for the minor and major value divisions at Runtime, they must be formatted in this area of the Real Time Trend Configuration dialog box. For example, 0.00 to 100.00.
Min Value: Must be configured for the Minimum value of a trended tag. Max Value: Must be configured for the Maximum value of a trended tag.
Expression: Enter the tag or expression each Pen will trend.
Up to four pens can be visible in a trend. The pens can be used to display any local tagname or an expression that contains one or more local tagnames. (Message type tags cannot be logged or trended.) The ability to trend expressions is useful in creating custom displays to show tagnames with widely different ranges.
Color: Select the color for each pen to plot each tag in the trend.
Width: Width in pixels of each trace. Selecting a pen width greater than 1 significantly reduces performance in trend updating and printing of the trend.
Select Display Font Button: Displays the Font dialog box. Select the font, style and size to use when printing the trend.
Only update when in memory: Update your trend only when it is displayed in the active window.
If this option is not selected, the trend will be updated constantly, even if it is not in an open window. This may result in slightly slower system performance.
Optimizing Real-time Trend Performance Set the pen width to 1.
Make sure no other objects are placed on top of the Real-time trend. Lower the number of samples being taken.
For example, if the Time Span is set to 30 minutes and the Sample Interval is set to 2 seconds, the number of samples taken during the 30 minutes will be calculated as: 30* 60/2 = 900
If the Time Span is set to 30 minutes and the Sample Interval is set to 5 seconds, the number of samples taken during the 30 minutes will be calculated as: 30* 60/5 = 360
Configuring Real-time Trends
Import and Convert the Real Time Trend Window
Configure a Real Time Trend Import and Convert the Real Time Trend Window This task begins with importing a window and performing a tag conversion. Detailed steps for these operations are contained in previous labs. Close all open WindowMaker windows, shut down WindowViewer, and import the Real Time Trend window from the wwimport directory.
Open the Real Time Trend window.
Press F2 to select all objects on the window. S
ubstitute and convert the tags to Local.
Select the Real-Time Trend tool in the Drawing toolbar.
Add the Real-Time Trend object to the gray pane of the Real Time Trend window.
Resize the Real-Time Trend object to occupy most of the pane. The Real Time Trend window should now look similar to the following figure.
Configure a Real Time Trend
Double-click on the trend to display the Real Time Trend Configuration dialog box. Set the Time/Time Span to 30 Sec. Set the Sample/Interval to 1 Sec.
Set the Value Divisions/Max value to 1000.
Double-click in the Expression field for Pen 1 and select RealTag.
Double-click in the Expression field for Pen 2 and select IntTag.
For Pens 3 and 4 enter the following: Pen 3: $Second*10
Pen 4: DiscTag1*250 Set each Pen Width value to 2.
The Real Time Trend Configuration dialog box should now look like the following figure:
Click OK and switch to Runtime.
Move the sliders up and down and click on the DiscTag1 button to get values into the trend. You will see the trace lines reflect slider movements. (You may need to acknowledge alarms).
Also Read:-