![]() ![]() ![]() ![]() ![]() ![]() |
||
![]() |
||
![]() ![]() ![]() ![]() This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc. |
||
![]() |
![]() |
#1 |
Member
![]() ![]() Join Date: Jun 2008
Location: Mohnton, PA
Posts: 1,036
|
PanelView Plus - Building a chart from arrayed data
I'm wondering if it's even possible to take data stored in an array and populate a chart rather than have it displayed as a real-time/historical trend. This is the first time I'm being asked about doing this in a PVPlus. Off the top of my head, I can't think of anything, but really haven't played around with it yet. This kind of stuff is much easier when we have access to behind-the-scenes scripting.
__________________
http://www.essentialintegrations.com |
![]() |
![]() |
#2 |
Lifetime Supporting Member
|
https://rockwellautomation.custhelp....il/a_id/769049
The ActiveX ME Chart Control in Factory Talk View ME. There is a complete PLC/HMI downloadable example at the bottom of the tech note with a word document explaining.
__________________
"We make the solutions up out of modules, so they're all standard, ... They're built for security, reliability, ease of expansion and ease of changing. They're the ideas we had many years ago that tend to get lost today." -Ken Olsen co-founded Digital Equipment Corporation (DEC) ![]() Last edited by id10t_error; May 18th, 2019 at 11:56 AM. |
![]() |
![]() |
#3 |
Lifetime Supporting Member + Moderator
|
Thanks for posting that !
In the past, I've created X-Y charts in RSView ME by faking out the X-axis and "feeding" the time series stored values over a period of time. It's an ugly workaround. The Chart object looks like a much better option. By coincidence, I have a customer with a PV+ v6 application who asked several years ago for the ability to store and show 20 minutes worth of trend data without having to "page back" through a deep trend log. I'm going to revisit their application to see if I can improve it with new FactoryTalk View firmware and that ActiveX. |
![]() |
![]() |
#4 |
Member
![]() ![]() Join Date: Jun 2008
Location: Mohnton, PA
Posts: 1,036
|
Sorry to jump back on this. I'm getting to play with this a bit more extensively on a customer site and I am wondering if our experiences are par for the course given what we are doing. At certain points in the process, we pause to take a "measurement" which consists of about 500 data points, then the process continues. When I load the ME Chart, which pulls data from the UDT in the PLC, it takes 10-11 seconds to load the data. The HMI basically freezes during this period. If this is typical, then I'll accept it and move on, but this just doesn't seem right.
__________________
http://www.essentialintegrations.com Last edited by phuz; August 21st, 2019 at 03:41 PM. |
![]() |
![]() |
#5 | |
Lifetime Supporting Member
![]() ![]() Join Date: Dec 2004
Location: Detroit, SE Michigan
Posts: 3,835
|
Quote:
__________________
I don't always test my code but when I do, I do it in production. |
|
![]() |
![]() |
#6 |
Member
![]() ![]() Join Date: Jun 2008
Location: Mohnton, PA
Posts: 1,036
|
If you find any ways to expedite it, be sure to come back and let us know. I'm trying to play with other ActiveX controls for charts, but there is no documentation on how to implement it in ME. The lack of VBA hinders us quite a bit.
__________________
http://www.essentialintegrations.com |
![]() |
![]() |
#7 |
Member
![]() ![]() Join Date: Sep 2018
Location: Ireland
Posts: 14
|
Sorry to open this up again. I don't suppose anyone here could post the UDT's required to interact with this ActiveX chart object('Chart' and 'DataSeries')? Unfortunately I do not have access to TechConnect to see the example. I tried to create the UDT's based off some rockwell training documents I found but I appear to still have it incorrect. Cheers.
|
![]() |
![]() |
#8 | |
Member
![]() ![]() Join Date: Jun 2008
Location: Mohnton, PA
Posts: 1,036
|
Quote:
__________________
http://www.essentialintegrations.com |
|
![]() |
![]() |
#9 | |
Lifetime Supporting Member
![]() ![]() Join Date: Dec 2004
Location: Detroit, SE Michigan
Posts: 3,835
|
Quote:
__________________
I don't always test my code but when I do, I do it in production. |
|
![]() |
![]() |
#10 |
Member
![]() ![]() Join Date: Sep 2018
Location: Ireland
Posts: 14
|
Thanks guys. Appreciate it!
|
![]() |
![]() |
#11 | |
Member
![]() ![]() Join Date: Sep 2020
Location: Portugal
Posts: 1
|
Quote:
Hi there, I've tried to find the example but I think they hide or something. Someone have that example so I can see how it works? thanks |
|
![]() |
![]() |
#12 |
Member
![]() ![]() Join Date: Aug 2018
Location: Canada
Posts: 79
|
I did it once by hand, but it's pretty tedious. I knew the ActiveX existed but for some reason couldn't make it work.
I made a simple "chart" global object in FTVS consisting of two scales, two fat lines as axes and a bunch of lines segments, as many as I had data points to chart (in my case around 20). I had an AOI in the PLC that when triggered, calculated the starting position, length and angle of each segment within the chart, fed that in arrays which were linked to the line segments on screen by the relevant animations. Worked well, but it was a pain. |
![]() |
![]() |
#13 |
Member
![]() ![]() Join Date: Jul 2019
Location: Eilat
Posts: 11
|
|
![]() |
![]() |
#14 | |
Member
![]() ![]() Join Date: Jun 2008
Location: Mohnton, PA
Posts: 1,036
|
Quote:
Ditch the MLX and get a 5380 CompactLogix. Very affordable Logix platform.
__________________
http://www.essentialintegrations.com |
|
![]() |
![]() |
#15 |
Member
![]() ![]() Join Date: Jul 2019
Location: Eilat
Posts: 11
|
|
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Panelview Plus Data Log File Transfer | Dustin11H3 | LIVE PLC Questions And Answers | 20 | January 8th, 2020 07:37 AM |
panelview plus data collection | roxusa | LIVE PLC Questions And Answers | 10 | April 16th, 2018 03:59 PM |
PanelView 7 - data log on SD card | zitam | LIVE PLC Questions And Answers | 1 | July 15th, 2016 09:02 AM |
Loading .Pre in an array of timers? | dginbuffalo | LIVE PLC Questions And Answers | 24 | March 11th, 2016 06:44 PM |
Panelview Plus data display issues | bozzman2k15 | LIVE PLC Questions And Answers | 3 | May 12th, 2015 11:45 AM |