@kuriousdesign/machine-sdk 1.0.88 → 1.0.90
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -31,11 +31,24 @@ export interface PartData {
|
|
|
31
31
|
currentLocation: number;
|
|
32
32
|
inFixture: boolean;
|
|
33
33
|
}
|
|
34
|
+
export declare enum PartValidationStates {
|
|
35
|
+
NONE = 0,
|
|
36
|
+
Scrapped_Generic = 1,
|
|
37
|
+
Scrapped_LINER_APPLICATION_STARTED_BUT_NOT_FINISHED = 101,
|
|
38
|
+
Scrapped_Failed_Weight_TOO_LIGHT = 701,
|
|
39
|
+
Scrapped_Failed_Weight_TOO_HEAVY = 702,
|
|
40
|
+
Scrapped_Failed_Image_Review_GENERAL = 800,
|
|
41
|
+
Scrapped_Failed_Image_Review_GAPS_IN_SMEAR = 801,
|
|
42
|
+
Scrapped_Failed_Image_Review_BUBBLES = 802,
|
|
43
|
+
PASSED = 1000
|
|
44
|
+
}
|
|
34
45
|
export interface PartValidationData {
|
|
35
|
-
|
|
46
|
+
valState: PartValidationStates;
|
|
47
|
+
statusMsg: string;
|
|
36
48
|
preWeightKg: number;
|
|
37
49
|
postWeightKg: number;
|
|
38
50
|
linerWeightKg: number;
|
|
51
|
+
videoReviewSts: number;
|
|
39
52
|
}
|
|
40
53
|
export declare const initialPartValidationData: PartValidationData;
|
|
41
54
|
export declare const initialPartData: PartData;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initialPartDataStatus = exports.initialPartData = exports.initialPartValidationData = exports.PartStates = exports.PartLocationIds = void 0;
|
|
3
|
+
exports.initialPartDataStatus = exports.initialPartData = exports.initialPartValidationData = exports.PartValidationStates = exports.PartStates = exports.PartLocationIds = void 0;
|
|
4
4
|
exports.partLocationIdToString = partLocationIdToString;
|
|
5
5
|
exports.partStateToString = partStateToString;
|
|
6
6
|
const GlobalConstants_1 = require("./GlobalConstants");
|
|
@@ -96,11 +96,25 @@ function partStateToString(state) {
|
|
|
96
96
|
case PartStates.Passed: return "Passed";
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
|
+
var PartValidationStates;
|
|
100
|
+
(function (PartValidationStates) {
|
|
101
|
+
PartValidationStates[PartValidationStates["NONE"] = 0] = "NONE";
|
|
102
|
+
PartValidationStates[PartValidationStates["Scrapped_Generic"] = 1] = "Scrapped_Generic";
|
|
103
|
+
PartValidationStates[PartValidationStates["Scrapped_LINER_APPLICATION_STARTED_BUT_NOT_FINISHED"] = 101] = "Scrapped_LINER_APPLICATION_STARTED_BUT_NOT_FINISHED";
|
|
104
|
+
PartValidationStates[PartValidationStates["Scrapped_Failed_Weight_TOO_LIGHT"] = 701] = "Scrapped_Failed_Weight_TOO_LIGHT";
|
|
105
|
+
PartValidationStates[PartValidationStates["Scrapped_Failed_Weight_TOO_HEAVY"] = 702] = "Scrapped_Failed_Weight_TOO_HEAVY";
|
|
106
|
+
PartValidationStates[PartValidationStates["Scrapped_Failed_Image_Review_GENERAL"] = 800] = "Scrapped_Failed_Image_Review_GENERAL";
|
|
107
|
+
PartValidationStates[PartValidationStates["Scrapped_Failed_Image_Review_GAPS_IN_SMEAR"] = 801] = "Scrapped_Failed_Image_Review_GAPS_IN_SMEAR";
|
|
108
|
+
PartValidationStates[PartValidationStates["Scrapped_Failed_Image_Review_BUBBLES"] = 802] = "Scrapped_Failed_Image_Review_BUBBLES";
|
|
109
|
+
PartValidationStates[PartValidationStates["PASSED"] = 1000] = "PASSED";
|
|
110
|
+
})(PartValidationStates || (exports.PartValidationStates = PartValidationStates = {}));
|
|
99
111
|
exports.initialPartValidationData = {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
112
|
+
valState: PartValidationStates.NONE,
|
|
113
|
+
statusMsg: "",
|
|
114
|
+
preWeightKg: 0,
|
|
115
|
+
postWeightKg: 0,
|
|
116
|
+
linerWeightKg: 0,
|
|
117
|
+
videoReviewSts: 0,
|
|
104
118
|
};
|
|
105
119
|
exports.initialPartData = {
|
|
106
120
|
processSts: PartStates.Empty,
|
package/package.json
CHANGED
package/src/custom-types/Part.ts
CHANGED
|
@@ -116,18 +116,34 @@ export interface PartData {
|
|
|
116
116
|
inFixture: boolean; // CurrentLocation = FixtureLocationWhenLoaded
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
+
export enum PartValidationStates {
|
|
120
|
+
NONE = 0,
|
|
121
|
+
Scrapped_Generic = 1,
|
|
122
|
+
Scrapped_LINER_APPLICATION_STARTED_BUT_NOT_FINISHED = 101,
|
|
123
|
+
Scrapped_Failed_Weight_TOO_LIGHT = 701,
|
|
124
|
+
Scrapped_Failed_Weight_TOO_HEAVY = 702,
|
|
125
|
+
Scrapped_Failed_Image_Review_GENERAL = 800,
|
|
126
|
+
Scrapped_Failed_Image_Review_GAPS_IN_SMEAR = 801,
|
|
127
|
+
Scrapped_Failed_Image_Review_BUBBLES = 802,
|
|
128
|
+
PASSED = 1000
|
|
129
|
+
}
|
|
130
|
+
|
|
119
131
|
export interface PartValidationData {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
132
|
+
valState: PartValidationStates;
|
|
133
|
+
statusMsg: string;
|
|
134
|
+
preWeightKg: number;
|
|
135
|
+
postWeightKg: number;
|
|
136
|
+
linerWeightKg: number;
|
|
137
|
+
videoReviewSts: number; //0: NOT REVIEWED, 911: FAILED, 1000: PASSED
|
|
124
138
|
}
|
|
125
139
|
|
|
126
140
|
export const initialPartValidationData: PartValidationData = {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
141
|
+
valState: PartValidationStates.NONE,
|
|
142
|
+
statusMsg: "",
|
|
143
|
+
preWeightKg: 0,
|
|
144
|
+
postWeightKg: 0,
|
|
145
|
+
linerWeightKg: 0,
|
|
146
|
+
videoReviewSts: 0,
|
|
131
147
|
};
|
|
132
148
|
export const initialPartData: PartData = {
|
|
133
149
|
processSts: PartStates.Empty,
|
|
@@ -138,36 +154,6 @@ export const initialPartData: PartData = {
|
|
|
138
154
|
inFixture: false,
|
|
139
155
|
};
|
|
140
156
|
|
|
141
|
-
// TYPE PartDataStatus :
|
|
142
|
-
// STRUCT
|
|
143
|
-
// Parts: ARRAY[0..GCs.PARTDATA_COUNT-1] OF PartData; //uses PartLocationIds, but lost parts get added to the end of known locations
|
|
144
|
-
// AllStationsAreEmpty:BOOL;
|
|
145
|
-
// RawShelfIsEmpty:BOOL;
|
|
146
|
-
// DoneShelfIsEmpty:BOOL;
|
|
147
|
-
// DoneShelfIsFull:BOOL;
|
|
148
|
-
// DoneShelfSpacesLeftCnt:INT;
|
|
149
|
-
// RawShelfPartsLeftCnt:INT;
|
|
150
|
-
// AllFixturesAreEmpty:BOOL;
|
|
151
|
-
// LeftFixtureIsEmpty:BOOL;
|
|
152
|
-
// RightFixtureIsEmpty:BOOL;
|
|
153
|
-
|
|
154
|
-
// RobotIsEmpty:BOOL;
|
|
155
|
-
// RobotHasNoPostOpParts:BOOL; //robot isn't holding any parts that are machined or washing/dryed or finished
|
|
156
|
-
// RobotHasMachinedParts:BOOL; //robot is holding at least one machined part
|
|
157
|
-
// RobotHasOnePreTopDeburring:BOOL;
|
|
158
|
-
// RobotHasOnePreMachining:BOOL;
|
|
159
|
-
// RobotHasTwoPreMachining:BOOL;
|
|
160
|
-
// RobotHasOneRaw:BOOL;
|
|
161
|
-
|
|
162
|
-
// OneOrMoreRejectPartsInCell:BOOL;// there is a reject part in the robot, preop OR post op (doesn't look at cnc)
|
|
163
|
-
// OneOrMoreRejectPartsInRobot:BOOL;
|
|
164
|
-
|
|
165
|
-
// RobotHasOneFinishedPart:BOOL;
|
|
166
|
-
// FinishedCnt:INT;//amount of finished parts either in post op or in robot
|
|
167
|
-
// ActiveCnt:INT;//how many active parts are in the cell, cnc or robot (does not include raw or done rack)
|
|
168
|
-
// BatchCntFlag:BOOL; //prevent more parts from being picked by raw
|
|
169
|
-
// END_STRUCT
|
|
170
|
-
// END_TYPE
|
|
171
157
|
export interface PartDataStatus {
|
|
172
158
|
parts: PartData[];
|
|
173
159
|
allStationsAreEmpty: boolean;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import { GCs } from "./GlobalConstants";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
export interface JobData {
|
|
4
5
|
activeRecipeIndex: number;
|
|
5
6
|
jobName: string;
|
|
7
|
+
tubeTypeString: string;
|
|
8
|
+
activeBatchNumber: number;
|
|
9
|
+
|
|
6
10
|
lotQty: number;
|
|
7
11
|
goodCnt: number;
|
|
8
12
|
scrapCnt: number;
|
|
@@ -17,6 +21,8 @@ export interface JobData {
|
|
|
17
21
|
export const initialJobData: JobData = {
|
|
18
22
|
activeRecipeIndex: 0,
|
|
19
23
|
jobName: "",
|
|
24
|
+
tubeTypeString: "",
|
|
25
|
+
activeBatchNumber: 0,
|
|
20
26
|
lotQty: 0,
|
|
21
27
|
goodCnt: 0,
|
|
22
28
|
scrapCnt: 0,
|