![Page 1: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/1.jpg)
1
STUDYOFCONTROLSYSTEMSTUDIO(CSS)ANDDEVELOPMENTOFCONTROLPANELFOR
PF‐ARVACUUMDISPLAY
PrachiChitnis
RRCAT,Indore,INDIA
23Feb,2010
![Page 2: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/2.jpg)
2
INDEX
Pageno.
SYNOPSIS 3
CHAPTER–1 INTRODUCTION 4
CHAPTER–2 DOWNLOADINGANDINSTALLING 8
CHAPTER–3 GETTINGSTARTED 11
CHAPTER–4 SYNOPTICDISPLAYSTUDIO 15
CHAPTER–5 ADLCONVERTER 20
CHAPTER–6 PVTABLE 21
CHAPTER–7 PROBE 22
CHAPTER–8 PF‐ARVACUUMPANELDESIGNINCSS 23
REFERENCES 24
![Page 3: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/3.jpg)
3
SYNOPSIS
The research activity involved the study of the Control System Studio(CSS), which is theIntegrated Development Environment (IDE)for development of full‐fledged control systemapplications.It isanEclipseRichClientPlatformbasedIDE,andisusedtodesignanddevelopcontrolsystemsbasedonEPICS,TANGO,TINEetc.
TheworkinvolvedthestudyofvarioustoolsavailableinCSS,likeSynopticDisplayStudio(SDS),ADLConverter,Probe,PVTableetc.
Theworkalso involvedthedevelopmentofcontrolpanels forPF‐ARVacuum.Twopanelsarecreatedforthedisplay.ThefirstoneisanexactreplicaofthepreviouspanelthatwasdesignedinDM2K.Thesecondoneisthemodifiedversionwithgradientcolorcoding.ThecolorgradientiscodedinJavaScript.
Finally,atwodaytraining‐presentationforCSSwasgiventotheKEKBcontrolsgroup.
![Page 4: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/4.jpg)
4
CHAPTER1 INTRODUCTION
CONTROLSYSTEMSTUDIO
The Control System Studio (CSS) is an Eclipse RCP based development platform and thefundamentformanyapplicationslikeEPICS,TANGOetc.Asmostoftheseapplicationsdealwithprocessvariablesandconnectionstocontrolsystems,theCSSCoreprovidesthenecessaryAPIsforaconvenientstart.
The integrated development environment of CSS provides facility for database development,alarmmanagementsystem,displaydevelopmentandconversion,datatrending,diagnostictoolsetc.
The Data Access Layer (DAL) is the core of the connection APIs. It communicates to EPICSthroughCAJ(ChannelAccessJava),whichisapureJavaimplementationoftheCAprotocol.Inthe (near) future itwillbepossible toconnect to TINEandTANGOcontrol systems throughDALaswell.ATINEintegrationisalreadyavailableasBeta.DALisaninherentpartoftheCSSCorebutcanalsobeusedasalibraryinanyotherJavaapplication.SimpleDALisaconnectionlayerbuiltontopofDAL.Itprovidesaslim,lesscomplexAPIthatallowsforamucheasierstartfordevelopersdealingwithprocessvariables intheirapplications.UsingSimpleDALimpliesacertain syntax for process variable addresses that enables applications to make use of thefollowingfeatures:
•Accessdifferentcontrolsystems(e.g.TINEandEPICS)inoneapplication
•usecharacteristics,aconceptforresourcesavingaccesstorecordfields
•queryprocessvariablesindifferenttypes
•usesimulatedchannels
•addresssystemfunctionsasprocessvariable
![Page 5: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/5.jpg)
5
TherearevariousutilitiesavailablewiththeCSSsuchas:
• Displayapplications(e.g.TheSynopticDisplayStudio).• Alarmingtoolsandapplications.• Trendtoolsandapplications.• DiagnosticTools• Diagnostictoolsandapplications.• Configurationtoolsandapplications.• Managementtoolsandapplications.• Editors• Utilities
Processvariableaddresssyntax
Thegeneralsyntaxofaprocessvariableaddressisdefinedasfollows.ThisusesthemetasyntaxbasedontheExtendedBackus‐NaurForm
[1]address::=[protocol]id[type]
[2]protocol::=('dal‐epics'|'dal‐tine'|'dal‐tango'|'local')'://'
[3]id::=(letter|specialcharacter)+
[4]type::=','('double'|'int'|'long'|'string'|'enum')
[5]letter::='A'|...|'Z'|'a'|...|'z'
[6]specialcharacter::=':'|'/'|'\'|'.'|'['|']'
[7]number::=digitWithoutZero(digit)*
![Page 6: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/6.jpg)
6
[8]digit::='0'|...|'9'
[9]digitWithoutZero::='1'|...|'9'
• Thereare3optionaland1mandatoryfragmentsthatconstituteafullprocessvariableaddress(line1).
• Theprotocol (line2) isoptionalanddefines theconnectionprotocol. If aprefix isnotspecified,adefaultprotocolischosenaccordingtothesettingsoftheCSS‐Core/Control‐Systempreferencepage.
• The id (line 3) is mandatory. It must be a globally unique name identifying theinformationyouwanttoaddress.
• Thetype(line5)isoptional,too.Itcanbeusedtospecifytheexpectedreturntypeforchannelvaluesexplicitly.
SyntaxforEPICS
WhenEPICSchannelsareaddressed,line3isasfollows:
[3a]id::=recordname['.'fieldname][characteristic]
[10]recordname::=(letter|specialcharacter)+
[11]fieldname::=(letter)+
[12]characteristic::='['(letter)+']'
• AnEPICSprocessvariableisalwaysidentifiedbyitsrecordname(line10)which• isthereforemandatory.• Optionallyafieldnamecanbeprovidedtoaddressasinglefieldofarecord(line11).If
nofieldnameisprovidedtheaddressdefaultstothe.VALfield.• The characteristic (line 12) is optional as well. If defined it allows for accessing
additional information of a record without establishing a new connection. Allcharacteristicsofthesamerecordsharethesameconnection.Soingeneralitisagoodideatousecharacteristicswheneverpossibletosavesystemresources.Thesecanbe
• [Position]‐position• [Description]–longdescription• [displayName]–shortdescription• [propertyType]‐type• [resolution] – number of bits used for ADC conversion of analog value when
sampled• [minimum]–minimumallowedvalue• [maximum]–maximumallowedvalue• [graphMin]–minimumallowedvaluewhendisplayed(e.g.inachart)• [graphMax]–maximumallowedvaluewhendisplayed(e.g.inachart)• [format]–Cprint‐fstyleformatthatisusedtorenderthevalue• [units]–unitsofthevalue• [scaleType]–scaletypeforplotting(linearorlogarithmic)• [warningMax]–upperwarninglimit• [warningMin]–lowerwarninglimit• [alarmMax]–upperalarmlimit• [alarmMin]–loweralarmlimit• [sequenceLength]–sequencelength• [enumValues]–enumvaluearray(returnsObject[])
![Page 7: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/7.jpg)
7
• [enumDescriptions]–enumvaluedescriptions(returnsString[])• [bitDescriptions]–bitdescriptions(returnsString[])• [conditionWhenSet]–activebitsignificance• [conditionWhenCleared]‐inactivebitsignificance• [bitMask]–bitsrelevance
![Page 8: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/8.jpg)
8
CHAPTER2 DOWNLOADINGANDINSTALLINGCSS
There are various versions of CSS. The major ones include the DESY and SNS versions. CSScomeswithasubsetoftheallassociatedtoolsdependingupontheversion.Thefollowingtableshowsacomparisonbetweenvariousversions.
Basic EPICS
SNS Office
SNS CCR
DESY SNS
Download links MS Windows Mac OS X x86 RH Linux x86
MS Windows Mac OS X x86 RH Linux x86
Full SNS Sources
DESY CSS site
Operator Panel Editor Prototype
Data Browser, 'Stripchart' live and archived data
Post Analyzer Basic fitting and correlation of Data Browser data
Probe Inspect live PVs
EPICS PV Tree Display a PV's input link hierarchy
PACE Table editor for 'critical' PVs
-
RDB Table Generic editor for RDB data
-
System Monitor Memory usage info
Therapist Clock Channel Access Client EPICS network library
Channel Archive Client Access to 'old' Channel Archiver
RDB Archive Client Access to BEAUTY
Other Archive Clients Access to AAPI, Data
- - -
![Page 9: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/9.jpg)
9
Logger, ... PV Utility Map Devices and IOCs to PVs
- -
Rack Utility Locate devices in racks
- -
PV Fields View EPICS record info for PVs
- -
SNS ELog Support Interfaces various tools to SNS ELog
- -
Message Log Viewer Viewer for the CSS Message log (in RDB, from JMS)
- -
BEAST GUI User Interface of the Best Ever Alarm System Toolkit
- - -
LDAP Authentication & Authorization Login support for alarm GUI and SDS
- - -
Kerberos + LDAP Authentication & Authorization Login support ...
- - -
Synoptic Display Operator Panel Editor
- - -
Non-EPICS DAL Clients Network library for TINE, ...
- - -
Screenshot Take screen shots, send to DESY ELog
- - -
SNL Editor EPICS Sequencer IDE
- - -
I/O Configurator Tool DESY Profibus Config Tool
- - -
DCT DESY Database Creation Tool
- - -
Namespace Tool DESY LDAP Access
- - -
AMS GUI GUI for DESY alarm management system
- - -
![Page 10: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/10.jpg)
10
Generic 'Welcome' Generic CSS Introduction, Channel Access setup info
- - -
SNS-specific 'Welcome' CSS Introduction with SNS Example PVs
- -
DESY-specific 'Welcome' How to download optional plug-ins
- - -
No Specific Settings Channel Access, Archive etc. not configured
- - -
Settings for SNS Office Network Setup for SNS CA Gateway and Archives
- - -
Settings for SNS CCR Setup for SNS CCR IOCs etc.
- - -
Settings for DESY Setup for DESY Kerberos, LDAP, JMS etc.
- - -
Legend: Included, Optional online update.
DOWNLOADINGANDINSTALLATION
It isrecommendedthat thestandardversionofCSSshouldbedownloadedforthe firstuse. ItconsistsoftheCSSplatformandcommoncontrolsystemapplications.
1) Prerequisites‐Javaversion1.6orhigherisrequired
2) Download ‐The linktothis ishttp://css.desy.de/content/e413/index_eng.htmlPlease
choosetheversionaccordingtoyouroperatingsystem.
3) Extracting–extractthedownloadedzipfileinadirectoryofyourchoice.
4) Starting
a. Windows–Runthefilecss.exeunderCSS<Top>.
b. Linux–Setexecutablemodeforthefile‘css’underCSS<top>
5) Login ‐TheXMPP logincanbecancelled for initialuse.This loginsyouasanonymous
user into the XMPP server specified in the preferences. The XMPP server is used for
remotemanagement.OnecanalsosetuphisownXMPPserver.
![Page 11: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/11.jpg)
11
CHAPTER3 GETTINGSTARTED
WhenyoustarttheCSSforthefirsttime,itwilllooklikethis:
CSSMenuBar
AllfeaturesoftheCSSareaccessiblethroughtheCSSMenuBar.Itprovidesthefollowingmenuentries:
FILE
• New‐Createanewfolder,resource,• SwitchWorkspace‐ChangetheworkspaceoftheCSSinstance.• Exportpreferences‐WritecurrentpreferencesoftheCSSinstanceinafile.• OpenWorkspaceNavigator‐Opentheview'Workspace'.• Import‐ImportresourcefromCVSintheworkspace.• Exit‐ShutdownyourCSSinstallation.
CSS
AllavailableCSSapplicationsarelinkedintotheCSSmenu.DependingontheCSSdistributionthismenuprovidesasubsetofthefollowingentries.
![Page 12: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/12.jpg)
12
• Display ‐ Display applications (e. g. The Synoptic Display Studio, PV table, ADLconverter).
• Alarm‐Alarmingtoolsandapplications• Trends‐Trendtoolsandapplications(Databrowser)• DiagnosticTools‐Diagnostictoolsandapplications.(EPICSPVtree,probe)• Configuration‐Configurationtoolsandapplications.(DCT,contacts)• Management‐Managementtoolsandapplications.• Editors• Utilities(clock,therapist,systemmonitor)• Preferences ‐OpenthecentralCSSconfigurationdialog thatprovidesaccess toallCSS
settings.
QUICKSTARTTheQuickstartmenuholdslinkstoSynopticDisplaysintheworkspace.Theycanbeaddedviacontextmenuofadisplay.
WINDOW
• OpeninNewWindow‐OpenanewCSSwindow.• OpenPerspective ‐ SelectandopenaparticularCSSperspective. In theCSScontext, a
perspectiveisasetofuserinterfaceelementsthatarepositionedinacertainway.• ShowView‐OpenaparticularCSSview.IntheCSScontext,aviewisanelementofthe
userinterfacethatdisplayssomethingandcanbefreelyarrangedbytheuser.
HELP
• Welcome• AboutCSS‐Openthe“About”dialogthatcontainstheCSSlicenseagreement.• Help Contents ‐ Open the CSS help system. There you may find a more detailed
descriptionofthebasicuserinterfaceconceptsandallsystemsettings.• KeyAssist‐Openanoverviewofallshortcuts.• Cheat Sheets ‐ Shows available Cheat Sheets. Cheat Sheets are step by step
documentations.• SoftwareUpdates‐ManagethelocalCSSinstallationbyinstallingandupdatingfeatures.
‐>findandinstall‐>searchfornewfeaturestoinstall‐>DESYCSS
![Page 13: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/13.jpg)
13
CSSConsole
TheCSScontainsitsownconsole.Thisconsoledisplaysystemmessagesofcertaineventsandinformationaboutoccurrederrors.
SynopticDisplayStudio(SDS)
SDShasitsownperspective:Menu'Window'→ 'OpenPerspective'→ 'DisplayDevelopment'.TherearesomeexampleandtrainingdisplaysintegratedthatdemonstratesthefunctionalityofSDS:Menu 'CSS'→ 'Install SynopticDisplayDemoDisplays'. The training displays are in theworkspacefolder'SDSDemoDisplay/Training'.
For some displays a SoftIOC with special EPICS databases (Folder /SDS DemoDisplay/Training/EPICS_DBs_TrainingIOC) is necessary. A SoftIOC for MS windows can befoundontheCSSHomepage.Thedatabasesarepartofthatdistribution.ForotherOSyoucancopytheEPICSdatabasesfromtheSDSdirectorymentionedabovetoyourIOCloaddirectory.
TherearealsosomehelppagesavailableinCSS
LOADINGCSSPLUGINS
CSSplug‐insarethevarioustoolsavailablewithit.ToaddtheseintotheCSS:
1. GotoCSSmenu‐>Help‐>Softwareupdates‐>FindandInstall2. Select“Selectfornewfeaturestoinstall”3. Selectthecheckboxfor“Controlsystemstudioupdatesite”4. Click“Finish”5. Expandthetreefor“Controlsystemstudioupdatesite”6. Selecttheplug‐inyouwanttoinstallandclick“selectrequired”button.7. Go“next”andacceptlicenseagreement.8. Nextandclick“Finish”9. Theinstalledplug‐inwillnowappearintheCSSmenuunderappropriatecategory
SETTINGEPICSPREFERENCES
ThissettingisusedtospecifytheEPICSIOClocationandotherattributes
1. GotoCSSMenu‐>CSS‐>Preferences‐>CSScore‐>Controlsystem2. SetthedefaultcontrolsystemasEPICS3. UnderCSScore,gotoEPICS4. SettheEPICSpreferenceshere.
![Page 14: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/14.jpg)
14
CSS‐BASICTERMSANDCONCEPTS
TheGraphicalUserInterface(GUI)oftheControlSystemStudioisbaseduponthefollowingconcepts:
ViewsAviewisawindow‐likeUIelementthattypicallyprovidesa“view”ondata.TheControlSystemStudioanditsapplicationsprovidevariousviews.TheyareresizableandcanbefreelyarrangedwithintheCSSmainwindow.Viewsmayprovidetoolbarsthatyoucanusetoconfiguretheview.Ifyoustackviewsontopofeachotheryoucanselectthetopviewbyclickingonitstab.Despitetheirname,viewscanbeusedtochangethedisplayeddata.Everychangetoanitemofaviewissavedimmediately.
EditorsAneditoristypicallyusedto“edit”thedataitdisplays.Itsharesmanyfeatureswithviews.Themaindifferencebetweenviewsandeditorsisthataneditorsaveschangestoitsitemsonlywhenyouexplicitlychoosetosave.ThereisonlyoneplaceintheCSSmainwindowwhereeditorscanappear.Thisplaceiscalled“editorarea”.
PerspectivesAperspectivedefinesanarrangementofvariousviews.Certainmenuortoolbarentriescanbeassociatedtoaperspective.
![Page 15: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/15.jpg)
15
CHAPTER4 SYNOPTICDISPLAYSTUDIO
SynopticDisplayStudio(SDS)isagraphicaloperatorinterfacethatrepresentsthestructureandcurrentstateofaplant.Thestructureiscomposedofbasicelementssocalledwidgetslikelabels,metersorbargraphs.TobuildupapartofaplantthewidgetscanbearrangedintheeditmodeofSDSondisplays.Intheexecuteorrunmodetheoperatorscancontroltheprocessesviathedisplays.
Navigator
ThenavigatorviewshowstheCSSprojectsintheworkspace.ACSSprojectholdstheconfigurationfilesforSDSdisplaysandfilesofotherCSSapplications.
Editor/Palette
TheEditorshowsthedisplaysintheeditmodeandprovidesgrid,align,ruler,etc.Ontherightsideisthepalettewithallavailablewidgets.ThereisadraganddropsupportthatconnectsaprocessvariablefromanotherCSSapplicationautomaticallywithawidget.
WidgetProperties
Foreachselectedwidgetintheeditorthewidgetpropertyviewshowsallavailableproperties.Itispossibletodynamiseeachproperty.Thatmeansthatapropertyisconnectedtoaprocessvariableandchangeswiththevalueofthevariable.
Therearetwokindsofproperty
1. Static‐fixedduringexecutionmode2. Dynamic–changesduringexecutionmode
STATICPROPERTIES
SingleleftclickonapropertyonthePropertyViewsetsastaticproperty.Singleleftclickonapropertyopensaneditor.Therearesixgeneraleditors:
• Enteratext• Enteranumber• Chooseacolor• Chooseafont• Setaboolean• Selectacomboitem
Andthreespecialeditors:
• Add/changealiases • Add/changeactions• Generatetooltip
![Page 16: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/16.jpg)
16
LAYERMANAGEMENT:
ToopentheLayerManagementMenu:
Window‐>ShowView‐>Other…‐>SynopticDisplayStudio‐>LayerManagement
• Insidethelayermanagementview,rightclicktoaddnewlayer,ormoveexisting
• Visibilityandorderofalayercanbechanged
• Visibilityofalayercanbetoggleddynamically
Rightclickawidgettochangeitslayer
DYNAMISATIONOFPROPERTIES
Propertiesthataredynamicaremarkedwithagear‐wheel.Toeditthedynamicbehaviorofawidgetpropertyrightclickontheappropriateoneinthepropertyviewandselect'ConfigureDynamicAspects'.
Thesimplestwayofdynamisationistoshowthecurrentvalueofaprocessvariableinthedisplay.TheRuleis'DirectConnection'.Channelnamecanbetypeddirectlyhere,oranaliascanbeusedinsteadofaPVname
Dynamicpropertiescanbeconfiguredbyrules(explainedlater)
EachwidgethasaPrimaryPV,
o ItisusedwhenyoucopyPVtoclipboard
o Forwardedtotheapplicationscalledbycontributionmenu
o Tiptext
SoitisnecessarytodefineaprimaryPV
ALIAS
AliasisamacrothatcanbeusedinsteadoflongPVnameorsyntax.Ifthereisanaliassetforaprocessvariableitcanbeusedinotherpropertiesofthewidgettomaketypingeasier.Itismarkedbythesymbol'$'atthebeginningandendoftheString.Eachwidgetcanhaveseveralaliases(e.g.fordisplayingseveralplotsonstripchart).Aliascanbeforwardedtoanewdisplayalso.
![Page 17: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/17.jpg)
17
CONNECTIONSTATES
Thebackgroundcolorchangesaccordingtotheconnectionstates(connectionlost,connected,unknown,initial).Thecolorsforthesestatescanbecustomized.Forthis
1. Rightclickonbackgroundcolorproperties2. Configuredynamicaspects‐>Next3. Addorremoveconnectionstatesbyrightclick4. Editcolors
RULES
Rulescanbeusedtodefinethedynamicbehaviorofwidgetproperties.Therearetwotypesofrules;JavarulesandECMA/JavaScriptrules.ItisrecommendedthatJavaScriptrulesshouldbeusedforconfiguringdynamicpropertiesinsteadofJava,asnocompilationisneededinthiscase.Scriptedrulefilesshouldbekeptat‘SDSScriptRules’folderundertheworkspace
Rules
InthetoppartoftheWindow'DynamicsWizard'isalistofallavailablerules.Therearetwokindsofrules.The'JavaRules'markedwith areimplementedasajavaclass.TheyareintegratedinSDSanditisnecessarytoeditthesourcecodeoftheplug‐instoaddnewrules.The'ECMAScriptRule'or'JavaScriptRule'markedwith arelocatedintheCSSworkspaceinthefolder'SDSScriptRules'.Toaddanewruleyouhavetostorethejavascriptfileinthefolderanditisavailablefortheproperties.
RuleFilter
![Page 18: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/18.jpg)
18
Theselectionofrulesinthelistdependsonthetypeofproperty.Thereturntypeoftherulehastomatchthepropertytype.Inthefirstlineoftherulethereturntypeisset.ItispossibletouseallJavatypesasreturntypes.
Parameter
Thelowersectionholdsthelistofinputandoutputchannelsthattheruledefines.Inthevaluefieldyoucanusethealiasnamesthataredefinedinthewidgetordisplayinsteadoftheprocessvariablename.Itismarkedbythesymbol'$'atthebeginningandendoftheString.
ACTIONDATA
Actiondatasettingdefinestheactionwhichisperformedwhenawidgetisactivated(i.e.sayabuttonisclicked)
Actionscanbeoftwotypes
• Sendingvalue
• Openadisplay
Eachwidgetcanhavearbitraryno.ofactiondata
Actioncanbeexecutedfromthecontributionmenuaswell.Thecontributionmenuisinvokedbyrightclickingawidget‐>CSS‐><contributionmenu>
CURSORS
Cursorcanbechangedasthemousepointermovesoversomewidget
Widgetpropertieshaveafieldforchangingcursor
Therearetwokindofcursors
1. Systemcursors
2. Other–actionenabled,actiondisabled
DEFAULTDISPLAY
1. DefaultdisplayisthedefaultSDSfilewhichopensthroughthecontributionmenu(opendisplay)
2. Tosetthedefaultdisplaygotomainmenu‐>CSS‐>Preferences‐>CSSApplications‐>Display‐>DefaultDisplay
3. Setthedefaultfileandthealiasname
QUICKSTART
1. QuickstartmenuisusedtoaddshortcuttoruntheSDSfilesdirectly.2. TheSDSfilesaddedtoquickstartmenuwilldirectlyopeninexecutemode3. Toaddfilestoquickstartmenu,rightclicktheSDSfileinnavigatorpane‐>addto
quickstart
![Page 19: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/19.jpg)
19
4. Toinvokedisplaysdirectlyfromquickstart,gotomainmenu‐>quickstart‐>(clickfilename)
5. Toeditquickstartpreferencesgotomainmenu‐>CSS‐>Preferences‐>CSSApplications‐>Utilities‐>Quickstart
![Page 20: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/20.jpg)
20
CHAPTER5 ADLCONVERTER
TheADLConverterisaCSSPlugInthatconvertsControlSystemDisplays.ThisconvertsonlyfromADL‐FormattotheSynopticDisplayStudioformatfromtheControlSystemStudio.
1. TostartADLconverter,gotomainmenu‐>CSS‐>Display‐>ADLConverter
2. Click‘File’touploadMEDM/DM2Kfile(.adlfile)
3. Selectpathofdirectoryforthedestinationfile(i.e.forthecss‐sdsfile)
4. Clickconvert
5. Multiplefilescanbeconvertedatonce
6. Addmultiplefilesbyaboveprocedure,oraddfolderwhichcontainsmultiplefiles(Subfolder;)
NewConversion
ToconvertothersetofADL‐Files,clearthelistby"Clear"buttonandchoosethenewADL‐Filesandanewtargetworkspacepath.Thenstartthenewconversion
![Page 21: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/21.jpg)
21
CHAPTER6 PVTABLE
ThePVTableprovidesatabularviewofPVnamesandtheircurrentvalue.Onecanstartandstoplivevalueupdates.Inaddition,onecantakea"snapshot"ofcurrentvalues,whichgetssavedwhensavingthePVtabledocument.ThePVtabledisplayindicatescurrentvaluesthatdifferfromthe"snapshot"valuesinred.
Onecanconfiguretheupdaterateaswellasthethresholdforindicatingdifferencesbetweenthecurrentvaluesandthosefromthesnapshot.
TostartwithPVtable
1. Gotomainmenu‐>CSS‐>Display‐>PVTable
2. Rightclicktheemptyareainthetable‐>
3. WritethePVnametobemonitored,goonaddingnames
4. AgreenLEDsymbolatthetopiconbarisforstartingtheupdatesinPVtable.
5. TheupdateratecanbeconfiguredbyrightclickonthePVtable‐>config
![Page 22: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/22.jpg)
22
CHAPTER7 PROBE
TheProbetoolallowsbasicreadingandwritingofPVs.
Usage
1. EnteranameintothePVnametextboxandenter.ThetoolwilldisplaythecurrentvalueofthegivenPVtogetherwithtimestampandstatus.
2. The'Adjust'checkboxopensadialogforwritinganewvaluetothePV.
3. Thestatusbarprovideserrormessages.IfallisOK,itdisplaysaslowlyaveragedupdaterateofthePV.
4. Italsodisplaysalarmzonesonthemeter
5. Themetercanbedisabledalsofromthe‘Meter’checkbox
![Page 23: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/23.jpg)
23
CHAPTER8 PF‐ARVACUUMPANELDESIGNINCSS
ControlpanelsforthePF‐ARVacuumaredesignedinSynopticDisplayStudio.Twopanelsarecreatedforthedisplay.ThefirstoneisanexactreplicaofthepreviouspanelthatwasdesignedinDM2K.Thesecondoneisthemodifiedversionwithgradientcolorcoding.ThecolorgradientiscodedinJavaScript.
Thedetailsofthefileare:
1. C:\css‐1.2.0‐win32\css‐1.2.0‐win32\css\workspace\prachi\PFARVacOld.css‐sds
Replicaofthepreviouspanel
2. C:\css‐1.2.0‐win32\css‐1.2.0‐win32\css\workspace\prachi\PFARVacNew.css‐sds
Themodifiedversion
3. C:\css‐1.2.0‐win32\css‐1.2.0‐win32\css\workspace\SDSScriptRules\continousColorb2r_dis.css‐sdss
Colorgradientscript
4. C:\css‐1.2.0‐win32\css‐1.2.0‐win32\css\workspace\prachi\wide_rainbow.gif
GIFimageplacedonthepanel
Thesynopticdisplayfilesarealsoaddedatthequickstartmenu.
![Page 24: STUDY OF CONTROL SYSTEM STUDIO (CSS) AND … · alarm management system, display development and conversion, data trending, diagnostic ... AMS GUI GUI for DESY alarm management system](https://reader034.vdocument.in/reader034/viewer/2022050411/5fb1b80aebe5e222ab64455b/html5/thumbnails/24.jpg)
24
REFERENCES
• Documentationfromhttp://css.desy.de
• CSSHelpandTrainingExamples