-
Notifications
You must be signed in to change notification settings - Fork 3
/
Wafers Tested by Operator.jsl
183 lines (158 loc) · 4.7 KB
/
Wafers Tested by Operator.jsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
//
// Change first line to //! if you want it to run on double-click rather than edit
/*//////////////////////////////////////////////////////////
Probe Cycle Time Reporting.jsl
Created by DThor on 2014-10-20
Purpose:
This script is used for reporting On-Wafer cycle times and
related statistics. It connects to the WIPTrac database
to pull all the required data.
Currently Reports:
Start to Ink cycle time for the last N days
Start to PTD cycle time for xthe last N days
Pareto of location of lots at probe
Pareto of location of wafers at probe
LotType vs Cycle Time, with Mask as Color
Amount of additional time needed for PTD (PTD - Inking)
by mask
by lot type
Run Chart of PTD Cycle Time by probe start, labeled by lot ID.
Things to add:
TimeToInk vs TimeToPTD
*///////////////////////////////////////////////////////////
Names Default To Here(1);
// ------------------------------------------------------
// Variables
// ------------------------------------------------------
//start_date = "2014-11-01";
//end_date = "2015-02-01";
days = 30;
// ------------------------------------------------------
// Functions
// ------------------------------------------------------
// ------------------------------------------------------
// ------------------------------------------------------
// Cycle Time - Inking and PTD
// ------------------------------------------------------
// ------------------------------------------------------
// Database connection string
conn = "DSN=OWT;UID=owt_user;PWD={owtuser};SERVER={115-db};DATABASE=owt;PORT=3306;";
// If using 64-bit JMP
conn = "DSN=OWT_x64;UID=owt_user;PWD={owtuser};SERVER={115-db};DATABASE=owt;PORT=3306;";
// ------------------------------------------------------
// Operator Statistics
// ------------------------------------------------------
query = "
SELECT
operator,
Count(operator)
FROM
owt.log
WHERE
`start` >= '{start}'
/*AND `end` < '[]'*/
AND aborted = 0
AND operator not like 'VI Test'
AND growth_id != ''
GROUP BY
operator
";
// Determine the start date and insert it into the query
start_date = Format(Today() - days*24*3600, "yyyy-mm-dd");
Substitute Into(query, "{start}", start_date);
//Substitute Into(query, "[]", end_date);
//Show(query);
dt1 = Open Database(conn, query, "OperatorStats");
dt1 << Delete Table Property("Save To DB");
operatorCol = dt1 << New Column("Operator");
// Update this formula whenever there are new typos in names
operatorCol << Set Formula (
Match(Trim(Uppercase(:operator)),
"ALBERTOS", "Alberto S.",
"BB", "Brian B.",
"BRIAN SWENSON", "Brian S.",
"CN", "Carl N.",
"CARL", "Carl N.",
"CARLN", "Carl N.",
"CN_ML", "Carl N.",
"DAVID T", "David T.",
"DAVIT", "David T.",
"DAVIDT", "David T.",
"DAVCID TORREROS", "David T.",
"DAVID TORREROS", "David T.",
"DAVID TORRROS", "David T.",
"DAVID TOREROS", "David T.",
"DAVID TORREOS", "David T.",
"DAVIS TORREROS", "David T.",
"DAVID TORREROD", "David T.",
"DAVID TOORREROS", "David T.",
"DR", "David R.",
"DG", "Dietrich G.",
"DIETRICH G", "Dietrich G.",
"DOUGLAS THOR", "Douglas T.",
"DOGULAS THOR", "Douglas T.",
"SMH", "Stephanie H.",
"SEON", "Seon K.",
"SK", "Seon K.",
"MO", "Mo W.",
"MW", "Mo W.",
"RL", "Ronaldo L.",
"RM", "Rosario M.",
"RW", "Ronghua W.",
"RR", "Ronghua W.",
"LF", "Lenny F.",
"MICHELLE", "Michelle L.",
"ML", "Michelle L.",
"RON BIR", "Ron B.",
"RONB", "Ron B.",
:operator)
);
operatorCol << EvalFormula;
// Plot up Bar Chart
//name = "Wafers Tested by Operator\!NLast {} days";
//name ||= "\!NLast {} days";
name = Substitute("Wafers Tested by Operator, Last {} days", "{}", Char(days));
name ||= "\!NParsed: " || Format(Today(),"yyyy-mm-dd" ) || " " || Format(Today(), "h:m");
obj = dt1 << Graph Builder(
Size( 450, 325 ),
Show Control Panel( 0 ),
Show Legend( 0 ),
Variables( X( :Operator ), Y( :Name( "Count(operator)" ) ) ),
Elements(
Bar(
X,
Y,
Legend( 2 ),
Bar Style( "Side by side" ),
Summary Statistic( "Sum" ),
Label( "Value" )
),
Caption Box(
X,
Y,
Legend( 3 ),
Summary Statistic( "Sum" ),
X Position( "Right" ),
Y Position( "Top" )
)
),
SendToReport(
Dispatch(
{},
"Operator",
ScaleBox,
{Show Major Grid( 1 ), Show Minor Grid( 1 ),
Rotated Labels( "Perpendicular" )}
),
Dispatch(
{},
"graph title",
TextEditBox,
{Set Text( name )}
),
Dispatch( {}, "Y title", TextEditBox, {Set Text( "Wafers" )} )
)
);
obj << Save Script to DataTable;
dt1 << Rename Table Property("Graph Builder", "Operator Moves");
//Close(dt1, NoSave);