You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

Reply
 
Thread Tools Display Modes
Old February 23rd, 2015, 01:13 PM   #1
lunenburger
Member
Canada

lunenburger is offline
 
lunenburger's Avatar
 
Join Date: Jul 2008
Location: Summerside
Posts: 146
Resize Trend VCR buttons for FactoryTalk View SE

Does anyone know if it is possible to resize the VCR buttons for the Standard FactoryTalk View SE buttons?
I find they are too small for our touch screens, and the operators have a hard time scrolling through the trends.
I have looked in all the properties I can find, and I can't see anything....
  Reply With Quote
Old February 23rd, 2015, 04:46 PM   #2
Andy6
Member
Canada

Andy6 is offline
 
Andy6's Avatar
 
Join Date: Apr 2011
Location: In the garage.
Posts: 139
You can create your own buttons. Under "Objects/Key", then link the button to the trend.
I think you'll lose some functionality (jump to end of trend) using those keys, but they are much easier to press from a touchscreen.
  Reply With Quote
Old February 24th, 2015, 01:11 AM   #3
rdrast
Lifetime Supporting Member
United States

rdrast is offline
 
rdrast's Avatar
 
Join Date: Apr 2003
Location: South Carolina Lowcountry
Posts: 5,473
I'll generally include some buttons to set the timespan to fixed increments, 5min, 15min, 30min, 1hr, 4hr, 8hr, plus some pan left/right buttons. I also use a popup window to select which tags are displayed, with a list of toggle on/off buttons that auto-populate from the pens configured on the trends.

VBA is the best way to handle all of that.
Another trick with VBA, is to always save the current view before shutting down the display, and reloading that on re-opening the display.
__________________
------------------------------------
How to ask questions the SMART Way!

Look First, Ask Second!

  Reply With Quote
Old February 24th, 2015, 01:47 AM   #4
rdrast
Lifetime Supporting Member
United States

rdrast is offline
 
rdrast's Avatar
 
Join Date: Apr 2003
Location: South Carolina Lowcountry
Posts: 5,473
Here is some of the VBA Code for examples, just a couple ways to basically manipulate the trend display.

Code:
Code for actual trend display:

Private Sub btn30Min_Released()
On Error Resume Next

    Trend_Line.XAxis.TimeSpan = 30 * 60

End Sub
Private Sub btn2Hrs_Released()
On Error Resume Next

    Trend_Line.XAxis.TimeSpan = 2 * 60 * 60
    
End Sub

Private Sub Display_AnimationStart()
    On Error GoTo ErrHandler
    Trend.LoadTemplate ("Last_View")
ErrHandler:
End Sub

Private Sub Display_BeforeAnimationStop()
    On Error GoTo ErrHandler
    Trend.SaveTemplate ("Last_View")
ErrHandler:
End Sub
-------------------------------------------------------

Pen Selector Code:
Note that all buttons on pen-selector popup windows are just plain buttons.  Give them a name, but they have no actions.  Set as VBA control.

'On animation start of the popup window:
'Note that popup needs to find the window with the trend on it

'General
Dim oDS As Displays
Dim oTrendDisp As Display


Private Sub Display_AnimationStart()
On Error GoTo ErrHandler
    
    Set oDS = LoadedDisplays
    Set oTrendDisp = oDS.Item("history1")
    
    SetPenStates oTrendDisp.Trend.Pens.Item(1), PB_ToggleP01
    SetPenStates oTrendDisp.Trend.Pens.Item(2), PB_ToggleP02
'.....
Exit Sub
    
ErrHandler:
    LogDiagnosticsMessage Err.Description & " Pensel.gfx Error", ftDiagSeverityError, ftDiagAudienceEngineer
    
End Sub

'Set pen states pulls info from the actual trend pen settings:
Private Sub SetPenStates(thePen As Pen, thePB As Button)
On Error GoTo ErrHandler
    
    thePB.Caption = thePen.Description
    If thePen.Visible Then
        thePB.BackColor = 32768
        thePB.ForeColor = 16777215
    Else
        thePB.BackColor = 8421504
        thePB.ForeColor = 0
    End If

Exit Sub
    
ErrHandler:
    LogDiagnosticsMessage Err.Description & " Pensel.gfx Error", ftDiagSeverityError, ftDiagAudienceEngineer

End Sub


' Pressing a Pen Toggle Button on the popup calls the toggle states function for the associated pen:
Private Sub PB_ToggleP01_Released()
On Error GoTo ErrHandler

    TogglePen oTrendDisp.Trend.Pens.Item(1), PB_ToggleP01
Exit Sub
ErrHandler:
    LogDiagnosticsMessage Err.Description & " Pensel.gfx Pen Index Error", ftDiagSeverityError, ftDiagAudienceEngineer


End Sub


' Toggle the actual pen passed in and set the button state:
Private Sub TogglePen(thePen As Pen, thePB As Button)
On Error GoTo ErrHandler
    
    If thePen.Visible Then
        thePen.Visible = False
        thePB.BackColor = 8421504
        thePB.ForeColor = 0
    Else: thePen.Visible = True
        thePB.BackColor = 32768
        thePB.ForeColor = 16777215
    End If
Exit Sub
    
ErrHandler:
    LogDiagnosticsMessage Err.Description & " Pensel.gfx Error", ftDiagSeverityError, ftDiagAudienceEngineer


End Sub
__________________
------------------------------------
How to ask questions the SMART Way!

Look First, Ask Second!

  Reply With Quote
Old March 10th, 2015, 06:53 AM   #5
lunenburger
Member
Canada

lunenburger is offline
 
lunenburger's Avatar
 
Join Date: Jul 2008
Location: Summerside
Posts: 146
That's great thank you....
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
FactoryTalk View SE Alarm Log Viewer Toolbar Buttons TOO Small habadeer LIVE PLC Questions And Answers 1 March 14th, 2013 11:46 AM
Factorytalk View SE VBA to Open Trend Template not working MorphuisOGrady LIVE PLC Questions And Answers 0 January 29th, 2013 11:56 AM
Factory Talk view SE 6.1 and Kepware EX OPC server msynco LIVE PLC Questions And Answers 1 January 18th, 2013 02:13 AM
Factory talk view studio finding "connections" of buttons realolman LIVE PLC Questions And Answers 5 October 5th, 2010 10:57 AM
Step7 / PLCSIM: trend view of symbols/memory? girevik LIVE PLC Questions And Answers 6 March 9th, 2006 08:42 AM


All times are GMT -5. The time now is 02:03 AM.


.