Upload
buinguyet
View
216
Download
0
Embed Size (px)
Citation preview
November 2013
© Siemens AG 2013 All rights reserved.Page 2 Siemens Industry
Goal
I didn’t know we could do this with Unilab…
Some easy and also some more advanced tricks
Showcase some functionalities of the Unilab advanced library
Provide some new ideas for enhancing your currentsystem setup
November 2013
© Siemens AG 2013 All rights reserved.Page 3 Siemens Industry
Task configuration tips – Dynamic default values
How to fill in task values by default?
November 2013
© Siemens AG 2013 All rights reserved.Page 4 Siemens Industry
Task configuration tips – Dynamic default values
Fixed default values
Dynamic default values (tilde substitution/oracle sql functions)
• Fetch requests of the current year
• One time configuration
• Fetch requests of 2013• Configuration to be changed
every year
November 2013
© Siemens AG 2013 All rights reserved.Page 5 Siemens Industry
Task configuration tips – Dynamic default values
Other examples of default value configuration• Any oracle date function
• Current day: ~=TRUNC(CURRENT_TIMESTAMP)~• Current month: ~=TO_CHAR(CURRENT_TIMESTAMP, 'MM')~• Etc…
• User context data• Current user: ~us@ad~• User profile attributes (example Plant): ~upau@Plant~
November 2013
© Siemens AG 2013 All rights reserved.Page 6 Siemens Industry
Task configuration tips – User defined value list
vs.
Dynamic list (available request status list)
User defined list
November 2013
© Siemens AG 2013 All rights reserved.Page 7 Siemens Industry
Task configuration tips – User defined value list
How to configure?
1 -> value list type = SQL2 -> sql query
for example: select name from UTSS where ss in ('CR','IE')
1 2
November 2013
© Siemens AG 2013 All rights reserved.Page 8 Siemens Industry
Analyzer tips – copy code from grid
I want to copy the request code? Help, how do I select the code?
Doubleclick
Press F2 instead
November 2013
© Siemens AG 2013 All rights reserved.Page 9 Siemens Industry
Configurable search screens in Unilab
Use case: assign customer during request registration
Typical configuration: via info fields configured as dropdowns to select the customer
But… what in case of long value lists?In that case, wouldn’t it be nice to have search functionality?
November 2013
© Siemens AG 2013 All rights reserved.Page 10 Siemens Industry
Configurable search screens in Unilab
Welcome to configurable search screens.. a.k.a. SelectDialog
November 2013
© Siemens AG 2013 All rights reserved.Page 11 Siemens Industry
Configurable search screens in Unilab
Configuration:Info field validation function ‘SelectDialog’
November 2013
© Siemens AG 2013 All rights reserved.Page 12 Siemens Industry
Configurable search screens in Unilab
Configuration:Search window configurable as method sheet definition
Configure method cells for filter input
Table cell for filter output • Columns configured as
standard unilab layout• Selected row can be used
to fill in info fields
Search configured as SQL query• As flexible as needed (wildcards, case insensitive, between clauses, etc..)
• all oracle SQL functionality is available
November 2013
© Siemens AG 2013 All rights reserved.Page 13 Siemens Industry
Configurable search screens in Unilab
Another use case: Build tracking and tracing in batch production (i.e. related requests)
Next: How can we visualize the relationship between the relatedrequests?
Open RQIC
Removeline
November 2013
© Siemens AG 2013 All rights reserved.Page 14 Siemens Industry
Hierarchical request view
Show relationship between requests in a tree view
similar functionality exists for hierachicalsample view (example for subsampling)
November 2013
© Siemens AG 2013 All rights reserved.Page 15 Siemens Industry
Excel calculations - worksheet
Use case: inter sample calculationsFor example: a run of an equipment with blank samples (represented as a worksheet)
Measured Calculated = measured – blank sample result
November 2013
© Siemens AG 2013 All rights reserved.Page 16 Siemens Industry
Excel calculations - worksheet
Use case: inter sample calculationsSolution:
Outlook page configuration
CF = EvaluateWorksheetTrigger excel in backgroundCopies the worksheet grid data to the excel sheetCopies back the calculated data to the worksheet grid
Excel templateFile name = worksheet typeFile location = Unilab application folder
UTCFunicf.dll
November 2013
© Siemens AG 2013 All rights reserved.Page 17 Siemens Industry
Excel calculations – method sheet
November 2013
© Siemens AG 2013 All rights reserved.Page 18 Siemens Industry
Excel calculations – method sheet configuration
• calculated cell:orpush button cell:
Configurable via method attributes:Run excel in background orinteractivelyWhen to trigger calculation: always oronly when all input cells are filled inExcel template to use
IN#ExcelCell
OUT#ExcelCell
• Input/output configuration: Method cells as input for excel template
Method cells as output for excel template
Unicf.dll
November 2013
© Siemens AG 2013 All rights reserved.Page 19 Siemens Industry
Thank you for your attention !
Ruben CantaertSr. ConsultantSWE RC-BE I IA AS MES
Guido Gezellestraat 121B-1654 Huizingen
Mobile: +32 (486) 32 06 30
siemens.com/answers