0:05
Good morning everyone thanks for joining us for this webinar on Canvas Trends and Graphs in Cscape 10.
0:11
We spoke 15 minutes presentation if you have any questions we can get to those at the end.
0:17
Hello and welcome to today’s webinar.
0:19
Today we will be looking at trends and graphs for Canvas in Cscape 10. Let’s look at our agenda for today.
0:27
We will start by discussing what trends and graphs in Cscape are.
0:31
We will then look at the different trend and graph types as well as new features available in canvas.
0:37
Finally, we will go through the configuration of these trends and graphs in Cscape 10.
0:43
There will be demonstrations throughout and we will finish with the Q &A session. First, we will look at trends.
0:49
In Cscape, the trend is a graphic object that is used to plot variable values at a continuous sample rate.
0:56
So for each pen that you plot on a trend, there is a variable behind it, and the trend object is sampling that variable and the trend object is sampling that variable at a rate that you configure in Cscape.
1:09
There are many different trend types in Cscape and they vary based on the sample rate, whether or not that they can function and gather data in the background and whether or not they have a historical element to them. There are four different trends available for Canvas in Cscape 10.
1:26
First we have standard trends. Standard trends can work in both the background or the foreground.
1:31
This means that this trend object doesn’t have to be displayed on the screen for it to be sampling data in the background.
1:38
Then if you decide to display the object on your screen, your trend doesn’t reset and you can see the previous data as long as that device or trend has been triggered.
1:48
Standard trends have a fast sample rate and can sample data as fast as once per second, which is 3600 samples per hour.
1:57
Retentive trends are very similar to standard trends.
2:00
The main difference is that retentive trend objects also support history, so you can choose to turn that trend into a historical trend, where not only does it display data on the screen, but it also logs that data to a memory file or a CSV file on a memory card that’s plugged into your OCS.
2:19
We also have two other trend types called scopes. We have a snapshot scope and a continuous scope.
2:25
These trend objects have a faster sample rate, but they also have some limitations.
2:30
With the snapshot scope, you can sample data as fast as every 10 milliseconds.
2:36
However, this object can only operate in the foreground, so it will only gather data if it is on the screen and is triggered.
2:43
As well as this, once the screen or plot is full, it will stop completely.
2:48
The continuous scope object has a slightly slower sample rate of every 50 milliseconds, and also has to be displayed on the screen and triggered to work.
2:57
However, once the screen or plush is full for this object, it will continue to scroll and gather data.
3:03
Next, we will look at the Configuration dialog box for Trends.
3:07
We will start with the Axis Configuration.
3:10
For Trends, the x-axis always represents time.
3:14
You have flexibility to set the units for time, for example in hours, minutes or seconds, as well as how you want it displayed.
3:21
In addition to the x-axis, you have at least one y-axis available to you by default.
3:27
With Cscape 9 and earlier versions, as well as other OCS models, you could only have one y-axis to plot against.
3:35
With Cscape 10 and Canvas, you have the one y-axis by default, but you can also add other y-axes.
3:42
For example, if you want to plot temperature and pressure on the same plot, but need different scales for this.
3:48
So, Canvas and Cscape 10 offer a lot of flexibility for setting up your axes.
3:53
In order for a trend to start gathering data, it needs to be triggered.
3:58
With trends, you have to assign a trigger variable, which is a boolean, and as long as that boolean variable is enabled, then that trend object is operating.
4:07
You can now have up to 16 pens on a single trend, compared to the 4 pens per trend that were allowed with previous versions of Cscape and OCS product lines.
4:16
With Cscape 9 and earlier, as well as other OCS product families, you were restricted to trending integer values only.
4:24
Now with Cscape 10 and Canvas, you can also trend other data types such as double integers and floating point values.
4:32
As well as this, when you add these variables, you can customize their scaling, their minimum and maximum, the legends and the line style.
4:40
You can also configure the appearance of different elements of your trends.
4:44
For example, you have many options available to customize the gridlines, the colors of the pens, the legend and the title of the trend.
4:53
Now we will look at a historical trend we have created in Cscape 10.
4:58
We have created a screen design for our canvas 7D, with a trend graph for oven temperatures taking up the majority of the screen.
5:05
On top of our trend object, we have used a text object for the title of our graph, as well as a jump object for changing screens.
5:13
We will double-click on our trend object and look at our configuration.
5:18
We have set our trend type to Retentive Trend and have also enabled Historic Support for our trend, meaning we have assigned a folder name where the trend files can be stored.
5:28
These will then be stored as CSV files in a folder called ZoneTemp.
5:32
The OCS will also add extra characters onto the end of the folder name to represent the year, so the folder ZoneTemp24, for example, will store all the files created and logged in 2024.
5:45
We have also enabled Replay, so that operators with the appropriate authorization can look at trend data from the past.
5:52
Any operators that don’t have the authorization through the Access feature won’t be able to take advantage of this feature.
6:00
We have assigned a variable called ovenOn, so while this boolean variable is on, we will be trending data.
6:06
We have set a sample rate of once per second, which is 3600 samples per hour.
6:13
Once again, with trends the x-axis always represents time, and for our trend we have chosen an hours and minutes format.
6:21
This will show the time the data was logged.
6:23
On the y-axis, for y1 we have set a scale from 0 to 270, and we have assigned a legend of degrees Celsius, which we can see in the preview window here.
6:34
We also have 8 different pens with this trend graph which represent 8 different temperatures from 8 different zones in an oven, where we would be moving a product through the oven to create a temperature profile.
6:45
Each variable here is listed as a pen, with a minimum value of 0 and a maximum value of 270 degrees Celsius.
6:54
We have also given a legend abbreviation for each pen that will appear at the top of the graph, so we can see what colour represents each variable.
7:02
We have set different solid colors for each zone, with the exception of the very last zone, which we assigned a dotted pink color.
7:10
We will also note that each of these variables is a floating point value, so unlike previous versions of Cscape and other OCS products, we can trend floating point data, as well as other data types instead of just integers.
7:24
So this is our configuration for this particular retentive trend with historic capability.
7:29
Now we will look at our bench setup for this demonstration.
7:33
We have our trend graph screen set up on our Canvas 7D.
7:36
As we can see, we have our pens represented by 8 lines of different colors, in addition to grid lines on the trend.
7:43
These values are currently very stable, with just a minor ripple in each of these pens.
7:49
Let’s look at some of the runtime features for our program.
7:52
If we want to focus on a particular pen, we can turn off the other pens visually at runtime.
7:58
For example, if we want to focus in on the green line, which is Z3, we can visually turn off the other pens by clicking the legend area and isolating our green trend line.
8:09
We can also zoom in and out of our trend using the zoom icons to the right of our trend.
8:15
As we do this, we can see our scale adjusting to the zoom on the left.
8:20
If we want to return to how our scale was before, we can use this 1 to 1 button.
8:25
To see our other pens on our trend again, we can re-select them from our legend area.
8:30
If we want to go back and look at historical data, we can pause the trend, select the open button and from there we can select the starting and ending point for the data that we are interested in.
8:43
Then our program will show any historical data from that time frame, and when we want to return to our live trend, we can select un-pause.
8:50
Now we will look at some of the files that are being saved to the OCS memory card.
8:55
Since we haven’t put a removable media object onto our screen, we will go to the OCS system menu, and then we will select Media.
9:04
We have a zone temp 24 folder saved to our SD card, and inside of this, once per hour, we have a new CSV file that represents today’s date along with the hour.
9:15
So once again, as there are 3600 new entries every hour, we are automatically creating a new file every hour.
9:23
If we had a much slower sample rate, then we might create one file per day instead.
9:28
Next, we will look at XY graphs.
9:31
In Cscape, XY graphs are used to graph data on the screen.
9:35
Whereas trends look at individual variables that are sampled at a preset rate, Graphs are used to display data after it has been gathered and stored in either registers or array variables.
9:47
XY graphs only work in the foreground, so if you want to make a graph of some data that your OCS has gathered, then it needs to be displayed on the screen and triggered.
9:57
There are three different types of graphs available.
9:59
We have the XY graph, which has been available for previous versions of Cscape and OCS product lines, as well as two new graph types, scatter graphs and multipoint graphs.
10:10
XY graphs connect a set of data points as a line on the y-axis that are evenly spaced along the x-axis. Scatter graphs are similar to XY graphs, except the data points are not connected.
10:23
Multipoint graphs can be considered to be true XY graphs where you not only have a set of coordinates for your y-axis, but you also have a set of coordinates for your x-axis, so you’re not guaranteed that the data points will be evenly spaced along the x-axis, because every individual point is plotted using the x and y coordinates as a pair.
10:44
Now we will look at the configuration dialog box for graphs and the featured capabilities.
10:49
Similar to trends, graphs have a trigger boolean variable that needs to be on for the graph object to find the set of data that’s been configured and graph it.
10:59
As well as the trigger variable, you also need to set the number of samples you want to graph in your configuration, which will be the number of points in your graph.
11:08
If you are configuring a multi-point graph, you will need to configure both the x-axis and y-axis coordinates.
11:15
So you will need to configure the variable that’s been assigned to the x-axis, and then all the data points for x and y will be graphed against that x-axis variable.
11:25
If you are using variable-based advanced ladder in your application, then this will be an arrayed variable with enough elements to handle all the number points that you want to graph.
11:35
For register-based advanced ladder, you will specify a starting register, and then the number of points will indicate the registers that you are going to use.
11:44
For example, if R1 is your starting register and you have 50 points that you want to graph, then this range will be from R1 to R50.
11:53
Once you have configured your x-axis, you need to configure your individual pens.
11:58
For a multi-point graph, you can have multiple pens that all represent y-axis coordinates that are all graphed against the x-axis.
12:06
In our example shown, we are graphing two different pens.
12:10
Each of these are arrayed variables because we are using variable-based advance ladder, and we are listing the start of the array where we want to pull the coordinates for those particular points, and the same zone 2 temp elements would represent the x coordinates for that pen on the graph.
12:33
Then both of these will be plotted against the x-axis, which is the variable distance x 0 through 49.
12:41
Similar to the trend object, you have options to customize the appearance of your graph object in your configuration.
12:47
You have many options available to customize the grid, title, legends, pens, and data ranges.
12:55
Now we will return to Cscape 10, and we will switch from our Trends screen to our Graph screen, which is a multipoint graph for temperatures and distance.
13:04
Once again, this takes up the full screen, and we have placed some objects on top of it, such as a jump button to change screens, and a text field that acts as a title for the graph.
13:15
We also have some push buttons.
13:17
When we select the push button in the bottom left, it will cause the logic to capture that data that we want to graph, load it into our arrayed variables that we are going to plot, and then turn on the trigger bit, which will cause our data to be plotted.
13:31
We have another similar push button on the bottom right, which will clear all of our arrayed variable elements.
13:37
And once again, turn on the trigger register to clear out the graph that was previously plotted.
13:42
Now we will double-click on our graph object and look at our graph configuration.
13:47
We have set the graph type to a multi-point graph, so we need to configure an x-axis variable array, which we’ve done here.
13:55
For our graph, we have 61 different elements or points that we will be plotting, so our x-axis values are distance 0 to distance 60.
14:04
Then we have 3 y-axis values that represent different temperature sensors on the product that’s moving through our multi-zone oven, so we can look at the profile of the temperatures for each of the three sensors.
14:16
Once again, we have set our scaling from 0 to 270 degrees Celsius.
14:21
We have given abbreviations for each sensor in our legend, which is all shown in the preview window.
14:27
For our graph, the x-axis does not represent time.
14:31
In this case, our x-axis represents the distance that the product is moving through the oven.
14:36
So this is an oven that has a 3-mesher area that the product is moving through, and we can see the temperatures at different points.
14:44
And once again, we have decided to use Flowshing Point values here.
14:48
So this is our configuration for our graph.
14:51
Now let’s look at our bench setup for this demonstration.
14:55
Here we have our multi-point graph set up on our Canvas 7D, and we haven’t plotted any dashes yet.
15:01
When we select our plot data push button, it starts loading up our values, and then is turning on the trigger bit.
15:08
So now we have the temperature profile of each of the three temperature sensors as the product moves its way through our multi-zone oven.
15:15
So the product heats up from 40 degrees Celsius to about 240 degrees Celsius, and then starts cooling back down before it leaves the oven again.
15:25
We can also tell from the graph that the blue sensor is placed first in the oven, followed by the red sensor and then the green, as all three lines are similar in shape, but delay in the time they increase in temperature.
15:37
Then if we want to clear our graph, we can use our clear plot push button in our program.
15:43
That concludes our webinar for today.
15:45
Thank you so much for listening and the Q &A session will begin shortly.
15:57
Okay that was the last of our current Cscape 10 videos for the moment.
16:05
I’m not seeing any questions currently.
16:11
So if you can see my screen now next week we do have how to test BACnet before doing installations and then we’re following that up with some tank volume calculation function blocks.
16:22The registration links for those are up as usual and if you to come back and watch this or any other previous video at any point they’re all they’re all here too.