Professional Documents
Culture Documents
November2015
Printthispage GeneratePDF
Entrytype:FAQ,EntryID:34230359,Entrydate:02/17/2009
HowcanyouhaveatrendarchivedisplayedcontinuouslyupdatedaftercallingTrend
View?
Description:
Basically,itisnotpossibletohaveatrenddisplayupdatedcontinuously,becauseuponcallingit,onlytheavailable
archivedatacanbereadout.However,tohavethecurrenttrendshownneverthelessuponcallingTrendView,you
mustconfigureasecondtrendinthesametrenddisplay.Thesecondcurvemusthavethesamevariable,butthe
trendtype"cyclicreal-time",becausethistrendtypeisupdatedcontinuouslyincycles.
Note:
Forthesakeofperformance,itisbettertoseparatearchivetrendsandcyclicreal-timetrends.Usingarchive
trendsseriouslyaffectstheperformanceoftheoperatorpanel.Youshouldusethefollowingmethodonlyifthe
operatorpanelisnotheavilyloadedinanyotherway.
Fig.01
ThearchivetrendismarkedinredinFig.01.Archivetrendspermityoutohavealong-termretrospectiveofthe
archivedataandagraphicaldisplayofthetrends.Thebluetrendshowsthecurrenttemporarysequenceofthe
samevariableandisofthetrendtype"cyclicreal-time".Thistrendtypeonlyshowsashortwindowofthe
sequenceanddependsonthenumberoftrendvalues.
Note:
Ifyouusethevaluetableinadditiontothetrenddisplay,thenitmighthappenthatthevaluetabledisplays"######",
becausethearchivetrendsarenotupdatedcyclically.
Contents:
1.Configuringthetrenddisplay
2.Reasonsfornotrenddisplayupdate
2.1Updatinghasbeenstopped
2.2Focusofdisplayrangehasbeenchanged
3.Download
1.Configuringthetrenddisplay
Below,asampleconfigurationistakentoexplaintheprocedure.
No. Procedure
1
OpenWinCCflexible
StartWinCCflexibleES(EngineeringSystem).
Createanewproject-MP277,forexample.
Fig.02
2
Createarchive
Openthedatalogeditorintheprojecttreeunder"HistoricalData>DataLogs"(1).
Inthedatalogeditor,youaddanewdatalogbyright-clickingtoopenthepop-upmenuandthenclicking
on"AddDataLog"(2).
Fig.03
Note:
Thebest"performance"inloggingisobtainedwiththe"segmentalcircularlog"method.InWinCCflexible
2008onwards,youcanfurtherincreaselogging"performance"byusingthestoragelocation"File-RDB"
insteadof"File-CSV".
Fig.04
3
Creatingaconnectionandtags
Intheprojecttree,clickon"Communication>Connections".
Createanewconnection.
OpentheTagEditorunder"Communication>Tags".
IntheTagEditoryoucreateanewtagdesignated"Sine".
Addthedatalogalreadycreatedtothistag.
Selectanappropriateacquisitioncycle.Inthisexample,wehaveselectedanacquisitionof"1s".
Fig.05
4
Addscreens
Addanewscreen-"Screen_2".
In"Screen_1"and"Screen_2",youcreatebuttonswiththefollowingdesignations:
Screen
Designation
Screen_1
"Trend"
Screen_2
"Previous"
Table01
Addthe"ActivateScreen"systemfunctiontobothbuttonsforthe"Click"event.
Addtheotherscreenineachcaseforthe"Screenname".
Fig.06
5
Configuretrenddisplay
AddatrenddisplayandopenthePropertieswindowofthetrenddisplay.
InthePropertieswindow,youclickon"General".
Optional-selectthe"Buttons"optionunder"Settings>Buttons".
Enter"2"for"Numberoflines".
InthePropertieswindowyouclickon"Properties>Leftvalueaxis".
Optional-enablethecheckboxfor"Auxiliaryline"enterthevalue"0".
Specifyapracticablescalefortheaxis.SinceasinecurveisgeneratedinSTEP7inthedownloadable
example,thevalue"-1"isusedfor"Beginningofaxis"andthevalue"1"for"Endofaxis".
Note:
Ifyoudefinethescalingoftheaxes,thendisabletheoption"Automaticchange".
Thenclickon"Trends"andaddthefollowingtrends.
Name
Trendtype
Sourcesettings
Curve1
Archive
Curve2
Cyclicreal-time
Foregroundcolor
Log
[Data_log_1]
Logentry
[Sine]
Red
Trendtag
[Sine]
Pulse
1.0s
Blue
Table02
Note:
Ifthedifferencebetweenthelogtrendandthecyclicreal-timetrendshouldnotbesovisible,thenuse
thesamecolorforbothtrends.
Fig.07
6
StartWinCCflexibleRuntime
StartWinCCflexibleRT(Runtime)ortransferyourprojecttotheoperatorpanel.
Clickthe"Trend"buttonandwaitafewseconds.
Thenclickthe"Previous"button.
Clickagainonthe"Trend"button.
TerminateWinCCflexibleRuntimeasrequired.
Fig.08
2.Reasonsfornotrenddisplayupdate
Thefollowinglistgivessomeofthepossiblereasonswhythereisnoupdatingofthetrenddisplay.
2.1Updatinghasbeenstopped
Ifthebuttonshavebeenaddedtothetrenddisplay,thenthetrendisnotupdatedifyoupresstheStopbutton.
Remedy:
YoumustpressthePlaybuttontostartcycliclogging.
Button
Function
Stop
Play
Table03
2.2Focusofdisplayrangehasbeenchanged
Thetrenddisplayisnotupdatedifthefocusofthedisplayrangehasbeenchangedwiththe"Forwards"and
"Backwards"buttons-seeTable04.
Remedy:
Youmustpositionthefocusofthedisplayrangeonthechronologicallylatestpointofthetrenddisplayforthe
trenddisplaytobeupdated.
Button
Function
Backwards
Forwards
Jumptobeginningoftrenddisplay(remedy)
Table04
3.Download
Thefollowingattachmentcontainsthesampleprojectdescribedabove.
Attachment1:WinCC_flexible_Trend_archive.zip(2849KB)
Runnabilityandtestenvironment:
Thefollowingtableliststhecomponentsthathavebeenusedtocreatethisentryandverifythefunctionsdescribed.
Components
Productandversiondesignation
PCoperatingsystem
MicrosoftWindowsXPSP2
Standardtools
Engineeringtool
STEP7V5.4SP4
HMIsoftware
WinCCflexible2008HF3
HMIsystem
MP27710"Touch
Keywords:
Trenddisplay
Entrybelongstoproducttreefolder(s):
Thisentryisassociatedto31product(s).
Show/Hidepicture1
Show/Hidepicture2
Show/Hidepicture3
Show/Hidepicture4
Show/Hidepicture5
Show/Hidepicture6
Show/Hidepicture7
Show/Hidepicture8
Show/Hidepicture9
Show/Hidepicture10
Show/Hidepicture11
Show/Hidepicture12
Show/Hidepicture13
SiemensAG2009-2015 - Imprint
Dataprotectionregulations
Cookiepolicy
DataprotectionTermsofuse
DigitalID 0.0.0.0